0% found this document useful (0 votes)
19 views1 page

Training Machine Learning Models With Snowpark Python - Snowflake Documentation

The document discusses training machine learning models with Snowpark Python by using Snowpark-optimized warehouses for resource intensive workloads and Snowpark Python stored procedures to run custom code and ML training directly in Snowflake warehouses.

Uploaded by

demorepo99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Training Machine Learning Models With Snowpark Python - Snowflake Documentation

The document discusses training machine learning models with Snowpark Python by using Snowpark-optimized warehouses for resource intensive workloads and Snowpark Python stored procedures to run custom code and ML training directly in Snowflake warehouses.

Uploaded by

demorepo99
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

4/29/24, 3:06 PM Training Machine Learning Models with Snowpark Python | Snowflake Documentation

Developer Snowpark API Python


Training Machine Learning Models with Snowpark Python
Training Machine Learning Models with
Snowpark Python
This topic explains how to train machine learning (ML) models with Snowpark.
Note
Snowpark ML is a companion to Snowpark Python built specifically for
machine learning in Snowflake. This topic still contains useful general
information about machine learning with Snowpark Python, particularly if you
prefer to write your own stored procedures for machine learning.

Snowpark-Optimized Warehouses
Training machine learning (ML) models can sometimes be very resource intensive.
Snowpark-optimized warehouses are a type of Snowflake virtual warehouse that
can be used for workloads that require a large amount of memory and compute
resources. For example, you can use them to train an ML model using custom code
on a single node.
These optimized warehouses can also benefit some UDF and UDTF scenarios.
For more information about how to create a Snowpark-optimized warehouse, see
Snowpark-optimized warehouses.
Using Snowpark Python Stored Procedures for ML
Training
Snowpark Python stored procedures can be used to run custom code using a
Snowflake warehouse. Snowpark-optimized warehouses make it possible to use
Snowpark stored procedures to run single-node ML training workloads directly in
Snowflake.
A Python stored procedure can run nested queries, using the Snowpark API for
Python, to load and transform the dataset, which is then loaded into the stored
procedure memory to perform pre-processing and ML training. The trained model
can be uploaded into a Snowflake stage, and can be used to create UDFs to
perform inference.
https://docs.snowflake.com/en/developer-guide/snowpark/python/python-snowpark-training-ml 1/1

You might also like