public static class TextClassificationModelEvaluationResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TextClassificationModelEvaluationResult |
build() |
TextClassificationModelEvaluationResult.Builder |
copy(TextClassificationModelEvaluationResult model) |
TextClassificationModelEvaluationResult.Builder |
definedTags(Map<String,Map<String,Object>> definedTags) |
TextClassificationModelEvaluationResult.Builder |
freeformTags(Map<String,String> freeformTags) |
TextClassificationModelEvaluationResult.Builder |
location(String location)
For CSV format location is rowId(1 is header) and for JSONL location is jsonL line
sequence(1 is metadata)
|
TextClassificationModelEvaluationResult.Builder |
predictedLabels(List<String> predictedLabels)
List of predicted labels by custom multi class or multi label TextClassification model
|
TextClassificationModelEvaluationResult.Builder |
trueLabels(List<String> trueLabels)
List of true(actual) labels in test data for multi class or multi label
TextClassification
|
public TextClassificationModelEvaluationResult.Builder freeformTags(Map<String,String> freeformTags)
public TextClassificationModelEvaluationResult.Builder definedTags(Map<String,Map<String,Object>> definedTags)
public TextClassificationModelEvaluationResult.Builder location(String location)
For CSV format location is rowId(1 is header) and for JSONL location is jsonL line sequence(1 is metadata)
location
- the value to setpublic TextClassificationModelEvaluationResult.Builder trueLabels(List<String> trueLabels)
List of true(actual) labels in test data for multi class or multi label TextClassification
trueLabels
- the value to setpublic TextClassificationModelEvaluationResult.Builder predictedLabels(List<String> predictedLabels)
List of predicted labels by custom multi class or multi label TextClassification model
predictedLabels
- the value to setpublic TextClassificationModelEvaluationResult build()
public TextClassificationModelEvaluationResult.Builder copy(TextClassificationModelEvaluationResult model)
Copyright © 2016–2024. All rights reserved.