public static class EntityMetrics.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EntityMetrics |
build() |
EntityMetrics.Builder |
copy(EntityMetrics model) |
EntityMetrics.Builder |
f1(Float f1)
F1-score, is a measure of a model’s accuracy on a dataset
|
EntityMetrics.Builder |
label(String label)
Entity label
|
EntityMetrics.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)
|
EntityMetrics.Builder |
recall(Float recall)
Measures the model’s ability to predict actual positive classes.
|
public EntityMetrics.Builder label(String label)
Entity label
label
- the value to setpublic EntityMetrics.Builder f1(Float f1)
F1-score, is a measure of a model’s accuracy on a dataset
f1
- the value to setpublic EntityMetrics.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 EntityMetrics.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 EntityMetrics build()
public EntityMetrics.Builder copy(EntityMetrics model)
Copyright © 2016–2024. All rights reserved.