DeepchecksModelVersionClient.log_sample#

DeepchecksModelVersionClient.log_sample(values: Dict[str, Any], sample_id: str, prediction: Union[str, float], timestamp: Optional[Union[datetime, int, str]] = None, prediction_proba: Optional[Sequence[float]] = None)#

Add a data sample for the model version update queue. Requires a call to send() to upload.

Parameters
valuesDict[str, Any]

All features of the sample and optional additional_data

sample_idstr

Universal id for the sample. Used to retrieve and update the sample.

timestampUnion[datetime, int, str, None], default None
Can be one of:
  • int: Unix timestamp

  • str: timestamp in ISO8601 format

  • datetime: If no timezone info is provided on the datetime assumes local timezone.

  • None: will use current time

prediction_probaOptional[Sequence[float]] , default None

Prediction value if exists

predictionUnion[str, float]

Prediction label if exists