Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Varsha Chauhan

Varsha Chauhan

Community Learner
Active in: Data Science
Share
10Questions
9Answers
18.0KViews on questions

Explain information value in Machine learning

It is the process used by the industries for reducing the major variables before fitting the model as a number of variables present in the final model would be about 10. It is used in the basic filtering of the variable and decided whether to include those in the model or not. It works by the following formula. The…

Data Science

Answered Nov 30, 2019 · 2.6K Views Read answer →

When to use factor() function in R?

factor() function is used when the data mostly contains categorical variables.This specific function will become extremely useful when we begin to apply data analysis and machine learning techniques to our data. This idea is sometimes also known as creating dummy variables. animal

Data Science

Answered Nov 29, 2019 · 1.6K Views Read answer →

A user implemented a Gini coefficient in Python

def gini(x): # Mean absolute difference. mad = np.abs(np.subtract.outer(x, x)).mean() # Relative mean absolute difference rmad = mad / np.mean(x) # Gini coefficient is half the relative mean absolute difference. return 0.5 * rmad

Data Science

Answered Nov 9, 2019 · 2.0K Views Read answer →

A user is loading the following code but receives an error. How to fix that?

from sklearn.datasets import load_iris from sklearn import tree X, y = load_iris(return_X_y=True) clf = tree.DecisionTreeClassifier() clf = clf.fit(X, y) The error is given below NameError Traceback (most recent call last) in ----> 1 tree.plot_tree(clf.fit(iris.data, iris.target))NameError: name 'iris' is not defined…

Data Science

Answered Nov 4, 2019 · 1.4K Views Read answer →

More members from the Data Science community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.