classify

fun classify(actual: Boolean, predicted: Boolean): ErrorResult

actual true means that the instance belongs to class 1 (positive) actual false means that the instance belongs to class 0 (negative) predicted true means that the instance was predicted to be in class 1 (positive) predicted false means that the instance was predicted to be in class 0 (negative)


fun classify(actual: Int, predicted: Int): ErrorResult

actual = 1 means that the instance belongs to class 1 (positive) actual = 0 means that the instance belongs to class 0 (negative) predicted = 1 means that the instance was predicted to be in class 1 (positive) predicted = 0 means that the instance was predicted to be in class 0 (negative) actual and predicted must be 1 or 0


fun classify(actual: Double, predicted: Double): ErrorResult

actual = 1.0 means that the instance belongs to class 1 (positive) actual = 0.0 means that the instance belongs to class 0 (negative) predicted = 1.0 means that the instance was predicted to be in class 1 (positive) predicted = 0.0 means that the instance was predicted to be in class 0 (negative) actual and predicted must be 1.0 or 0.0