Skip to content

PredictorEvent

Source code in docs_src/capo_forecast/types/predictor_event.py
class PredictorEvent(TypedDict, closed=True):
    detail: NotRequired["capo_forecast.types.detail.Detail"]
    """<p>The type of event. For example, <code>Retrain</code>. A retraining event denotes the timepoint when a predictor was retrained. Any monitor results from before the <code>Datetime</code> are from the previous predictor. Any new metrics are for the newly retrained predictor.</p>"""
    datetime: NotRequired["capo_forecast.types.timestamp.Timestamp"]
    """<p>The timestamp for when the event occurred.</p>"""

datetime instance-attribute

datetime: NotRequired[Timestamp]

The timestamp for when the event occurred.

detail instance-attribute

detail: NotRequired[Detail]

The type of event. For example, Retrain. A retraining event denotes the timepoint when a predictor was retrained. Any monitor results from before the Datetime are from the previous predictor. Any new metrics are for the newly retrained predictor.