Skip to content

Instantly share code, notes, and snippets.

@QuantumDamage
Created April 15, 2017 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuantumDamage/e3e3eb5d9bf93e4a7658e5de1f073096 to your computer and use it in GitHub Desktop.
Save QuantumDamage/e3e3eb5d9bf93e4a7658e5de1f073096 to your computer and use it in GitHub Desktop.
X_train, X_test, y_train, y_test = train_test_split(imp.transform(heartData),heartTarget.values)
tpot = TPOTClassifier(generations=5, population_size=50, verbosity=2)
tpot.fit(X_train, y_train)
print(tpot.score(X_test, y_test))
tpot.export('../output/heart_pipeline.py')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment