Google_Service_Prediction_Hostedmodels_Resource

The "hostedmodels" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Prediction.php  
  1. class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Submit input and request an output against a hosted model. 
  5. * (hostedmodels.predict) 
  6. * @param string $project The project associated with the model. 
  7. * @param string $hostedModelName The name of a hosted model. 
  8. * @param Google_Input $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @return Google_Service_Prediction_Output 
  11. */ 
  12. public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array()) 
  13. $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('predict', array($params), "Google_Service_Prediction_Output");