BinaryConfusionMatrix class Null safety

Confusion matrix for binary classification models.

Constructors

BinaryConfusionMatrix({double? accuracy, double? f1Score, String? falseNegatives, String? falsePositives, double? positiveClassThreshold, double? precision, double? recall, String? trueNegatives, String? truePositives})
BinaryConfusionMatrix.fromJson(Map json_)

Properties

accuracy double?
The fraction of predictions given the correct label.
read / write
f1Score double?
The equally weighted average of recall and precision.
read / write
falseNegatives String?
Number of false samples predicted as false.
read / write
falsePositives String?
Number of false samples predicted as true.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
positiveClassThreshold double?
Threshold value used when computing each of the following metric.
read / write
precision double?
The fraction of actual positive predictions that had positive actual labels.
read / write
recall double?
The fraction of actual positive labels that were given a positive prediction.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
trueNegatives String?
Number of true samples predicted as false.
read / write
truePositives String?
Number of true samples predicted as true.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited