Techno Blender
Digitally Yours.
Browsing Tag

Kuchar

Using Python UDF’s and Snowflake’s Snowpark to build and deploy Machine Learning Models, Part 2 | by Chris Kuchar | Aug, 2022

How to train and predict all within a UDF uploaded to SnowparkImage from Anthi K via UnsplashIn Part 1, I showed how to train a local model, wrap it in a Python udf, push it to Snowflake using Snowpark, and use Snowpark or Snowflake Sql to make predictions using that udf.This guide, on the other hand, will show you how to make a Python udf that builds, trains, and predicts on a model all using Snowpark and Snowflake compute. We will use Regression here, while Part 1 used Classification.This article will also highlight…

Using Python UDF’s and Snowflake’s Snowpark to build and deploy Machine Learning Models, Part 1 | by Chris Kuchar | Jul, 2022

Photo from Alessio Soggetti via UnsplashThis guide will show you how to use Snowflake’s Snowpark with Python UDF’s, to leverage Snowflake’s compute power to run Machine Learning models using Python.Import Librariesimport snowflake.connectorimport pandas as pdimport numpy as npfrom sqlalchemy import create_enginefrom snowflake.sqlalchemy import URLfrom snowflake.connector.pandas_tools import write_pandasfrom snowflake.snowpark.functions import udffrom snowflake.snowpark.types import IntegerType, StringType, StructType,…