Giter Club home page Giter Club logo

Comments (3)

a097123 avatar a097123 commented on September 17, 2024

Update: I am now seeing that it is due to this if statements. It's currently unclear to me what makes a model object subclass MultiOutputRegressor.

I still feel that logging.info is invisible to almost all users and having require args that are meaningless is misleading.

from darts.

madtoinou avatar madtoinou commented on September 17, 2024

Hi @a097123,

Darts relies on sklearn implementation for all the regression models. This MultiOuputRegressor class is implemented at this higher level, we do not have control over it but sometimes makes "single output" models supports multivariates series/ output_chunk_length > 1 series by wrapping them in this class.

In your code snippet, you implicitly use the sklearn's LinearRegression model which inherits from the MultiOutputMixin class. Because this model support multioutputs out of the box, following the information stated in the docstring, the model is directly returned (hence the unique ID).

If you look at model.model.coef_, you will see that there is one set of coefficient for each position in output_chunk_length (in accordance with your assumption since multi_models=True by default) but there is no straightforward way to access a specific estimator from the model.

We could move the sanity check one level in the method to avoid the unexpected behavior you reported.

Changing the logging message from info to warning is also a possibility, did not want to make this look too alarming but it seems to be counter-intuitive.

Note: Darts LinearRegressionModel class would be more appropriate if this is indeed the model you want to use since it supports some additional features such as probabilistic forecast.

from darts.

a097123 avatar a097123 commented on September 17, 2024

@madtoinou Thank you for the detailed response! This helps me understand what the class is doing much better. Also appreciate the suggestion of LinearRegressionModel and why it might be better.

I personally think that warning is better here but I am new to the lib and you might know better than me what a darts user might expect there. This might just be a weird edge case only a noob would hit before taking a more conventional approach.

from darts.

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.