Skip to content

Instantly share code, notes, and snippets.

@cuckookernel
Last active May 7, 2018 21:39
Show Gist options
  • Save cuckookernel/c6ba55c7ae21f65b31dd31aa1e4e17fa to your computer and use it in GitHub Desktop.
Save cuckookernel/c6ba55c7ae21f65b31dd31aa1e4e17fa to your computer and use it in GitHub Desktop.
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
# tcxp.py and titanic_preproc.py are available at:
# https://github.com/YuxiGlobal/data-analytics/tree/master/tree_classif_explain
from tcxp import rf_explain, as_pyplot_figure
from titanic_preproc import preproc
train_df = pd.read_csv( "c:/tmp/titanic/train.csv" )
train_df, train_Y = preproc( train_df )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment