Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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