/* Makes a prediction call to the Google Prediction API */
private static float predict(HttpTransport transport, float[] signals) throws IOException {
HttpRequest request = transport.buildPostRequest();
request.url = PredictionUrl.forPrediction(ClientLoginCredentials.OBJECT_PATH);
JsonCContent content = new JsonCContent();
InputData inputData = new InputData();
// inputData holds the signals to be sent to the Prediction API.
for (int i = 0; i < signals.length; i++) {
inputData.input.numeric.add(signals[i]);
}