Icon

01_Guided_Analytics_for_ML_Automation

Guided Automation

Download the entire workflow group from the Example Server. This Guided Analytics application is made of this main workflow, which calls minor workflows within the same folder.

Examples Server location: Examples/50_Applications/36_Guided_Analytics_for_ML_Automation

This workflow generates a fully automated web based application to select, train, test, and optimize a number of machine learning models. The workflow was designed for business analysts to easily create predictive analytics solutions by applying their domain knowledge. Each of the components will generate a web page with which the business analyst can interact.

This workflow is made to be deployed on KNIME WebPortal via KNIME Server.

Annotations and comments
  • Guided Automation This workflow defines a fully automated web based application to select, train, test, and optimize a number of machine learning models. The workflow was designed for business analysts to easily create predictive analytics solutions by applying their domain knowledge. Each of the components outputs a web page with which the business analyst can interact. Each component creates a view for you to open and interact with. Right click a component and "Execute and Open Views". After interaction with View, "Apply & Close" in lower right corner.
  • Upload Data and Process Setup 1. Upload your data / define file path. 2. Select the target column for the prediction. 3. Filter columns to exclude from the model. 4. Select models and whether to fine-tune the model parameters.
  • Fine-tune Model Parameters or Use Automatic Settings If you selected to fine-tune the model parameters: 1. Define the parameter values used for optimization. 2. Define feature engineering settings Otherwise the settings will be automatically set.
  • Execution Settings Decide which execution environment you want to use.
  • ML Automation Model parameters are automatically optimized and features engineered.
  • Download Models Compare and inspect the results of the models and download the desired ones.
  • all disabled
  • only Simple Transformation is enabled
  • enabe feature engineering.
  • Set number of feature engineering subsets to try to 2 for testing purposes
  • model id translation
  • neurons
  • layers
  • epochs
  • Min. number of records
  • quality funct.
  • Number of trees
  • Max. tree depth
  • Learn rate
  • alpha
  • lambda
  • step_size
  • regularization
  • prob
  • picking up any column left behind
  • overlap. penalty
  • kernel
  • Number of rounds
  • Eta
  • auto-threads
  • shortcut active?
  • css_header
  • Header
  • highlight
  • shortcut_start
  • shortcut_end
  • labels on nodes
  • KNIME logo image in base64 format.
  • TOFIX: fake options should be greyed out again
  • Guide
  • Introduction
  • advanced
  • If nothing selected, disable feature engineering.
  • Multiply with 100 to get a number between 0 and 100 of feature subsets.
  • Set is_empty_table to yes.
  • Set is_empty_table to no.
  • [TOFIX] feature combination does not hide via flow variable "feature_comb_available"
  • Disable feature engineering if either aggressiveness was set to 0 or no feature technique was selected.
  • Restrict number of options to display in the quickform if too less numerical columns.
  • All available feature techniques.
  • Complexity
  • feat_imp_1
  • binary-micro_metric_1
  • binary-micro_metric_2
  • binary-micro_metric_3
  • binary-micro_metric_4
  • binary-micro_metric_5
  • binary-micro_metric_6
  • binary-micro_metric_7
  • feat_imp_2
  • feat_imp_3
  • feat_imp_5
  • feat_imp_4
  • feat_imp_6
  • feat_imp_7
  • macro_metric_1
  • macro_metric_2
  • macro_metric_4
  • macro_metric_3
  • macro_metric_5
  • macro_metric_6
  • macro_metric_7
  • feat_imp_8
  • macro_metric_8
  • binary-micro_metric_8
  • 0: binary 1 : multi
  • matrix_1
  • matrix_2
  • matrix_3
  • matrix_4
  • matrix_5
  • matrix_6
  • matrix_7
  • matrix_8
  • filter encode
  • filter out rank
  • keep only features
  • empty string on model otherways redudant in UI
  • Node 815
  • decode
  • outer join overall top 10
  • add importance = 0% where missing for unused feature
  • filter out features with missing rank (not in top 10)
  • features names in row ids
  • sort by overall rank
  • get encoded
  • get rid of the count
  • keep just rowids
  • for each column in a conf matrix
  • rename as "var" for typing in math formula
  • rename "var" to original name
  • get table metadata
  • overall count per class
  • join with conf matrix
  • right outer join to make sure we have all values in our count
  • divide by the number of total instances with that ground truth class
  • manage missings
  • if value is missing count = 0 (it is not in ground truth but it is still part of the model)
  • replace missing value with 0s
  • get ground truth
  • get instances rowids
  • get class names on row ids
  • create rowid from possible val.
  • create new col name for normalized columns
  • add new flow var
  • get ground truth possible values
  • get flow vars
  • gain_8
  • gain_1
  • gain_2
  • gain_3
  • gain_5
  • gain_4
  • gain_7
  • gain_6
  • Color models.
  • bin_1
  • bin_2
  • bin_3
  • bin_4
  • bin_7
  • bin_5
  • bin_6
  • bin_8
  • 0: binary 1: multiclass
  • micro title
  • macro title
  • binary title
  • TPR TNR PPV
  • F1
  • running in the webportal?
  • move parameter table into unzipped workflow
  • Empty table_path variable to prevent errors during saving. Will be overwritten later if run in webportal.
  • dwnld_1
  • dwnld_2
  • dwnld_3
  • dwnld_4
  • dwnld_5
  • dwnld_6
  • dwnld_7
  • dwnld_8
  • binary_guide
  • multi_guide
  • intro_bin
  • intro_multi
  • main metrics
  • Filter model tag out.
  • filter out kohen's
  • merge accuracy table and roc table
  • make %
  • preprocess for table
  • add zoom
  • bar chart preprocess
  • fixed colors
  • AUC col
  • zoom col
  • Accuracy col
  • Mean AUC col
  • create rowid
  • create unconnected color scheme
  • Model Performance
  • get probability vectors (all models)
  • get selected model probabilities
  • get strings
  • remove model tag
  • rename to "var"
  • 0: predictions 1: ground truth
  • add class name
  • add model tag
  • metadata table
  • make avg auc
  • get name of the model from column name
  • replace NaN with 0.5 (random classifer)
  • readd ground turth
  • add model name
  • compute ove vs rest AUC
  • get ground turth
  • use new row id
  • make model tag id
  • replace all other classes with other_class
  • create wild class
  • convert to string
  • merge model tag with class name
  • for each class
  • for each model
  • ungroup possible classes
  • filter preds towards posive class
  • get predictions
  • rename with model name
  • 0: test set 1: ground truth
  • prob. from 0 to 1
  • get those preds columns name
  • get model tags from column names
  • add ground truth
  • join model tags wiht model names
  • roc_title
  • Filter model name.
  • Filter model metrics.
  • Prediction runtime
  • Training runtime
  • filter out useless cols
  • filter out names
  • rename them
  • convert pred time to millisec
  • convert train time to secs
  • round training time for table
  • round prediction time for table
  • get model names on ids
  • get categorical feature
  • sort models by time
  • Model Runtime
  • Placeholder
  • create href links
  • Choose model.
  • Download Model
  • Advanced Assessment
  • css overview models
  • css resp. x 400
  • css resp. x resp.
  • sidebar binary css overview
  • sidebar multi css overview
  • css more padding first bar chart
  • css feat imp
  • gain chart css
  • download_first_css
  • download_css
  • title_expert
  • 0: other 1: ground truth
  • 0: test set 1: preds
  • ground_truth with preds
  • dictionary model tag : model name
  • 0: if Dimensions = 2 (binary) 1: if Dimensions > 2 (multiclass)
  • select possible values names
  • rename true_label
  • rename false_label
  • counter on test instances
  • get count possible values
  • get test cols metadata
  • select target column
  • filter number of rows
  • create flow variable Dimensions
  • ungroup possible values
  • count rows per target poss. value
  • 0: true_label e.g. positive class (selected most rare) 1: false_label e.g. negative class (least rare)
  • sort by count ascending
  • create string wild card
  • create string _pred wild card
  • models data
  • get models
  • get model predictions
  • filter only metric and names
  • 0: encoded 1: originals
  • create list of strings
  • filter all feature columns
  • aggregate mean by feature
  • join feat. and predictions
  • compute feature importance
  • normalize from 0% to 100%
  • replace missing values with 0%
  • filter top 6
  • get feature names
  • create unique row ids: model tag
  • create unique ids: name feature _ model tag
  • filtered overall top 6 features across all models
  • sort descending
  • sort ascending
  • encode feat / value into strings
  • model id
  • train random forest surrogate model on predicted labels
  • predictions of models
  • keep only conf matrix
  • rename them fancy
  • rename with TP, FP ..
  • rename columns conf matrix
  • 0: metrics 1: labeled conf matrix
  • add model tag to each row
  • 0 : confusion matrices 1 : metrics for each label
  • convert in %
  • fitler out overall
  • get label from row id
  • create rowid model_label
  • score
  • merge model tag with label
  • get regex model expressions from current column
  • get model tag from current column
  • all confusion matrices merged in a single table
  • dialogue control
  • Split target column.
  • Do not restrict the number of possible values.
  • Color Gradient
  • Display column metrics.
  • Slider
  • Exclude manually feature columns.
  • Convert date&time columns in order to be displayed by the Data Explorer.
  • Manually Select
  • Filter manually excluded columns.
  • Filter by overall relevance excluded columns.
  • size_bin
  • num_bins
  • port 0: string port 1: integer port 2: other
  • port 0: integer measure port 1: integers labels
  • Get number of rows.
  • Measure the correlation.
  • Sample 10k rows for faster calculations.
  • Is KNIME table or csv file?
  • Get file extension.
  • css_hide_label
  • css body
  • sidebar css
  • css slider input
  • relevance slider
  • css_explorer
  • css radio
  • Let the user select a column.
  • get the count of unqiue values
  • check whether the task is bi-, multinomial, or regression and whether the column must be converted to String; numerical columns with equal or less than 10 unique values are treated as a multinomial task
  • sample 10k rows for faster calculations
  • remove rows with undefined ml_task
  • filter regression columns
  • filter cat. columns with too less or too many values
  • top 10 rows
  • Set ml_task_index variable for later Case Swtiche nodes: 0: Binomial 1: Multinomial 2: Regression
  • quality
  • Step Size
  • space
  • Number of Neurons
  • Number of Hidden Layers
  • Number of Epochs
  • Title
  • No settings available.
  • no boosting rounds
  • max depth
  • Fine-tuning?
  • Outlier replacement?
  • Model enabled?
  • Quality measures
  • Minimum number of records
  • Maximal tree depth
  • Learning rate
  • Max. number of iterations
  • Number of neurons per layer
  • Default probability
  • Overlapping penalty
  • Kernel type
  • Number boosting rounds
  • Classification models
  • Select simple models.
  • Select complex models.
  • set variable for IF switch
  • Headline Parameter Finetuning
  • Headline Model Selection
  • Headline Outlier Treatment
  • PCA model
  • Get normalization model.
  • Filter numerical columns.
  • Filter cluster centers.
  • Filter target column out.
  • add
  • divide
  • multiply
  • rename first column
  • rename second column
  • subtract
  • Collect learned models.
  • Collect test data.
  • Collect models used for feature creation.
  • engineered features table
  • Do feature engineering?
  • Apply feature engineering on test data?
  • Remove constant features.
  • Rename first column.
  • Rename second column.
  • Replace missing values with mean.
  • Remove columns with more than 5% missing values.
  • Learn a model for each feature subset using the already optimized parameters.
  • Set accuracy to -1 for failing models.
  • Add accuracy column with value -1.
  • The number of rows to be filtered is the size of the subset to create.
  • Generate number which define the size of a feature subset according to a Gaussian distribution.
  • Generate random numbers between 0 and 1.
  • Multiply numbers to create valid seeds.
  • Create model workflow path.
  • Filter failed models (acc. -1).
  • Filter "ground_truth".
  • Rename target column to "ground_truth".
  • Handle missing values in the prediction column.
  • filter Accuracy
  • filter Cohens Kappa
  • rename Prediction Runtime
  • rename Accuracy
  • rename Cohens Kappa
  • Number to string.
  • Get row count.
  • Remove random suffix number which ensured a unique column name.
  • binomial or multinomial
  • if just 1 row no optim. is required
  • Train a model for each combination of hyperparameters.
  • Add accuracy column with value 0.
  • Add c.kappa column with value 0.
  • Specify number of folds used for cross valdiation.
  • Filter model tag.
  • Filter enabled models.
  • Split the string containing a list of the selected models.
  • Loop over each model to be learned.
  • model
  • Cohens kappa
  • Accuracy
  • Remove outliers?
  • Create dummy model which detects no outliers.
  • Replace missing values with mean or most frequent value of a column.
  • Replace outlier values.
  • 80 % training, 20% testing
  • Limit to 1.000.000 rows for faster execution.

Nodes

Extensions

Links