Google_HostedmodelsServiceResource
The "hostedmodels" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_PredictionService.php
- class Google_HostedmodelsServiceResource extends Google_ServiceResource {
- /**
- * Submit input and request an output against a hosted model. (hostedmodels.predict)
- *
- * @param string $hostedModelName The name of a hosted model.
- * @param Google_Input $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Output
- */
- public function predict($hostedModelName, Google_Input $postBody, $optParams = array()) {
- $params = array('hostedModelName' => $hostedModelName, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('predict', array($params));
- if ($this->useObjects()) {
- return new Google_Output($data);
- } else {
- return $data;
- }
- }
- }