Google Prediction API for .NET

This project is currently broken - OAuth 2.0 is not supported. OAuth 2.0 support is anticipated for mid-August 2011.

It's the Google Prediction API in a very convenient .NET library, written in C#.

Please read the Getting Started Guide.

Demo of the WinForms GUI built using the library


 Requests

 Syntax Examples

/// SIMPLE INSTANTIATION

Google.API.Predict.GooglePredictionClient g = new Google.API.Predict.GooglePredictionClient("you@gmail.com", "password", "bucket", "data");

 

 

 

 

/// INITIATE TRAINING 

Google.API.Predict.Responses.TrainingResponse train = g.Train();

 

 

 

/// RETRIEVE META DATA 

/// Data and Model Info Fields 

Google.API.Predict.Responses.MetadataResponse meta = g.Check();

 

 

 

 

/// MIXED PREDICTION 

Google.API.Predict.Requests.MixedPrediction mixed = new Google.API.Predict.Requests.MixedPrediction(1, "test", 1.5);

Google.API.Predict.Responses.PredictionResponse mixedResponse = g.PredictMixed(mixed);

 

 

 

 

/// NUMERIC PREDICTION 

Google.API.Predict.Requests.NumericPrediction numeric = new Google.API.Predict.Requests.NumericPrediction(21.25645,  112.359);

Google.API.Predict.Responses.PredictionResponse numericResponse = g.PredictNumeric(numeric);

 

 

 

 

/// TEXT PREDICTION

Google.API.Predict.Requests.TextPrediction text = new Google.API.Predict.Requests.TextPrediction("testing", "text");

Google.API.Predict.Responses.PredictionResponse textResponse = g.PredictText(text); 

Last edited Jul 27, 2011 at 6:58 PM by ajparise, version 17