Download - Using predictive APIs to create smarter apps
–Mike Gualtieri, Principal Analyst at Forrester
“Predictive apps are the next big thing
in app development.”
–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.”
The two methods of predictive APIs: • model = create_model(dataset)
• predicted_output = create_prediction(model, new_input)
from bigml.api import BigML
# create a modelapi = BigML()source = api.create_source('training_data.csv')dataset = api.create_dataset(source)model = api.create_model(dataset)
# make a predictionprediction = api.create_prediction(model, new_input)print "Predicted output value: ",prediction['object']['output']
http://bit.ly/bigml_wakari
from bigml.api import BigML
# create a modelapi = BigML()source = api.create_source('training_data.csv')dataset = api.create_dataset(source)model = api.create_model(dataset)
# make a predictionprediction = api.create_prediction(model, new_input)print "Predicted output value: ",prediction['object']['output']
http://bit.ly/bigml_wakari
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
Problem-specific Predictive APIs:• Churn: ChurnSpotter.io, Framed.io • Fraud detection: SiftScience.com • Lead scoring: Infer.com • Personal assistant (Siri): Wit.ai
Fixed-model Predictive APIs:• Text: Datumbox.com, Semantria.com • Vision: Indico, AlchemyAPI.com • Siri-like: maluuba.com
• “Open source prediction server” • Based on Spark • Expose predictive models as (scalable
& robust) APIs
cli = predictionio.EventClient("<my_app_id>") cli.record_user_action_on_item("view","John","Item") eng = predictionio.EngineClient("<my_engine_url>") rec = eng.send_query({"uid":"John","n":5})
• Increase e-commerce revenue with recos • Reduce attrition (“churn”) • Automate decision making • Predict real-estate prices w. open data • Predict crowds (SNCF & La Poste) • …