Icon

kn_example_r_iris

Simple example to make a random forest (rpart) model with R in KNIME using the iris dataset. And saving an reusing the model with PMML

Simple example to make a random forest (rpart) model with R in KNIME using the iris dataset. And saving an reusing the model with PMML


Annotations and comments
  • Medium: KNIME and R — installation across operating systems — some remarks https://medium.com/p/6494a2a498cc very basic R nodes in KNIME - knime.in, knime.out and handle Flow Variables https://hub.knime.com/-/spaces/-/~119aEydIH0oCdht8/current-state/
  • => Target
  • model.zip
  • predict
  • predict with stored PMML
  • predict relevel
  • model.pmml
  • model_relevel.pmml
  • split
  • relevel(knime.in$Target, ref = "setosa")
  • standard rpart
  • predict with stored model
  • to PMML
  • iris.table
  • if (equals(column("os.name"), "Mac OS X") ) {"0"} else if (contains(lowerCase(column("os.name")),"mac" )) {"0"} else {"1"}
  • conda.environment java.home
  • macOS Apple Scilicon conda.environment "knime_r_environment"
  • Windows conda.environment "knime_r_environment" will be able to install R 4.1.3 or higher
  • osgi.syspath => find where the KNIME installtion is located on Windows or MacOSX also java.home
  • $$ROWID$$ = "java.home" => TRUE
  • var_environment_validation
  • java.home
  • START
  • STOP
  • r.conda.environment "knime_r_environment" will be able to install R 4.1.3 or higher
  • r.conda.environment Windows and conda-forge

Nodes

Extensions

Links