predictions
Creates, updates, deletes, gets or lists a predictions resource.
Overview
| Name | predictions |
| Type | Resource |
| Id | gemini.models.predictions |
Fields
The following fields are returned by SELECT queries:
- predict
| Name | Datatype | Description |
|---|---|---|
predictions | array | The outputs of the prediction call. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
predict | select | modelsId | parameters, instances | Performs a prediction request. |
predict_long_running | exec | modelsId | Same as Predict but returns an LRO. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
modelsId | string | |
instances | array | Required. The instances that are the input to the prediction call. |
parameters | string | Optional. The parameters that govern the prediction call. (arbitrary JSON, projected as a string column) |
SELECT examples
- predict
Performs a prediction request.
SELECT
predictions
FROM gemini.models.predictions
WHERE modelsId = '{{ modelsId }}' -- required
AND parameters = '{{ parameters }}'
AND instances = '{{ instances }}'
;
Lifecycle Methods
- predict_long_running
Same as Predict but returns an LRO.
EXEC gemini.models.predictions.predict_long_running
@modelsId='{{ modelsId }}' --required
@@json=
'{
"instances": "{{ instances }}",
"parameters": "{{ parameters }}"
}'
;