0 ×

Compiled Model to Jar Writer

Compiled Java Model IO Plug-In version 4.3.0.v202011191559 by KNIME AG, Zurich, Switzerland

Writes the compiled Java code generated by a PMML Compiler node into a jar file on disk. To use the contained model the class MainModel has to be used. It provides multiple helper methods to find out how to pass arguments and how to interpret the result:

  • getMiningFunction(): Returns either "regression", "clustering" or "classification"
  • getOutputFields(): Returns an string array of names of the output fields. The first field is always the prediction, subsequent fields contain class probabilities if the mining function is "classification".
  • getInputFields(): Returns an string array with the names of expected input fields.
  • getNumInputs(): Returns the number of required inputs.
  • getInputFieldIndex(String fieldName): Returns the expected index in the input array for a given input field name.
To retrieve a prediction, the method MainModel.evaluate() has to be called. It requires an object array with the inputs, in the order as specified by getInputFieldIndex(). The result is an object array where the first item is of type String if the mining function is "clustering" or "classification" and Double otherwise. Subsequent fields contain class probabilities and therefore always have the type Double.


The location and name of the file to be written.
If checked any existing file with the given name will be overwritten.

Input Ports

The bytecode of the compiled model

Best Friends (Incoming)


To use this node in KNIME, install KNIME Compiled Model Export from the following update site:


A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.


You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.