Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Run pickle
# run this anywhere and change the path
import dill
from pandas import read_csv
url = ""
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('', '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