Calculatuing log loss

Anyone figured out an easy way to calculate log loss in knime?

Although I have an R-Snippet that works, I’d like to not have to go to R.

Hi jimo42,

You can use the Rule Engine node to calculate the binary indicator of whether an observation was classified correctly, then the Math Formula node to compute the log loss value for each observation and the GroupBy node to calculate the mean (you can check the formula here).

Please find attached a sample workflow where using a prediction of the Logistic Regression classifier I compute log loss using both standard KNIME nodes and R snippet.

Logistic_Regression_LogLoss.knar.knwf (212.1 KB)

1 Like

Thank you amartin, I had the R snippet but not the knime node combo calculation.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.