arthurai.core.decorators.log_prediction#

arthurai.core.decorators.log_prediction(arthur_model)#

Decorator to log the inputs and prediction of a model to Arthur.

Deprecated since version 3.21.1.

Parameters

arthur_model (ArthurModel) – A previously-saved ArthurModel object

Note, the prediction function to be decorated can take optional arguments for logging; these should be passed as kwargs into the function to be decorated.

Parameters
  • inference_timestamp – A timestamp in ISO 8601 format

  • partner_inference_id – A unique identifier for an inference

Return type

Callable[[Any], Any]

Returns

Tuple of (model_prediction, inference_id)