ml deployment compute-predictions

Run a synchronous deployment prediction with the specified identifier. If a 'serving_name' is used, it must match the 'serving_name' that is returned in the 'serving_urls'.

Syntax

cpd-cli ml deployment compute-predictions \
[--context=<catalog-project-or-space-id>] \
[--cpd-config=<cpd-config-location>] \
--deployment-id=<deployment-id-or-serving-name> \
--input-data=<input-data>\
[--jmes-query=<jmespath-query>] \
[--output=json|yaml|table] \
[--output-file=<output-file-location>] \
--profile=<cpd-profile-name> \
[--quiet] \
[--raw-output=true|false] \
[--verbose]

Arguments

The ml deployment compute-predictions command has no arguments.

Options

Table 1: Command options
Option Description
--context Specify the configuration context
 name.
Status
Optional.
Syntax
--context=<catalog-project-or-space-id>
Default value
Not applicable.
Valid values
A valid configuration context name.
--cpd-config The Cloud Pak for Data
 configuration location. For example, $HOME/.cpd-cli/config.
Status
Required.
Syntax
--cpd-config=<cpd-config-location>
Default value
$HOME/.cpd-cli/config
Valid values
A valid Cloud Pak for Data configuration location.
--deployment-id Specify either the 'deployment_id' that identifies the deployment or a 'serving_name' that allows a predefined URL to post a prediction.
Status
Required.
Syntax
--deployment-id=<deployment-id-or-serving-name>
Default value
No default.
Valid values
Specify either the 'deployment_id' that identifies the deployment or a 'serving_name' that allows a predefined URL to post a prediction.

--help

-h

Display command help.
Status
Optional.
Syntax
--help
Default value
No default.
Valid values
Not applicable.
--input-data Specify the input data.
Status
Required.
Syntax
--input-data=<input-data>
Default value
No default.
Valid values
Any valid input data.
--jmes-query Provide a JMESPath query to customize the output.
Status
Optional.
Syntax
--jmes-query=<jmespath-query>
Default value
No default.
Valid values
A valid JMESPath query.
--output Specify an output format.
Status
Optional.
Syntax
--output=json|yaml|text
Default value
text
Valid values
Valid formats include JSON, YAML, or text (the default format).
--output-file Specify a file path where all output is redirected.
Status
Optional.
Syntax
--output-file=<output-file-location>
Default value
No default.
Valid values
A valid output file path location.
--profile The name of the profile that you created to store information about an instance of Cloud Pak for Data and your credentials for the instance.
Status
Required.
Syntax
--profile=<cpd-profile-name>
Default value
No default.
Valid values

The name of the profile that you created.

--quiet Suppress verbose messages.
Status
Optional.
Syntax
--quiet
Default value
No default.
Valid values
Not applicable.
--raw-output When set to true, single values are not surrounded by quotation marks in
 JSON output mode.
Status
Optional.
Syntax
--raw-output=true|false
Default value
false
Valid values
false
Single values in JSON output mode are surrounded by quotation marks.
true
Single values in JSON output mode are not surrounded by quotation marks.
--verbose Logs include more detailed messages.
Status
Optional.
Syntax
--verbose
Default value
No default.
Valid values
Not applicable.