ahmetcihatcetin / ADHD-adolescents-machine-learning

Using Machine Learning in ADHD for Children and Adolescents as a New and Sensitive Diagnostic Method
0 stars 0 forks source link

Decision Tree Algorithm #4

Open ahmetcihatcetin opened 6 months ago

ahmetcihatcetin commented 6 months ago

In this issue we'll be looking at the development of the decision tree algorithm for the project.

ahmetcihatcetin commented 6 months ago

Utilized Modules/Libraries

References: six.readthedocs.io and seaborn.pydata.org

ahmetcihatcetin commented 6 months ago

Decision Tree Model (for the Project)

Below, we could see a visualization of the decision tree which is used by the algorithm for the conners parent data. We could take notice the relevant information such as:

Also we can confirm that the maximum depth of our decision tree model is indeed 3 and minimum samples on the leaves are indeed at least 10.

Visualization of the decision tree which is used by the algorithm for the conners parent data

Likewise, below is the decision tree for the Conners' teacher data:

Visualization of the decision tree which is used by the algorithm for the conners teacher data

The same observations which we've made for the decision tree for the parent data could be made for the the decision tree for the teacher data.

References: sklearn.tree.DecisionTreeClassifier

ahmetcihatcetin commented 6 months ago

Performance Metrics

Our decision tree algorithm also creates a file containing the related performance metrics for the predictions made for the unlabeled data. Performance metrics are crucial for determining the 'success' of the algorithm and making further optimizations onto the algorithm. Let's have a look at these performance metrics:

Accuracy

Precision and Recall

F1 Score

f1score

ROC (Receiver Operating Characteristic) Curve

ROCcurve reference for the graph

References: (Shah, 2023) and javatpoint.com