Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bigml.api import BigML
- api = BigML('monajalal', 'c817c61d763327837f9d174217c3940cad0596aa')
- source = api.create_source('./data/iris.csv')
- dataset = api.create_dataset(source)
- model = api.create_model(dataset)
- prediction = api.create_prediction(model, \
- {'sepal length': 5, 'sepal width': 2.5})
- print(prediction)
- api.pprint(prediction)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement