Statistics.ConfusionMatrix
Description
The confusion matrix contains four data points: the true and false positives and the true and false negatives. From these four data points, other statistics can be extracted.
Fawcett, ROC Graphs: Notes and Practical Considerations for Researchers, 2004, Kluwer Academic Publishers
- data ConfusionMatrix = ConfusionMatrix {
- fn :: WrappedDouble
- fp :: WrappedDouble
- tn :: WrappedDouble
- tp :: WrappedDouble
- type WrappedDouble = Either String Double
- class MkConfusionMatrix a where
- mkConfusionMatrix :: a -> ConfusionMatrix
Documentation
data ConfusionMatrix Source
The confusion matrix.
Constructors
ConfusionMatrix | |
Fields
|
Instances
type WrappedDouble = Either String DoubleSource
class MkConfusionMatrix a whereSource
Given a certain data-set, create a confusion matrix.
Methods
Instances
(Eq a, Ord a) => MkConfusionMatrix (ListSimilar a) |