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-configuration-profile-name> \
[--quiet] \
[--raw-output=true|false] \
[--verbose]
Arguments
The ml deployment compute-predictions
command has no arguments.
Options
Option | Description |
---|---|
--context |
Specify the configuration context
name.
|
--cpd-config |
The Cloud Pak for Data
configuration location (for example, $HOME/.cpd-cli/config).
|
--deployment-id |
Specify either the 'deployment_id' that identifies the deployment or a 'serving_name' that allows a predefined URL to post a prediction.
|
|
Display command
help.
|
--input-data |
Specify the input data.
|
--jmes-query |
Provide a JMESPath query to customize the output.
|
--output |
Specify an output format.
Valid formats include json, yaml, or text (the default
format).
|
--output-file |
Specify a file path where all output is redirected.
|
--profile |
The profile-name from the Cloud
Pak for Data configuration.
|
--quiet |
Suppress verbose messages.
|
--raw-output |
When set to true, single values in
JSON output mode are not surrounded by quotes.
|
--verbose |
Logs include more detailed
messages.
|