Skip to content

Instantly share code, notes, and snippets.

@baatout
Last active September 8, 2018 11:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save baatout/8f3d9f7ac6531b1285439d0699bebd9a to your computer and use it in GitHub Desktop.
Save baatout/8f3d9f7ac6531b1285439d0699bebd9a to your computer and use it in GitHub Desktop.
Run pickle
# 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