public static class TextClassificationEvaluationResults.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TextClassificationEvaluationResults |
build() |
TextClassificationEvaluationResults.Builder |
classMetrics(List<ClassMetrics> classMetrics)
List of text classification metrics
|
TextClassificationEvaluationResults.Builder |
confusionMatrix(Map<String,ConfusionMatrixDetails> confusionMatrix)
class level confusion matrix
|
TextClassificationEvaluationResults.Builder |
copy(TextClassificationEvaluationResults model) |
TextClassificationEvaluationResults.Builder |
labels(List<String> labels)
labels
|
TextClassificationEvaluationResults.Builder |
metrics(TextClassificationModelMetrics metrics) |
public TextClassificationEvaluationResults.Builder metrics(TextClassificationModelMetrics metrics)
public TextClassificationEvaluationResults.Builder classMetrics(List<ClassMetrics> classMetrics)
List of text classification metrics
classMetrics
- the value to setpublic TextClassificationEvaluationResults.Builder confusionMatrix(Map<String,ConfusionMatrixDetails> confusionMatrix)
class level confusion matrix
confusionMatrix
- the value to setpublic TextClassificationEvaluationResults.Builder labels(List<String> labels)
labels
labels
- the value to setpublic TextClassificationEvaluationResults build()
public TextClassificationEvaluationResults.Builder copy(TextClassificationEvaluationResults model)
Copyright © 2016–2024. All rights reserved.