Comments (3)
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.
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.
@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)
- Question of validation data length and how samples are extracted from the validation dataset HOT 2
- [QUESTION] Behavior of TFT's .predict() method HOT 2
- [BUG]When the time_col parameter in TimeSeries.from_group_dataframe contains integers, it is still converted to a DatetimeIndex HOT 1
- [QUESTION] Simple question regarding backtest() in Darts. HOT 2
- Confused about saving checkpoint, loading and predicting HOT 1
- ElasticNet Regression Stopped Working
- Why can't we use LocalForecastingModel for Anomaly Detection? HOT 1
- [FEAT] Add tsmixer-basic HOT 1
- [Question] Explanation needed on input and output_chunk_length HOT 6
- Ability to add regressors to a Prophet model in Python HOT 1
- [BUG] TimeSeries.append and prepend with empty array produces an unhelpful error message HOT 1
- [BUG] TFTModel predicts nan values when MapeLoss function is used HOT 3
- Processes are terminated in multi-GPU setting when using multiple models and seeds HOT 3
- [QUESTION] How to make prediction with XGBModel when trained on multiple time series? HOT 1
- [BUG] Time index name is lost after using prepend_values HOT 3
- [BUG] Quantiles/samples are wrong when using enable_optimization=True (default!) HOT 5
- [BUG] dataloader_kwargs.num_workers exceptions during fit() HOT 2
- How to use of dataloader_kwargs in fit() to set 'drop_last' to True ? HOT 2
- Compute multiple quantiles for Metrics
- How does DARTS deal with missing values? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darts.