About this lab
You are a data scientist at a mid-size real estate analytics firm. The company receives thousands of property listings each month and needs an automated way to predict fair market prices before they go live. Your manager asks you to build a regression pipeline entirely within Snowflake so the pricing team can score new listings with a single SQL query.
In this lab you will load a 5,000-row property dataset into Snowflake, engineer meaningful features such as property age and total rooms, then train three regression models (Linear Regression, Random Forest, Gradient Boosting) using the Snowpark ML library. After comparing each model on RMSE, MAE, and R-squared, you will register the best performer in the Snowflake Model Registry and run SQL-based inference so any analyst can predict prices without writing Python.
Lab details
- Level: Intermediate
- Cloud: Snowflake
- Domain: Data Science & MLOps
- Duration: 75 minutes
What you will learn
- Create a Snowflake environment with separate schemas for raw data, features, and models
- Load and explore a 5,000-row real estate dataset using SQL
- Engineer features including property age, total rooms, and encoded categoricals
- Train Linear Regression, Random Forest, and Gradient Boosting models using Snowpark ML
- Evaluate models with RMSE, MAE, and R-squared metrics and select the best performer
- Register the best model in the Snowflake Model Registry and run SQL-based inference
Concepts covered
- Regression Modeling
- Feature Engineering
- Snowpark ML
- Model Registry
- SQL-Based ML Inference
- Train/Test Split
Technologies used
- Snowflake
- Snowpark ML
- Snowpark Python
- Model Registry
Prerequisites
- Basic SQL knowledge (SELECT, JOIN, GROUP BY)
- Familiarity with Python fundamentals
- A Snowflake account (trial account works)
- Understanding of basic statistics (mean, standard deviation)
Topics
- Snowflake
- Snowpark ML
- Regression
- Machine Learning
- Real Estate
- Feature Engineering
- Model Registry
- Data Science
- Python