Model Deployment1 / 5
When deploying a model via the Snowflake Model Registry, which method runs inference on a DataFrame?
CorrectIncorrect
Alex
The ModelVersion.run() method is the correct API for running inference on a DataFrame through the Snowflake Model Registry. After retrieving a model version via Registry.get_model().version(), calling run(df) executes the model's prediction logic and returns results as a DataFrame. predict() resembles scikit-learn's API but is not a ModelVersion method. score() and execute() are also not valid ModelVersion methods. The run() method abstracts away model deserialization and provides a unified inference interface regardless of the underlying ML framework (scikit-learn, XGBoost, PyTorch, etc.).
Sourcedocs.snowflake.com
Follow-up answers are available in the app. Create a free account — no credit card required.
Question 1 of 5
Create a free account