This document discusses predictive APIs and machine learning. It covers the two phases of machine learning: training a model and predicting with a model. It also discusses the different types of predictive APIs based on their level of abstraction, including generic, text classification, problem-specific, and fixed model APIs. It provides examples of APIs for each type. The document also discusses customizing predictive APIs and introduces PredictionIO as an open source predictive serving engine.
10. –McKinsey & Co. (2011)
“A significant constraint on
realizing value from big data
will be a shortage of talent,
particularly of people with
deep expertise in statistics and
machine learning.”
21. The two phases of machine learning:
• TRAIN a model
• PREDICT with a model
22. The two methods of predictive APIs:
• TRAIN a model
• PREDICT with a model
23. The two methods of predictive APIs:
• model = create_model(dataset)
• predicted_output =
create_prediction(model, new_input)
24. from bigml.api import BigML
# create a model
api = BigML()
source =
api.create_source('training_data.csv')
dataset = api.create_dataset(source)
model = api.create_model(dataset)
# make a prediction
prediction = api.create_prediction(model,
new_input)
print "Predicted output value:
",prediction['object']['output']
http://bit.ly/bigml_wakari
25. from bigml.api import BigML
# create a model
api = BigML()
source =
api.create_source('training_data.csv')
dataset = api.create_dataset(source)
model = api.create_model(dataset)
# make a prediction
prediction = api.create_prediction(model,
new_input)
print "Predicted output value:
",prediction['object']['output']
http://bit.ly/bigml_wakari
32. AMAZON GOOGLE PREDICSIS BIGML
ACCURACY 0.862 0.743 0.858 0.790
TRAINING
TIME
135s 76s 17s 5s
TEST TIME 188s 369s 5s 1s
louisdorard.com/blog/machine-learning-apis-comparison