public static class DocumentClassificationConfidenceEntry.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DocumentClassificationConfidenceEntry |
build() |
DocumentClassificationConfidenceEntry.Builder |
copy(DocumentClassificationConfidenceEntry model) |
DocumentClassificationConfidenceEntry.Builder |
f1Score(Float f1Score)
f1Score under the threshold
|
DocumentClassificationConfidenceEntry.Builder |
precision(Float precision)
Precision under the threshold
|
DocumentClassificationConfidenceEntry.Builder |
recall(Float recall)
Recall under the threshold
|
DocumentClassificationConfidenceEntry.Builder |
threshold(Float threshold)
Threshold used to calculate precision and recall.
|
public DocumentClassificationConfidenceEntry.Builder threshold(Float threshold)
Threshold used to calculate precision and recall.
threshold
- the value to setpublic DocumentClassificationConfidenceEntry.Builder precision(Float precision)
Precision under the threshold
precision
- the value to setpublic DocumentClassificationConfidenceEntry.Builder recall(Float recall)
Recall under the threshold
recall
- the value to setpublic DocumentClassificationConfidenceEntry.Builder f1Score(Float f1Score)
f1Score under the threshold
f1Score
- the value to setpublic DocumentClassificationConfidenceEntry build()
public DocumentClassificationConfidenceEntry.Builder copy(DocumentClassificationConfidenceEntry model)
Copyright © 2016–2024. All rights reserved.