We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add remaining metrics
fun confusionMatrix() { TODO("") } fun f1() { // requireSameShape(test, predicted) TODO("") } // precision = TP / (TP + FP) fun <T : Number> precision(test: D2Array<T>, predicted: D2Array<T>): Double { requireSameShape(test, predicted) val truePositive = (0 until test.shape[0]).fold(0) { acc, row -> if (test[row] == predicted[row]) acc + 1 else acc } return truePositive / test.shape[0].toDouble() } // recall = TP / (TP + FN) fun <T : Number> recall(test: D2Array<T>, predicted: D2Array<T>) { requireSameShape(test, predicted) TODO("") }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add remaining metrics
The text was updated successfully, but these errors were encountered: