Module

Learn.Metrics.ConfusionMatrix

Package
purescript-learn
Repository
carldata/purescript-learn

computer confusion matrix to evaluate the accuracy of a classification

#ConfusionMatrix Source

type ConfusionMatrix = { fn :: Int, fp :: Int, tn :: Int, tp :: Int }

#calculate Source

calculate :: Vector Boolean -> Vector Boolean -> ConfusionMatrix

Create confusion matrix from correct values and estimated targets returned by classifier