GithubHelp home page GithubHelp logo

Comments (3)

dennisbader avatar dennisbader commented on June 24, 2024 1

Hi @nejox, thanks for this issue and very detailed report. I'll ivestigate it next week and come up with a fix.

from darts.

dennisbader avatar dennisbader commented on June 24, 2024

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.

nejox avatar nejox commented on June 24, 2024

Ah, I'm using pandas==1.5.3 - that's interesting..

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.