GithubHelp home page GithubHelp logo

Comments (8)

jaheba avatar jaheba commented on May 21, 2024

One thing Iā€™m unsure about is how we dispatch between different models.

Also, do we want to support training of more than one model per run?

/cc @aalexandrov @lostella

from gluonts.

lostella avatar lostella commented on May 21, 2024

Also, do we want to support training of more than one model per run?

Not sure why we would want to do that: the way I see it, each job would be one training, and should produce one model artifact that should be servable

from gluonts.

jaheba avatar jaheba commented on May 21, 2024

Although I think there is a point to be made that it could be simpler to use, SageMaker has the concept of one training-configuration is one job.

from gluonts.

aalexandrov avatar aalexandrov commented on May 21, 2024

One thing Iā€™m unsure about is how we dispatch between different models.

The approach used in #151 is to dispatch the Estimator based on an environment variable SWIST_ESTIMATOR_CLASS (should really be GLUONTS_ESTIMATOR_CLASS) or, if that variable is not set, through a special estimator_class hyperparamter.

from gluonts.

jaheba avatar jaheba commented on May 21, 2024

through a special estimator_class hyperparamter

Which is not available during inference. Except, if we store it as part of the model. And that would imply that all models have to go through training. Not sure I like that.

from gluonts.

jaheba avatar jaheba commented on May 21, 2024

Another thought:

Since we have models which don't require offline training, we can make the shell accept Forecasters, where:

Forecaster = Union[Predictor, Estimator]

That way we would skip training if a Predictor was specified and just start with the test-step.

from gluonts.

lostella avatar lostella commented on May 21, 2024

through a special estimator_class hyperparamter

Which is not available during inference. Except, if we store it as part of the model. And that would imply that all models have to go through training. Not sure I like that.

@jaheba at inference time there should be no Estimator involved; the container should be given instructions on how to instantiate a Predictor: this will be whatever type of Predictor with its own settings, or a GluonPredictor (either a SymbolBlockPredictor or a RepresentableBlockPredictor, see https://github.com/awslabs/gluon-ts/blob/master/src/gluonts/model/predictor.py#L170 and all the lines that follow) which will be created using the network that was written to S3 after some training job.

from gluonts.

jaheba avatar jaheba commented on May 21, 2024

the container should be given instructions on how to instantiate a Predictor

That was exactly my point. During training we can pass a hyper-parameter to select the right Estimator/Predictor. But during inference we would depend on the generated model, which not all models require.

from gluonts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.