You are on page 1of 13

Machine Learning (639402)

Practical:1
Aim: Write a python code to implement decision tree for below given
dataset. Identify the root node and all subpart or children of node and draw
the tree.

Soumitra Mishra [215690694027] Page 1


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 2


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 3


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 4


Machine Learning (639402)

Practical:2
Aim: Write a python code to apply Naive Bayesian algorithm to clasify that
whether a person can buy computer or not based on given test data.

Soumitra Mishra [215690694027] Page 5


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 6


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 7


Machine Learning (639402)

Practical:3
Aim: Write a python code to implement Naïve Bayesian algorithm for wine
dataset.

Soumitra Mishra [215690694027] Page 8


Machine Learning (639402)

Practical:4
Aim: Write a python code to implement Decision Tree algorithm Iris Dataset
(from sklearn.dataset import load_iris)

Soumitra Mishra [215690694027] Page 9


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 10


Machine Learning (639402)

Practical:4
Aim: Write a python code to implement K Nearest Neighbourhood algorithm
Breast Cancer Wisconsin Dataset (from sklearn.dataset import
load_breast_cancer) .

Soumitra Mishra [215690694027] Page 11


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 12


Machine Learning (639402)

Soumitra Mishra [215690694027] Page 13

You might also like