Skip to content

Predictor Config#

[source]

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#

[source]

inference_batcher#

Configuration of the inference batcher attached to this predictor.


[source]

inference_logger#

Configuration of the inference logger attached to this predictor.


[source]

model_server#

Model server used by the predictor.


[source]

resources_config#

Resources configuration for the predictor.


[source]

script_file#

Script file ran by the serving component.


[source]

serving_tool#

Serving tool used to run the model server.


Methods#

[source]

describe#

PredictorConfig.describe()

[source]

extract_fields_from_json#

PredictorConfig.extract_fields_from_json(json_decamelized)

[source]

for_model#

PredictorConfig.for_model(model)

[source]

from_json#

PredictorConfig.from_json(json_decamelized)

To be implemented by the component type


[source]

from_response_json#

PredictorConfig.from_response_json(json_dict)

[source]

json#

PredictorConfig.json()

[source]

to_dict#

PredictorConfig.to_dict()

To be implemented by the component type


[source]

update_from_response_json#

PredictorConfig.update_from_response_json(json_dict)

To be implemented by the component type