Tiger-0512 / compare-decisiontree-randomforest

Kaggle Tutorial with RandomForest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compare RandomForest with DecisionTree by using Kaggle tutorial

This notebook compares RandomForest with DecisionTree in the points below

  • Accuracy of the validation
  • Precision, Recall, and F1 Score
  • Important features
  • ROC Curve and AUC
  • Model Tree

Use this in Kaggle notebook

  • Run the command below in notebook
!pip install pydotplus
  • Change the path of data
./data/train.csv -> /kaggle/input/titanic/train.csv
./data/test.csv -> /kaggle/input/titanic/test.csv

Use this in your own PC

This notebook uses graphviz and pydotplus to visualize the decision tree
To install this, run the commands below in shell

$ brew install graphviz
$ pip install graphviz pydotplus

About

Kaggle Tutorial with RandomForest


Languages

Language:Jupyter Notebook 100.0%