Join the conversation
![](https://codanics.com/wp-content/uploads/2024/04/IMG_20240410_175137-1-scaled.jpg)
Done
Reply
![](https://codanics.com/wp-content/uploads/2023/10/IMG_20231001_061900_529-1.jpg)
good
Reply
![](https://codanics.com/wp-content/uploads/2024/05/My_profile_pic.jpg)
I have done this lecture with 100% practice.
Reply
![](https://codanics.com/wp-content/uploads/2023/10/e24e3cc0-f9cd-49cc-9e5e-e7fea619bd42.jpg)
I have done this video with 100% practice.
Reply
![](https://codanics.com/wp-content/uploads/2024/02/2.jpg)
Decision tree algorithm in Python in which we calculated the values of
(1) Entropy=0.97 means a moderate level of disorder in the dataset
(2) Gini_Impurity=0.48 mean impurity found
(3) Information_Gain=0 means no result is found
Reply
![](https://codanics.com/wp-content/uploads/2023/10/9dd24f5a-b137-440a-baba-1855925152a0.jpg)
And I also learned ML algorithm of decision tree in PythonAnd the Steps of Decision Tree and Example of data set1-Import the library of math
2-Example Dataset
3-Let's say we have a dataset with two classes, A and B
4-Suppose in a dataset of 10 elements, 4 are of class A and 6 are of class B
5-Number of elements in each class
6-Let's calculate the proportions
7-Print the proportions
8-Entropy Calculate
9-Gini impurity
10-Calculate Information Gain
ALLAH PAK aap ko sahat o aafiat wali lambi umar ata kray aor ap ko dono jahan ki bhalian naseeb farmaey,Ameen.
Reply