trustyai.model.output

trustyai.model.output(name, dtype, value=None, score=1.0) Output

Create a Java Output. The Output class 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:

  • text for textual outputs.

  • number for numeric outputs.

  • bool for binary or boolean outputs.

  • categorical for 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:
Output

A TrustyAI Output object, to be used in the simple_prediction() or counterfactual_prediction() functions.