Skip to content

Prediction

Source code in docs_src/capo_machine_learning/types/prediction.py
class Prediction(TypedDict, closed=True):
    predicted_label: NotRequired["capo_machine_learning.types.label.Label"]
    """<p>The prediction label for either a <code>BINARY</code> or <code>MULTICLASS</code> <code>MLModel</code>.</p>"""
    predicted_value: NotRequired["capo_machine_learning.types.float_label.floatLabel"]
    """<p>The prediction value for <code>REGRESSION</code> <code>MLModel</code>.</p>"""
    predicted_scores: NotRequired[
        "capo_machine_learning.types.score_value_per_label_map.ScoreValuePerLabelMap"
    ]
    details: NotRequired["capo_machine_learning.types.details_map.DetailsMap"]

details instance-attribute

details: NotRequired[DetailsMap]

predicted_label instance-attribute

predicted_label: NotRequired[Label]

The prediction label for either a BINARY or MULTICLASS MLModel.

predicted_scores instance-attribute

predicted_scores: NotRequired[ScoreValuePerLabelMap]

predicted_value instance-attribute

predicted_value: NotRequired[floatLabel]

The prediction value for REGRESSION MLModel.