ClassifierEvaluationMetrics.fromJson constructor
ClassifierEvaluationMetrics.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ClassifierEvaluationMetrics.fromJson(Map<String, dynamic> json) {
return ClassifierEvaluationMetrics(
accuracy: json['Accuracy'] as double?,
f1Score: json['F1Score'] as double?,
hammingLoss: json['HammingLoss'] as double?,
microF1Score: json['MicroF1Score'] as double?,
microPrecision: json['MicroPrecision'] as double?,
microRecall: json['MicroRecall'] as double?,
precision: json['Precision'] as double?,
recall: json['Recall'] as double?,
);
}