Icon

20210629 Pikairos Saving all models when using X-Partitioner

20210628 Pikairos Saving all models when using X-Partitioner

This workflow shows how to combine a -X-Partitioner- node to a -Loop End- node to individually gather scoring information and models from the different Cross Validation iterations.

This workflow brings a possible answer to the question asked by @DataDudes in post #34198 of the KNIME forum.

Annotations and comments
  • Set RowID column first
  • Generate a new name for every model at every iteration
  • Loop over the K-fold results and gather them + Models
  • Save current model in file knime://knime.workflow/_LOCAL_DATA/iris_model_(i) This is controlled by a variable
  • Store the current i model into a cell
  • Set new column with RowID content
  • Calculate Scorings on current i-Test Set
  • Load iris data
  • Save all Models at Once
  • Set a column with the local path to the current model file
  • Predict on current i-Test set
  • Train on current iteration
  • Partition your Data Set for a 10-CV

Nodes

Extensions

Links