GithubHelp home page GithubHelp logo

Comments (2)

dashaub avatar dashaub commented on August 21, 2024

Nice idea. I was considering this yesterday and am also thinking lists are a good way of handling this. Furthermore, we need to consider if we expose shared arguments between models (e.g. lamda) in these lists or with a common argument. If it is in a common argument and the list, the list should take priority over the shared argument to allow the use to pass different values to each model (e.g. lambda is shared by ets, auto.arima, and nnetar while tbats takes use.box.cox. The user should be able to set lambda = 0.5 as an argument for all functions while also setting e.args(lambda = 0.75) and t.args = list(use.box.cox = FALSE) for example).

from forecasthybrid.

dashaub avatar dashaub commented on August 21, 2024

This is closed in d2e4b96
xreg is removed as an argument and now handled in a.args and s.args (e.g. a.args = list(xreg = matrix(rnorm(10, nrow = 5))
lambda remains as an argument but can also be passed in a.args/e.args/n.args/s.args. If it is passed as both an argument and in one of the lists, the more specific list takes priority (for that particular model).
For example,
hybridModel(rnorm(100), models = "aents", lambda = 0.5, a.args = list(lambda = 0.75), e.args = list(lambda = 0.25)
will set lambda to 0.75 for the auto.arima model, 0.25 for the ets model, and 0.5 for the other models (ignored by tbats since tbats merely uses/doesn't use a transform during model selection).

from forecasthybrid.

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.