Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
let evaluationMetrics = classifier.evaluation(on: evaluationSet)
let evaluationAccuracy = (1 - evaluationMetrics.classificationError) * 100
print("Evaluation (%): \(evaluationAccuracy)")
print("Precisión:\r\n\(evaluationMetrics.precisionRecall)")
print("Confusion:\r\n\(evaluationMetrics.confusion)")
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment