Icon

04 Advanced Machine Learning

Advanced Machine Learning - Exercise

This workflow shows a hands-on exercise in the L2-DS Introduction to KNIME Analytics Platform for Data Scientists - Advanced course

Annotations and comments
  • Task 1: Random Forest (Regression) 1. Execute the workflow. It reads and preprocesses the data about Airbnb listings in New York City, NY in 2019. 2. Partition the data into a training set (70%) and a test set (30%). Apply random sampling. 3. Train a Random Forest (Regression) model to predict the price column 4. Apply the model to the test set 5. Evaluate the model's performance with the Numeric Scorer node
  • Task 2: Parameter Optimization Loop 1. Start with a Parameter Optimization Loop Start node. Create a parameter for the number of trees with start value=50, end value=150, and increment=10. It is an integer. 2. Overwrite the number of models setting in the Random Forest Learner (Regression) node with this parameter 3. Transform the numeric scoring metrics into flow variables. Use the Table Column to Variable node. 4. End with a Parameter Optimization Loop End node. Use MAPE as the objective value.
  • Read AB_NYC_2019 data
  • css_sidebar
  • Column name(s)
  • number of selected columns
  • Define active switch port
  • Filter selected columns
  • selected
  • Get data types
  • Remove "(replace with X)", if present
  • Find name of numeric factory
  • Numbers factories
  • Strings factories
  • Collection of selected column names
  • Configure bypass switch
  • Empty table check
  • Regex pattern to find all selected columns
  • css_header
  • Header
  • hide_border
  • Title size
  • Title text
  • KNIME logo image in base64 format.
  • Check for no columns
  • Message text
  • Numbers
  • Strings
  • Outliers
  • Row selection strategy
  • Guide
  • Separator line
  • Empty input table
  • R2 and error metrics
  • Minimize MAPE
  • Control nr of models
  • Predict price
  • Replace price column
  • Neighborhood and room type
  • Average price
  • Top: Price=0

Nodes

Extensions

Links