Package ai.extend.types
Class ClassifierOutput.Builder
- java.lang.Object
-
- ai.extend.types.ClassifierOutput.Builder
-
- All Implemented Interfaces:
ClassifierOutput._FinalStage,ClassifierOutput.ConfidenceStage,ClassifierOutput.IdStage,ClassifierOutput.TypeStage
- Enclosing class:
- ClassifierOutput
public static final class ClassifierOutput.Builder extends java.lang.Object implements ClassifierOutput.IdStage, ClassifierOutput.TypeStage, ClassifierOutput.ConfidenceStage, ClassifierOutput._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassifierOutput._FinalStageaddAllInsights(java.util.List<Insight> insights)Additional insights about the classification decisionClassifierOutput._FinalStageaddInsights(Insight insights)Additional insights about the classification decisionClassifierOutputbuild()ClassifierOutput._FinalStageconfidence(double confidence)A value between 0 and 1 indicating the model's confidence in the classification, where 1 represents maximum confidenceClassifierOutput.Builderfrom(ClassifierOutput other)ClassifierOutput.TypeStageid(java.lang.String id)The unique identifier for this classificationClassifierOutput._FinalStageinsights(java.util.List<Insight> insights)Additional insights about the classification decisionClassifierOutput.ConfidenceStagetype(java.lang.String type)The type of classification
-
-
-
Method Detail
-
from
public ClassifierOutput.Builder from(ClassifierOutput other)
- Specified by:
fromin interfaceClassifierOutput.IdStage
-
id
public ClassifierOutput.TypeStage id(@NotNull java.lang.String id)
The unique identifier for this classification
The unique identifier for this classification
- Specified by:
idin interfaceClassifierOutput.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public ClassifierOutput.ConfidenceStage type(@NotNull java.lang.String type)
The type of classification
The type of classification
- Specified by:
typein interfaceClassifierOutput.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
confidence
public ClassifierOutput._FinalStage confidence(double confidence)
A value between 0 and 1 indicating the model's confidence in the classification, where 1 represents maximum confidence
A value between 0 and 1 indicating the model's confidence in the classification, where 1 represents maximum confidence
- Specified by:
confidencein interfaceClassifierOutput.ConfidenceStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllInsights
public ClassifierOutput._FinalStage addAllInsights(java.util.List<Insight> insights)
Additional insights about the classification decision
- Specified by:
addAllInsightsin interfaceClassifierOutput._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addInsights
public ClassifierOutput._FinalStage addInsights(Insight insights)
Additional insights about the classification decision
- Specified by:
addInsightsin interfaceClassifierOutput._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
insights
public ClassifierOutput._FinalStage insights(java.util.List<Insight> insights)
Additional insights about the classification decision
- Specified by:
insightsin interfaceClassifierOutput._FinalStage
-
build
public ClassifierOutput build()
- Specified by:
buildin interfaceClassifierOutput._FinalStage
-
-