Skip to content

Instantly share code, notes, and snippets.

@argenisleon
Last active August 22, 2018 22:22
Show Gist options
  • Select an option

  • Save argenisleon/532b0b2cf0e46ab336914901080ec22d to your computer and use it in GitHub Desktop.

Select an option

Save argenisleon/532b0b2cf0e46ab336914901080ec22d to your computer and use it in GitHub Desktop.
from optimus import Optimus
from optimus.ml.models import ML
op = Optimus()
ml = ML()
df_predict, rf_model = ml.random_forest(df_cancer, columns, "diagnosis")
['label',
'diagnosis',
'radius_mean',
'texture_mean',
'perimeter_mean',
'area_mean',
'smoothness_mean',
'compactness_mean',
'concavity_mean',
'concave points_mean',
'symmetry_mean',
'fractal_dimension_mean',
'features',
'rawPrediction',
'probability',
'prediction']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment