Last active
May 7, 2018 21:39
-
-
Save cuckookernel/c6ba55c7ae21f65b31dd31aa1e4e17fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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