MACHINE LEARNING

APPLICATION OF SUPERVISED LEARNING

MACHINE LEARNINGHARD QUESTIONS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
dec= round(decision ____ tree.score(x ____ train, y ____ train) * 100, 2)
A
Return the sample value
B
Return the observations
C
Return the Accuracy
D
None of these
Explanation: 

Detailed explanation-1: -You are getting 100% accuracy because you are using a part of training data for testing. At the time of training, decision tree gained the knowledge about that data, and now if you give same data to predict it will give exactly same value. That’s why decision tree producing correct results every time.

Detailed explanation-2: -In order to make a decision tree, we need to calculate the impurity of each split, and when the purity is 100%, we make it as a leaf node. To check the impurity of feature 2 and feature 3 we will take the help for Entropy formula.

Detailed explanation-3: -The answer is “NO”. A high accuracy measured on the training set is the result of Overfitting. So, what does this overfitting means? Overfitting occurs when our machine learning model tries to cover all the data points or more than the required data points present in the given dataset.

There is 1 question to complete.