Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. from bigml.api import BigML
  2.  
  3.  
  4. api = BigML('monajalal', 'c817c61d763327837f9d174217c3940cad0596aa')
  5.  
  6. source = api.create_source('./data/iris.csv')
  7. dataset = api.create_dataset(source)
  8. model = api.create_model(dataset)
  9. prediction = api.create_prediction(model, \
  10. {'sepal length': 5, 'sepal width': 2.5})
  11.  
  12. print(prediction)
  13. api.pprint(prediction)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement