Predictor Config#
PredictorConfig#
hsml.predictor_config.PredictorConfig(
model_server,
serving_tool=None,
script_file=None,
resources_config=None,
inference_logger=None,
inference_batcher=None,
)
Configuration object attached to a Predictor.
Properties#
inference_batcher#
Configuration of the inference batcher attached to this predictor.
inference_logger#
Configuration of the inference logger attached to this predictor.
model_server#
Model server used by the predictor.
resources_config#
Resources configuration for the predictor.
script_file#
Script file ran by the serving component.
serving_tool#
Serving tool used to run the model server.
Methods#
describe#
PredictorConfig.describe()
extract_fields_from_json#
PredictorConfig.extract_fields_from_json(json_decamelized)
for_model#
PredictorConfig.for_model(model)
from_json#
PredictorConfig.from_json(json_decamelized)
To be implemented by the component type
from_response_json#
PredictorConfig.from_response_json(json_dict)
json#
PredictorConfig.json()
to_dict#
PredictorConfig.to_dict()
To be implemented by the component type
update_from_response_json#
PredictorConfig.update_from_response_json(json_dict)
To be implemented by the component type