class Projects extends Resource (View source)

The "projects" collection of methods.

Typical usage is:

 $mlService = new Google\Service\CloudMachineLearningEngine(...);
 $projects = $mlService->projects;

Methods

explain(string $name, GoogleCloudMlV1ExplainRequest $postBody, array $optParams = [])

Performs explanation on the data in the request. {% dynamic include "/ai- platform/includes/___explain-request" %} (projects.explain)

getConfig(string $name, array $optParams = [])

Get the service account information associated with your project. You need this information in order to grant the service account permissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning. (projects.getConfig)

predict(string $name, GoogleCloudMlV1PredictRequest $postBody, array $optParams = [])

Performs online prediction on the data in the request. {% dynamic include "/ai-platform/includes/___predict-request" %} (projects.predict)

Details

GoogleApiHttpBody explain(string $name, GoogleCloudMlV1ExplainRequest $postBody, array $optParams = [])

Performs explanation on the data in the request. {% dynamic include "/ai- platform/includes/___explain-request" %} (projects.explain)

Parameters

string $name

Required. The resource name of a model or a version. Authorization: requires the predict permission on the specified resource.

GoogleCloudMlV1ExplainRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleApiHttpBody

Exceptions

Exception

GoogleCloudMlV1GetConfigResponse getConfig(string $name, array $optParams = [])

Get the service account information associated with your project. You need this information in order to grant the service account permissions for the Google Cloud Storage location where you put your model training code for training the model with Google Cloud Machine Learning. (projects.getConfig)

Parameters

string $name

Required. The project name.

array $optParams

Optional parameters.

Return Value

GoogleCloudMlV1GetConfigResponse

Exceptions

Exception

GoogleApiHttpBody predict(string $name, GoogleCloudMlV1PredictRequest $postBody, array $optParams = [])

Performs online prediction on the data in the request. {% dynamic include "/ai-platform/includes/___predict-request" %} (projects.predict)

Parameters

string $name

Required. The resource name of a model or a version. Authorization: requires the predict permission on the specified resource.

GoogleCloudMlV1PredictRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleApiHttpBody

Exceptions

Exception