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