Update=False works but when Update is set to true following error occurs. How to fix that?The solutions could be training the model after the Update…
Data Science · Natural Language Processing
1 Answer
·
1.5K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
library(class) library(doSNOW) library(foreach) train
Data Science · Machine Learning
1 Answer
·
2.5K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
Normalization scales the numeric feature variables in the range of 0 to 1.To implement normalization using Python, we can use the iris dataset.
Data Science
1 Answer
·
1.7K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
In loan approval, precision can be dangerous because it considers false positive rate when a person is not eligible for a loan but a machine predicts…
Data Science · Machine Learning
1 Answer
·
1.5K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
It is the process used by the industries for reducing the major variables before fitting the model as the number of variables present in the final…
Data Science · Machine Learning
1 Answer
·
2.6K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
factor() function is used when the data mostly contains categorical variables.This specific function will become extremely useful when we begin to…
Data Science · R
1 Answer
·
1.6K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
def gini(x): # Mean absolute difference. mad = np.abs(np.subtract.outer(x, x)).mean() # Relative mean absolute difference rmad = mad / np.mean(x) #…
Data Science · Machine Learning
1 Answer
·
2.0K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
First we import the data # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset…
Data Science · Machine Learning
2 Answers
·
1.8K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
Classification tree: tree(formula = High temperature ~ ., data = summer.train) Variables actually used in tree construction: [1] "Humidity" "Cloudy"…
Data Science · Machine Learning
1 Answer
·
1.4K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago
from sklearn.datasets import load_iris from sklearn import tree X, y = load_iris(return_X_y=True) clf = tree.DecisionTreeClassifier() clf =…
Data Science · Machine Learning
1 Answer
·
1.4K Views
·
Answered ✓
V
Asked by: varsha Chauhan · 6 years ago