public static class ClassMetrics.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ClassMetrics |
build() |
ClassMetrics.Builder |
copy(ClassMetrics model) |
ClassMetrics.Builder |
f1(Float f1)
F1-score, is a measure of a model’s accuracy on a dataset
|
ClassMetrics.Builder |
label(String label)
Text classification label
|
ClassMetrics.Builder |
precision(Float precision)
Precision refers to the number of true positives divided by the total number of positive
predictions (i.e., the number of true positives plus the number of false positives)
|
ClassMetrics.Builder |
recall(Float recall)
Measures the model’s ability to predict actual positive classes.
|
ClassMetrics.Builder |
support(Float support)
number of samples in the test set
|
public ClassMetrics.Builder label(String label)
Text classification label
label
- the value to setpublic ClassMetrics.Builder f1(Float f1)
F1-score, is a measure of a model’s accuracy on a dataset
f1
- the value to setpublic ClassMetrics.Builder precision(Float precision)
Precision refers to the number of true positives divided by the total number of positive predictions (i.e., the number of true positives plus the number of false positives)
precision
- the value to setpublic ClassMetrics.Builder recall(Float recall)
Measures the model’s ability to predict actual positive classes. It is the ratio between the predicted true positives and what was actually tagged. The recall metric reveals how many of the predicted classes are correct.
recall
- the value to setpublic ClassMetrics.Builder support(Float support)
number of samples in the test set
support
- the value to setpublic ClassMetrics build()
public ClassMetrics.Builder copy(ClassMetrics model)
Copyright © 2016–2024. All rights reserved.