snowflake-ml-python API Reference¶
The snowflake-ml-python package is a set of tools for creating and working with machine learning models in Python on Snowflake.
See the Snowflake ML Developer Guide for more information.
Additional ML APIs are available in snowflake-ml-python when running on Container Runtime for ML.
See Snowflake ML Container Runtime Reference (Python) for details on these APIs.
snowflake-ml-python also includes Python APIs for Snowflake Cortex.
- Acknowledgements
Portions of the Snowpark ML API Reference are derived from scikit-learn (https://scikit-learn.org/stable/user_guide.html), xgboost (https://xgboost.readthedocs.io/en/stable/), and lightgbm (https://lightgbm.readthedocs.io/en/stable/) documentation.
scikit-learn Copyright © 2007-2025 The scikit-learn developers. All rights reserved.xgboost Copyright © 2019 by xgboost contributors.lightgbm Copyright © Microsoft Corporation.
Container Runtime for ML APIs¶
The following APIs are available only in the version of snowpark-ml-python available in the Container Runtime for ML, accessible in Snowflake Notebooks running on Snowpark Container Services (SPCS).
Standard APIs¶
The following APIs are available in both the Container Runtime for ML and in the standalone client version of snowpark-ml-python accessible through conda and pip, in Snowsight Python worksheets, and in Snowflake notebooks running on a warehouse.
- Machine Learning APIs in
snowflake-ml-python- snowflake.ml.data
- snowflake.ml.dataset
- snowflake.ml.experiment
- snowflake.ml.feature_store
- snowflake.ml.fileset
- snowflake.ml.jobs
- snowflake.ml.model
- snowflake.ml.modeling
- snowflake.ml.modeling.calibration
- snowflake.ml.modeling.cluster
- snowflake.ml.modeling.compose
- snowflake.ml.modeling.covariance
- snowflake.ml.modeling.decomposition
- snowflake.ml.modeling.discriminant_analysis
- snowflake.ml.modeling.ensemble
- snowflake.ml.modeling.feature_selection
- snowflake.ml.modeling.gaussian_process
- snowflake.ml.modeling.impute
- snowflake.ml.modeling.kernel_approximation
- snowflake.ml.modeling.kernel_ridge
- snowflake.ml.modeling.lightgbm
- snowflake.ml.modeling.linear_model
- snowflake.ml.modeling.manifold
- snowflake.ml.modeling.metrics
- snowflake.ml.modeling.mixture
- snowflake.ml.modeling.model_selection
- snowflake.ml.modeling.multiclass
- snowflake.ml.modeling.naive_bayes
- snowflake.ml.modeling.neighbors
- snowflake.ml.modeling.neural_network
- snowflake.ml.modeling.pipeline
- snowflake.ml.modeling.preprocessing
- snowflake.ml.modeling.semi_supervised
- snowflake.ml.modeling.svm
- snowflake.ml.modeling.tree
- snowflake.ml.modeling.xgboost
- snowflake.ml.monitoring
- snowflake.ml.registry
- Snowflake Cortex APIs in
snowflake-ml-python- snowflake.cortex
- snowflake.cortex.CompleteOptions
- snowflake.cortex.Finetune
- snowflake.cortex.FinetuneJob
- snowflake.cortex.FinetuneStatus
- snowflake.cortex.classify_text
- snowflake.cortex.complete
- snowflake.cortex.embed_text_1024
- snowflake.cortex.embed_text_768
- snowflake.cortex.extract_answer
- snowflake.cortex.sentiment
- snowflake.cortex.summarize
- snowflake.cortex.translate
- snowflake.cortex