Comments (3)
Hi @nejox, thanks for this issue and very detailed report. I'll ivestigate it next week and come up with a fix.
from darts.
Hi @nejox, which pandas version are you using?
With pandas==2.2.2
for me your code snippet raises the following error:
Traceback (most recent call last):
File "/Users/dennisbader/projects/unit8/darts_test_code/bug_fixes/bug_2352.py", line 12, in <module>
rmse(test, preds)
File "/Users/dennisbader/projects/unit8/darts/darts/metrics/metrics.py", line 142, in wrapper_multi_ts_support
vals = _parallel_apply(
File "/Users/dennisbader/projects/unit8/darts/darts/utils/utils.py", line 175, in _parallel_apply
returned_data = Parallel(n_jobs=n_jobs)(
File "/Users/dennisbader/miniconda3/envs/darts310_test/lib/python3.10/site-packages/joblib/parallel.py", line 1863, in __call__
return output if self.return_generator else list(output)
File "/Users/dennisbader/miniconda3/envs/darts310_test/lib/python3.10/site-packages/joblib/parallel.py", line 1792, in _get_sequential_output
res = func(*args, **kwargs)
File "/Users/dennisbader/projects/unit8/darts/darts/metrics/metrics.py", line 212, in wrapper_multivariate_support
vals = func(*input_series, *args[num_series_in_args:], **kwargs)
File "/Users/dennisbader/projects/unit8/darts/darts/metrics/metrics.py", line 1453, in rmse
_get_wrapped_metric(mse)(
File "/Users/dennisbader/projects/unit8/darts/darts/metrics/metrics.py", line 1160, in mse
_get_wrapped_metric(se)(
File "/Users/dennisbader/projects/unit8/darts/darts/metrics/metrics.py", line 1087, in se
y_true, y_pred = _get_values_or_raise(
File "/Users/dennisbader/projects/unit8/darts/darts/metrics/metrics.py", line 317, in _get_values_or_raise
vals_a_common = series_a.slice_intersect_values(series_b, copy=make_copy)
File "/Users/dennisbader/projects/unit8/darts/darts/timeseries.py", line 2517, in slice_intersect_values
start, end = self._slice_intersect_bounds(other)
File "/Users/dennisbader/projects/unit8/darts/darts/timeseries.py", line 2523, in _slice_intersect_bounds
shift_start = n_steps_between(
File "/Users/dennisbader/projects/unit8/darts/darts/utils/utils.py", line 367, in n_steps_between
raise_log(
File "/Users/dennisbader/projects/unit8/darts/darts/logging.py", line 132, in raise_log
raise exception
ValueError: Cannot infer period alias for `freq=<CustomBusinessDay>`. Is it a valid pandas offset/frequency alias?
from darts.
Ah, I'm using pandas==1.5.3
- that's interesting..
from darts.
Related Issues (20)
- What is the difference between variable importance for the encoder and decoder in TFTExplainer? HOT 1
- Rolling prediction ;validation model HOT 1
- Tsmixer incorrect loss_fn/likelihood documentation HOT 1
- [BUG] darts should provide way to input multiprocessing_context parameter for dataloader when fit HOT 3
- [BUG] darts should support re-training base on the old checkpoint, not reset the model HOT 2
- Add KAN (Kolmogorov-Arnold Network) to Darts HOT 5
- Gridlines automatically created in matplotlib and seaborn plots [BUG] HOT 2
- How to mask or ignore target features during model training HOT 13
- Quantile forecasts are identical for all forecast horizons (XGBoost) HOT 2
- [BUG] TSMixer TimeBatchNorm2d using BatchNorm instead of LayerNorm HOT 6
- [BUG] Deterministic TFT model prediction not reproducable HOT 2
- TSMixer ConditionalMixer Skip Connections HOT 1
- [BUG] PLForecastingModule._calculate_metrics should call log_dict with batch_size HOT 2
- [BUG] TorchMetrics loop implementation isn't compatible with stateful metrics HOT 1
- [BUG] TCNModel changes the shape of data erroneously before loss evaluation HOT 3
- [BUG] TFTModel returns StopIteration on decoder_vsn() call in forward() HOT 3
- How to make TorchForecastingModel store the best model checkpoint? HOT 1
- New model - TimeMixer
- [BUG] Static covariates not added to val_series for RegressionModel HOT 1
- Embedding extraction for clustering 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.