Skip to main content

predictions

Creates, updates, deletes, gets or lists a predictions resource.

Overview​

Namepredictions
TypeResource
Idgemini.models.predictions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
predictionsarrayThe outputs of the prediction call.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
predictselectmodelsIdparameters, instancesPerforms a prediction request.
predict_long_runningexecmodelsIdSame 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.

NameDatatypeDescription
modelsIdstring
instancesarrayRequired. The instances that are the input to the prediction call.
parametersstringOptional. The parameters that govern the prediction call. (arbitrary JSON, projected as a string column)

SELECT examples​

Performs a prediction request.

SELECT
predictions
FROM gemini.models.predictions
WHERE modelsId = '{{ modelsId }}' -- required
AND parameters = '{{ parameters }}'
AND instances = '{{ instances }}'
;

Lifecycle Methods​

Same as Predict but returns an LRO.

EXEC gemini.models.predictions.predict_long_running
@modelsId='{{ modelsId }}' --required
@@json=
'{
"instances": "{{ instances }}",
"parameters": "{{ parameters }}"
}'
;