Code Monkey home page Code Monkey logo

Comments (6)

fnhirwa avatar fnhirwa commented on June 15, 2024 1

I think this is still an issue, reopening. @fnhirwa, you are still welcome to pick this up if you´d like.

Yeah you can assign me I will start to work on it

from sktime.

fkiraly avatar fkiraly commented on June 15, 2024

made minor edits to include the fully reproducible example, hope that is ok.

Confirmed on current main, windows, python 3.11

from sktime.

VyomkeshVyas avatar VyomkeshVyas commented on June 15, 2024

@guimalo As per the current logic, "holidays" present in the "holiday_windows" argument is expected to be present in the index of test dataframe as well, otherwise ValueError is raised.

from sktime.

fkiraly avatar fkiraly commented on June 15, 2024

@VyomkeshVyas, thanks for clarifying!

I would still consider this a "bug" in the sense that it is not obvious that the estimator will break (e.g., from docstring), and when it breaks it does not give clear feedback.

It is also not expected, as the holiday_windows could in-principle intersect with the observed period, even if the event itself is not there.

I do think, hence, that the optimal state is:

  • allow events outside the observed period - otherwise you will have to update the calendar continuously, and the estimator will fail for naive windowing or backtesting (!), because some events end up outside windows or folds
    • a naive solution would be just to subset the calendar
  • ensure that holiday_windows intersecting with observed data are properly treated
    • that might be more difficult, especially for non-contiguous dates. A simple solution might be to "grow" the holiday dates by their windows, then check if intersections come up empty

The above is my "optimal" resolution, the "minimal" would be a clear error message that explains to the user what they have to do. I would still consider that quite sub-optimal because the calendar has to vary with the data.

from sktime.

fnhirwa avatar fnhirwa commented on June 15, 2024

I am going to start looking into this item if no one is currently working on it

from sktime.

fkiraly avatar fkiraly commented on June 15, 2024

I think this is still an issue, reopening. @fnhirwa, you are still welcome to pick this up if you´d like.

from sktime.

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.