Numeric Scorer

This node computes certain statistics between the a numeric column's values (ri) and predicted (pi) values. It computes =1-SSres/SStot =1-Σ(pi-ri)²/Σ(ri-1/n*Σri)² (can be negative!), Mean absolute error (1/n*Σ|pi-ri|), Mean squared error (1/n*Σ(pi-ri)²), Root mean squared error (sqrt(1/n*Σ(pi-ri)²)), Mean signed difference (1/n*Σ(pi-ri)), Mean absolute percentage error 1/n * Σ((|ri - pi|)/ |ri|), Adjusted R²=1-(1-R²)(n-1)/(n-p-1) (can be negative!). The computed values can be inspected in the node's view and/or further processed using the output table.

Options

Reference column
Column with the correct, observed, training data values.
Predicted column
Column with the modeled, predicted data values.
Override output column name
Overrides the name of the column in the output. By default, the name of the predicted column is used.
Output column name
The name of the column in the output.
Export and prefix flow variables
If enabled, the scores will be exported as flow variables with hard coded names and prefixed by the given value.
Number of predictors
The number of predictors used to compute the adjusted R squared. The adjusted R squared is calculated as: 1 - ((1 - R²) * (n - 1)) / (n - p - 1), where n is the number of observations and p is the number of predictors.

Input Ports

Icon
Table with predicted and reference numerical data.

Output Ports

Icon
The computed statistical measures:

Views

Statistics
A table with the statistical measures

Workflows

Links

Developers

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.