Last active
September 8, 2018 11:24
-
-
Save baatout/8f3d9f7ac6531b1285439d0699bebd9a to your computer and use it in GitHub Desktop.
Run pickle
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
# run this anywhere and change the pipeline.pk path | |
import dill | |
from pandas import read_csv | |
url = "https://raw.githubusercontent.com/baatout/ml-in-prod/master/pima-indians-diabetes.csv" | |
features = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age'] | |
label = 'label' | |
dataframe = read_csv(url, names=features + [label]) | |
X = dataframe[features] | |
Y = dataframe[label] | |
with open('pipeline.pk', 'rb') as f: | |
clf = dill.load(f) | |
print clf.score(X, Y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment