Icon

Heart Disease - Machine Learning Case - MLP - Parameter Optimization Loop

<p>Parameter Optimization Loop with Table on Neural Network Classification<br><br>This workflow optimizes the parameters of a Neural Netwok.<br><br>The parameter optimization loop uses a table as input to dynamically configure the parameter search.</p>

URL: Parameter Optimization Video - KNIME TV - YouTube https://youtu.be/IlqepyIba6Y
URL: ML Algorithms and the Art of Parameter Selection - KNIME Blog https://www.knime.com/blog/machine-learning-algorithms-and-the-art-of-hyperparameter-selection
URL: Medium: About Machine Learning — How it Fails and Succeeds https://medium.com/low-code-for-advanced-data-science/about-machine-learning-how-it-fails-and-succeeds-9f3ab7cb9b00
URL: Medium: KNIME — Machine Learning and Artificial Intelligence — A Collection https://medium.com/low-code-for-advanced-data-science/knime-machine-learning-and-artificial-intelligence-a-collection-12e0f7d83b50

Parameter Optimization Loop with Table on Neural Network

This loop performs a parameter optimization on neural network to optimize number of layers and neurons per layers.
As a result it finds the combination of parameters which trains a model with best accuracy.


https://hub.knime.com/s/OIybH3LTnbBWw76Z

Adapted from:

Parameter Optimization Loop with Table on Neural Network Classification

https://hub.knime.com/-/spaces/-/~jE6bhp72aE3hFDoz/current-state/


*Target*
Column Filter
train.parquetTarget 0/1 - target variablerow_id = ID column
Parquet Reader
BINARY_RPROP_MLP
Table to H2O
bring the Target backtest
Joiner
BINARY_RPROP_MLP_03_normalizer.pmml
PMML Reader
BINARY_RPROP_MLP_03_normalizer.pmml
PMML Writer
Table Row to Variable
75% for training 25 % for testing
Partitioning
Binary Classification Inspector
Table Row to Variable
Parameter Optimization Loop End
validate_normalized.table
Table Writer
H2O Local Context
train_normalized.table
Table Writer
row_idexclude
Column Filter
BINARY_RPROP_MLP_01_missings.pmml
PMML Writer
test
MultiLayerPerceptron Predictor
BINARY_RPROP_MLP_01_missings.pmml
PMML Reader
BINARY_RPROP_MLP_02_cat_to_num.pmml
PMML Writer
Supply Parameter range to be optimised
Table Creator
train
RProp MLP Learner
BINARY_RPROP_MLP_Optimal_Parameters.xlsxoptimal
Excel Writer
BINARY_RPROP_MLP_02_cat_to_num.pmml
PMML Reader
validate
MultiLayerPerceptron Predictor
BINARY_RPROP_MLP_04_table_specs.table
Table Reader
trainfinal calculationwith optimal values
RProp MLP Learner
BINARY_RPROP_MLP_04_table_specs.table
Table Writer
RProp MLP - Data Preparation Binary - Compute
validate
Joiner
Parameter Optimization Loop Start (Table)
BINARY_RPROP_MLP
Table to H2O
validate
RProp MLP - Data Preparation Binary - Apply
BINARY_RPROP_MLP
H2O Binomial Scorer
Concatenate
BINARY_RPROP_MLP
H2O Binomial Scorer
*Target*
Column Filter
test (25%)
RProp MLP - Data Preparation Binary - Apply
BINARY_RPROP_MLP.pmml
PMML Reader
validate.parquetTarget 0/1 - target variablerow_id = ID column
Parquet Reader
Objective to be Optimized
Constant Value Column
BINARY_RPROP_MLP.pmml
PMML Writer
BINARY_RPROP_MLP_Optimal_Parameters.xlsxall_iterations
Excel Writer
BINARY_RPROP_MLP
Constant Value Column

Nodes

Extensions

Links