Machine learning model DDL

The following DDL commands are used to create, view, and manage machine-learning models and their versions.

A model is a schema-level object that contains a machine learning model that has been trained and stored in the Snowpark ML Registry. Model commands let you create and manage models in SQL. You can also create and manage models in Python using the Snowpark ML Registry API.

Model monitors allow you to monitor the performance of machine learning models you have deployed in Snowflake.

Machine learning models

CREATE MODELCreates a new machine learning model in the current/specified schema or replaces an existing model.
ALTER MODELModifies the properties for an existing model, including its name, tags, default version, or comment.
SHOW MODELSLists the machine learning models that you have privileges to access.
DROP MODELRemoves a machine learning model from the current/specified schema.

Machine learning model versions

ALTER MODEL … ADD VERSIONAdds a new version to an existing model from an internal stage.
ALTER MODEL … DROP VERSIONRemoves a version from an existing model.
ALTER MODEL … MODIFY VERSIONModifies a version of a model, changing the version’s comment or metadata.
SHOW VERSIONS IN MODELLists the versions in a machine learning model.

Machine learing model functions

SHOW FUNCTIONS IN MODELShows the models (methods) attached to a machine learing model.

Machine learning model monitors

CREATE MODEL MONITORCreate a new model monitor.
ALTER MODEL MONITORModify the properties of an existing model monitor, including its refresh interval and warehouse, or suspend or resume it.
SHOW MODEL MONITORSLists the model monitors that you have privileges to access.
DESCRIBE MODEL MONITORShows the properties of a model monitor.
DROP MODEL MONITORRemoves a model monitor from the current/specified schema.