fscore

fun fscore(truth: IntArray, prediction: IntArray, beta: Double = 1.0, strategy: Averaging? = null): Double(source)

Calculates the general F-score with custom beta and optional averaging strategy for multi-class.

Return

the F-score.

Parameters

truth

the ground truth.

prediction

the prediction.

beta

a positive value such that F-score measures the effectiveness of retrieval with respect to a user who attaches beta times as much importance to recall as precision.

strategy

the aggregating strategy for multi-classes.