trustyai.model.output
- trustyai.model.output(name, dtype, value=None, score=1.0) Output
Create a Java
Output. TheOutputclass is used to represent the individual components of model outputs.- Parameters:
- namestr
The name of the given output.
- dtype: str
The type of the given output, one of:
textfor textual outputs.numberfor numeric outputs.boolfor binary or boolean outputs.categoricalfor categorical outputs.
If dtype is unspecified or takes a different value than listed above, the feature type will be set as UNDEFINED.
- valueAny
The value of this output.
- scorefloat
The confidence of this particular output.
- Returns:
OutputA TrustyAI
Outputobject, to be used in thesimple_prediction()orcounterfactual_prediction()functions.