Statistics.ConfusionMatrix.Instances
Description
In general, it is not easy to define the whole confusion matrix generically without knowing anything about the source data. For certain elements however, it is possible. These instances are all defined on newtypes in order to not create instances on generic data types like lists.
- newtype (Eq a, Ord a) => ListSimilar a = ListSimilar (Int, [a], [a])
Documentation
newtype (Eq a, Ord a) => ListSimilar a Source
The ctor expects the total number of possibilities first, then a list of true positive elements, followed by a list of predicted elements.
Constructors
ListSimilar (Int, [a], [a]) |
Instances
(Eq a, Ord a) => MkConfusionMatrix (ListSimilar a) |