gluonts.shell.serve.app module

class gluonts.shell.serve.app.InferenceRequest[source]

Bases: pydantic.main.BaseModel

configuration: ForecastConfig = None
instances: list = None
class gluonts.shell.serve.app.ScoredInstanceStat(amount, duration)[source]

Bases: tuple

property amount

Alias for field number 0

property duration

Alias for field number 1

class gluonts.shell.serve.app.ThrougputIter(iterable: Iterable)[source]

Bases: object

gluonts.shell.serve.app.batch_inference_invocations(predictor_factory, configuration, settings) → Callable[[], flask.wrappers.Response][source]
gluonts.shell.serve.app.do(fn, args, queue)[source]
gluonts.shell.serve.app.get_base_app(execution_params)[source]
gluonts.shell.serve.app.handle_predictions(predictor, instances, configuration)[source]
gluonts.shell.serve.app.inference_invocations(predictor_factory) → Callable[[], flask.wrappers.Response][source]
gluonts.shell.serve.app.log_throughput(instances, timings)[source]
gluonts.shell.serve.app.make_app(predictor_factory, execution_params, batch_transform_config, settings)[source]
gluonts.shell.serve.app.make_predictions(predictor, dataset, configuration)[source]
gluonts.shell.serve.app.with_timeout(fn, args, timeout)[source]