GpPredict: GpPredict

Description Usage Arguments Value References

View source: R/GpPredict.R

Description

Trained models: Submit model id and request a prediction. Hosted models: Submit input and request an output against a hosted model.

Usage

1
2
  GpPredict(csv_instance, model_id, project, oauth,
    hosted = FALSE)

Arguments

csv_instance

Input to the model for a prediction. A list of input features, these can be strings or doubles.

model_id

The unique name for the predictive model (trained or hosted)

project

The project associated with the model.

oauth

The httr OAuth2.0 token reference class object to use for authentication.

hosted

optional boolean TRUE = hosted model, FALSE = trained model.

Value

JSON response from the Google Prediction API converted into an R List.

References

Trainedmodels: predict https://developers.google.com/prediction/docs/reference/v1.6/trainedmodels/predict

Hostedmodels: predict https://developers.google.com/prediction/docs/reference/v1.6/hostedmodels/predict


jdeboer/gprediction documentation built on May 19, 2019, 8:24 a.m.