Icon

02_Snowflake_Model_Learning

Training and Testing a Customer Churn Predictor with KNIME and Snowflake
Annotations and comments
  • Training and Testing a Customer Churn Predictor with KNIME and Snowflake This workflow is an example of how to train a machine learning model in KNIME with data sampled from Snowflake. Once the model is applied at scale to the rest of the data in Snowflake to evaluate its reliability. Example data provided from kaggle: https://www.kaggle.com/becksddf/churn-in-telecoms-dataset
  • 1. Data Preparation. Sample and filter data within Snowflake before loading it into a KNIME table. If you haven't executed the 01b_Snowflake_ETL workflow before you can use the upper branch to create the "calls_contracts" table in Snowflake with example data.
  • 2. Model Learning. Learns a Random Forest model and converts it into a transportable MOJO model.
  • 3. Model Evaluation and Storing. Send the MOJO model to Snowflake and predict remainig data in the Snowflake data table. The predicted and filtered result is read into KNIME to evaluate the model acurracy.
  • remove unwanted columns e.g. phone
  • Keep only churn and predicted column
  • Read data into KNIME table
  • Read predicted data into KNIME table
  • Stratified sampling on churn
  • Select existing table
  • Create db table with data
  • Save model for later usage
  • View Score
  • Change connection information to your Snowflake account
  • Apply H2O model at scale in Snowflake
  • calls contracts

Nodes

Extensions

Links