Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Machine Learning

Machine Learning Questions & Answers

Browse 121 Machine Learning questions and answers from learners and industry experts. Find practical fixes, interview prep and step-by-step solutions - or ask your own.

121Discussions
145Answers
0Waiting for an answer
Ask a Machine Learning Question →

Visualize a decision tree regression using Python

Let us import the model # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset…

Data Science · Machine Learning

1 Answer · 1.8K Views · Answered ✓

Asked by: Ira Joshi · 6 years ago

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) #…

Data Science · Machine Learning

1 Answer · 2.0K Views · Answered ✓

Asked by: varsha Chauhan · 6 years ago

A user ran the following code and received an error

import pandas as pd from sklearn.tree import DecisionTreeClassifier data = pd.DataFrame() data['A'] = ['a','a','b','a'] data['B'] = ['b','b','a','b']…

Data Science · Machine Learning

1 Answer · 1.4K Views · Answered ✓

Asked by: Gayatri Jaiteley · 6 years ago

Explain entropy

Entropy is the measure of impurity present in the data and it is derived from information theory. The entropy is considered as zero, if the sample is…

Data Science · Machine Learning

4 Answers · 1.6K Views · Answered ✓

Asked by: Nikita Gavde · 6 years ago

Define n-grams

N-grams are used in text p reprocessing tasks and they are a combination of words occur in a given window.

Data Science · Machine Learning

1 Answer · 1.9K Views · Answered ✓

Asked by: Kayla Shinn · 6 years ago

Explain Gini in decision tree algorithm

It is an impurity which is also a measure of misclassification which applies in a context of multi class classifier. It works similar to entropy but…

Data Science · Machine Learning

1 Answer · 1.2K Views · Answered ✓

Asked by: Sneha Pandey · 6 years ago

Learn & Explore

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

Latest Data Science Blogs

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

Explore other technologies

Pick another topic to find answers, interview questions, and real-world tips.