ML 3: Classification - Decision Trees

Packages Used: Functions from the following packages are used in this notebook for the first time:

Classificaton in relation to other aspects of machine learning:

image.png

Ex 1: Two Continuous Features

Full Fit => Deterministic

image.png

image.png

Partial Fit => Probabilistic

CART: Classification And Regression Trees

image.png

image.png

Ex 2: Predicting the Survival of Titanic Passengers

First Model: No Limit on Depth

Imbalanced Classification

Different Training Set

Second Model: Limit Depth of Decision Tree

Predictions

Use model to predict survival of for people that were not acutal passengers.

New Features

Can consider using new features that are derived from the original features.

Testing