Skip to main content

Posts

Showing posts from May, 2020

Applications of Naive bayes

1.       Consider the following dataset: Apply Naïve Bayes classifier for predicting the  feature, “ Inflated ” . Calculate the training set error. solution:    

Example on Application of decision trees

1.   Analyze the below dataset and fill the missing values by applying appropriate values.  Original F illed with mean                                                              

Example problem on simple linear regression

1.      Consider the following farmer dataset.   Number of pounds per acre (in hundreds) Bushels per acre X y 1.0 25 2.5 32 3.0 35 3.0 32 3.4

IMPLEMENTATION OF KNN CLASSIFIER

1.       Predict the food type for tomato (A = 6 B = 4) with k=2 using the below the training data set.   Ingredient A B Food Type Grape 8 5 Fruit Beans 3 7

KNN CLASSIFIER

DA2 ML VITOL PART3   A B C D Output Some High False French Yes Full Low False Thai No Some

NAIVE BAYES CATEGORICALNB CLASSIFICATION

DA2 ML ( 3RD AND 4TH )QUESTION QUESTIONS:   A B C D Output Some High False French Yes Full Low False Thai No Some Low False Burger Yes Full Low False Thai Yes Full High False French No Some Normal True Italian Yes None Low True Burger No Some Normal True Thai Yes Full Low True Burger No Full High False Italian No None Low False Thai Yes Full Low False

DECISION TREE CLASSIFIER USING ENTROPY METHOD

Basic introduction to Decision tree's Algorithm QUESTIONS: A B C D Output Some High False French Yes Full Low False Thai No Some Low False Burger Yes Full Low False Thai Yes Full High False French No Some Normal True Italian Yes None Low True Burger No Some Normal True Thai Yes Full Low True Burger No Full High False Italian No None Low False Thai Yes Full Low False Burg