PREDICT
native scoring with an ONNX/RevoScale model
What changes
- Input
- stored model (varbinary) and an input rowset
- Output or change
- scored rowset defined by WITH (...)
Syntax at a glance
PREDICT ( MODEL = @model | model_literal, DATA = object AS <table_alias> ) WITH ( <result_set_definition> )
Work example
A scoring query needs a supported model to produce predictions from a rowset.
Check model version, input columns, execution environment, and permissions. Use synthetic features and compare with a known test vector.
Check your work PREDICT. The prediction shape and values match the model contract for the test vector.
Open Microsoft Learn for full syntax, permissions, and details for your version.