Icon

AutoML Churn Prediction DataApp - Community Hub version

<p><strong>AutoML Component via Interactive Views</strong><br><br>This application is a simple example of AutoML with KNIME Software for binary and multiclass classification. The key of this example is the AutoML Component verified and developed by the KNIME Team. This Component (in green) uses the extension KNIME Integrated Deployment in order to train several models and combine them with other nodes and output a deployment workflow. The other Components (in blue) offer interactive views to control the AutoML process from any web browser via the KNIME WebPortal on KNIME Server. <br><br>The workflow also works locally on KNIME Analytics Platform. Make sure to use "Apply and Close" in bottom-right corner of each view.</p>

URL: KNIME Integrated Deployment - KNIME.com https://www.knime.com/integrated-deployment
URL: Guided Automation: a more complex AutoML example with KNIME Software https://kni.me/w/eAGfGtEAIr-1iYR-
URL: Deploying an AutoML Application with Guided Analytics - KNIME Blog https://www.knime.com/blog/integrated-deployment-deploying-an-automl-application-with-guided-analytics
URL: Automated Machine Learning - KNIME Blog https://www.knime.com/blog/integrated-deployment-blog-series-episode-3-automated-machine-learning

Annotations and comments
  • Churn Prediction DataApp This workflow trains diverse machine learning models for classification with preselected data and optionally deploys it as a REST Service.
  • Data Access
  • Configure parameters
  • Model training
  • Visualization
  • Validiation
  • Break if all models static
  • more faulty models
  • new faulty models
  • create new list as noithing failed during training
  • 0 : not missing performance 1 : missing performance
  • Recall
  • Precision
  • F-measure
  • static prediction: models always predicting one class
  • models with more than one class in the prediction
  • list static models
  • selected metric
  • model names
  • automated selection
  • interactive view selection
  • if multiclass remove conf. matrix metrics
  • activate view
  • fixed colors
  • negative Coehn's kappa is 0
  • add zoom
  • select metric
  • only cat cols output or normal wf
  • decide preprocess workflow cat cols or normal wf
  • decide postprocess workflow cat cols or normal wf
  • update domain
  • Columns to check for unique values
  • Bottom: string
  • Unique count
  • Max number of unique values
  • <= 25 unique values
  • integer features to double
  • cat_present = 1
  • cat_present = 0
  • One hot encoding choice binary
  • One hot encoding choice
  • categorical cols found
  • no categorical
  • remove orignal string cols
  • class
  • features
  • numerical flag
  • num_present = 1
  • num_present = 0
  • do nothing
  • only cat cols and check OHE status
  • only predictions not active: 0 active: 1
  • decide preproces Ohe =on/off workflow
  • post-process active: 0 not active: 1
  • 0: OHE off 1: OHE on
  • 0: train 1: test
  • Preprocessing Missing value
  • feattures+class
  • all features + OHE
  • split string cols
  • OHE + feattures + class
  • column loop and rename
  • remove all original data
  • Select One-Hot Encoded Columns
  • Remove One-Hot Encoded Columns
  • Combining OHE Removal (if any) with Denormalization (if any)
  • Missing values + Optional One Hot Encoding
  • train / test based on component external settings
  • 0 train 1 test
  • Postprocessing Denormalisation
  • flow variable decides activeness
  • Select columns for normalization
  • bottom: numeric
  • Min-max normalization
  • Normalization mode
  • Preprocessing Normalization
  • decide workflow for transformation
  • check to append OHE workflow
  • pass to denorm
  • ohe check
  • Normalization + OHE
  • Target Col selection
  • DataPrep Transfomations on test data
  • Failed
  • Unchecked
  • check configuration component
  • Break if params are null
  • port 1: extractred params port 0 : other columns
  • extract params
  • port 0: model selected other: model not selected
  • Rename the column containing the objective value.
  • Fail if only one column is available.
  • Set seed.
  • Store the accuracy for k folds
  • Translate to setting names.
  • select the metric
  • keep 1 row
  • select positive class
  • Select search strategy.
  • Send avg accuracy as variaable
  • rename class0
  • rename class1
  • rename prediction column
  • negative
  • positive
  • prediction col creation
  • class0 + class1 + ground truth
  • negative class rename
  • positive class rename
  • binary target + features
  • add back extra columns
  • target class
  • Dense 64
  • softmax
  • Input
  • reshape for dynamic
  • Predict Model
  • Build Model
  • send features for prediction
  • sample 10 rows to pass feature cols
  • selected unselected KDL
  • Binary Multiclass
  • top : features bottom : target
  • extract cols
  • number of units
  • number of samples per epoch
  • check if KDL selected
  • port 1: extractred params port0 : other columns
  • multi target + features
  • input + pred
  • separate features target
  • sigmoid output units
  • Reshape layer
  • add prefix
  • max col
  • pass max
  • pred_0
  • pred
  • original input columns
  • rename target
  • top : pred cols bottom: tareget
  • rename pred cols
  • many to pred col
  • pass numerical features
  • sample 10 rows for identifying features
  • append test rowids to prediction
  • pass rowIds of test column
  • port 1: extractred params port0 : other column
  • Merge the flow variables
  • Btreak when all selected models are failed
  • Change the col schema
  • port 0: if any model fails port 1: if none fails
  • Remove failed models
  • Remove unselected models
  • Print failed models
  • print all models were successful
  • clean name of failed models
  • Add params to sucess
  • extracted_params
  • Fail if no nominal column is available.
  • Filter nominal columns.
  • remove categorical if any
  • seed_yes
  • select negative col
  • select positive col
  • take 2nd row
  • Create variable for Prediction col
  • Class + features
  • num features + OHE
  • 0 : OHE + numericals 1 : categoricals + numericals
  • Cell to Workflow
  • Choose only prediction related cols
  • Rename Prediction to Modelname Prediction
  • RowId so that GLM can be concat with other models
  • Pass the rename prediction col. name
  • create flow variable of current prediction col.
  • Executes the prediction workflow
  • 0: features 1: gound truth
  • 0: trained models table 1: new data / test data / validation data
  • manage missing values in predictions columuns
  • if binary
  • Iterating Model by Model
  • overall stats
  • positive class
  • handle the special characters in class names
  • One Hot Encoding
  • Target Selection
  • Number of CV Folds
  • Train / Test Split
  • unique values removal
  • Select Models
  • features + target
  • choose target
  • TTR divide by 100
  • deactivate_postprocess
  • only_prediction
  • Store the model names
  • remove all numerical
  • Multiclass flag
  • Rename target col
  • Unique value in target
  • Binary or Multi class
  • Performance Metric
  • output modes
  • 1. pre-process model 2. ML model 3. post-process model
  • Deploy the workflow (new version) as a REST service
  • Connect to KNIME Business Hub
  • Create a workflow version
  • Upload directly to KNIME Business Hub
  • bin churn probability
  • pie with padAngle
  • gauge
  • extract full path
  • move files into data area
  • title
  • hr
  • image
  • only select states from the data set
  • remove Alaska Hawai'i
  • re-label bin names
  • sort by bin
  • wild_positive
  • geospatial header
  • gauge header
  • churn vs no-churn header
  • scatter plot header
  • parallel coordinates plot header
  • connect to Snowflake
  • if checked : workflow deploys to KNIME Hub on pressing Next on WebPortal
  • download
  • Settings Description
  • empty lines

Nodes

Extensions

Links