Friday, March 9, 2012
By Marc Cohen, Developer Relations
The Google Prediction API Team has been hard at work on Release 1.5, which is available now, with the following new features:
- Model enumeration. We’ve added the ability to list all of your models via the
trainedmodels.listrequest. You can obtain the entire list in one response or you can iterate through a large listing in pieces using the
- Model analysis. We’ve added the ability to obtain more detailed information about data and models via the
trainedmodels.analyzerequest, which returns information about the trained model’s output values, features, confusion matrix, and other information.
getmethod. We’ve simplified the output returned by the
trainedmodels.getrequest. Model analysis data that previously was returned by a
getrequest (e.g. the confusion matrix), is now returned by the new
analyzerequest, along with additional analysis data. The
getresponse now returns a simpler model description along with new timestamps indicating when the model was inserted and when model training completed, which should make it easier to keep track of model lifecycle.
- New Google App Engine samples. We’ve created two new sample apps illustrating how to use the Prediction API from App Engine, coded in Python and Java. These samples show how to create and manage shared server OAuth 2.0 credentials, and how to make predictions on behalf of any site visitors using the shared server credentials. The sample code is available here and a live version of the sample app is available here: http://try-prediction.appspot.com.
We’re always looking for ways to improve the Prediction API so, as always, please let us know about any problems or feature suggestions you might have. Happy Predicting!
Marc Cohen is a member of Google’s Developer Relations Team in Seattle. When not teaching Python programming and listening to indie rock music, he enjoys using the Google Prediction API to peer into the future.
Posted by Scott Knaster, Editor