You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ The library is a part of ecosystem:
19
19
-[Examples](#examples)
20
20
-[Logistic regression](#logistic-regression)
21
21
-[Linear regression](#linear-regression)
22
+
-[Decision tree based classification](#decision-tree-based-classification)
22
23
-[Models retraining](#models-retraining)
23
24
-[Notes on gradient based optimisation algorithms](#a-couple-of-words-about-linear-models-which-use-gradient-optimisation-methods)
24
25
@@ -579,6 +580,75 @@ void main() async {
579
580
````
580
581
</details>
581
582
583
+
## Decision tree based classification
584
+
585
+
Let's try to classify data from a well-known [Iris](https://www.kaggle.com/datasets/uciml/iris) dataset using a non-linear algorithm - [decision trees](https://en.wikipedia.org/wiki/Decision_tree)
586
+
587
+
First, you need to download the data and place it in a proper place in your file system. To do so you should follow the
588
+
instructions which are given in [Logistic regression](#logistic-regression) section.
589
+
590
+
After loading the data, it's needed to preprocess it. We should drop `Id` column since the column doesn't make sense.
591
+
Also, we need to encode 'Species' column - originally, it contains 3 repeated string labels, to feed it to the classifier
0 commit comments