Skip to content

Inference Logger#

Inference loggers can be accessed from the Predictor metadata objects.

predictor.inference_logger

InferenceLogger #

Configuration of an inference logger for a predictor.

PARAMETER DESCRIPTION
kafka_topic

Kafka topic to send the inference logs to. By default, a new Kafka topic is configured.

TYPE: KafkaTopic | dict | Default | None DEFAULT: DEFAULT

mode

Inference logging mode. (e.g., NONE, ALL, PREDICTIONS, or MODEL_INPUTS). By default, ALL inference logs are sent.

TYPE: str | None DEFAULT: INFERENCE_LOGGER.MODE_ALL

RETURNS DESCRIPTION

InferenceLogger. Configuration of an inference logger.

kafka_topic property writable #

kafka_topic

Kafka topic to send the inference logs to.

mode property writable #

mode

Inference logging mode ("NONE", "ALL", "PREDICTIONS", or "MODEL_INPUTS").

describe #

describe()

Print a JSON description of the inference logger.