Code Monkey home page Code Monkey logo

Comments (4)

fkiraly avatar fkiraly commented on July 19, 2024 1

Thanks for reporting, the reasoning seems sound.
I'll need to check again in defail how this relates to _cut_df logic.

FYI @benHeid, is this related to some of the issues you looked at recently?

from sktime.

carlocav avatar carlocav commented on July 19, 2024

Thank you. I have one more thing: in the make_reduction documentation it's written that pooling only works for Recursive Forecaster

pooling: str {“local”, “global”}, optional
Specifies whether separate models will be fit at the level of each instance (local) of if you wish to fit a single model to all instances (“global”). Currently only works for RecursiveTimeSeriesRegressionForecaster.

In reality "global" is also implemented with Direct Forecaster (with this above issue). Is this docstring outdated?

from sktime.

fkiraly avatar fkiraly commented on July 19, 2024

In reality "global" is also implemented with Direct Forecaster (with this above issue). Is this docstring outdated?

Possibly - I thought it was functional.
@benHeid looked into this recently, so probably can say more.

from sktime.

benHeid avatar benHeid commented on July 19, 2024

I took a look on this Issue and I can confirm that this is a Bug. Might probably be fixed by calculating the n_timesteps twice. Before and after the transformation. Before the transformation to being still able to perform the checks that happen before transform. Afterwards, to have the correct length of the transformed time series, so that cut_df is working correctly. Perhaps we should also add a check to _cut_df that checks if n_obs is greater than the time series.

If it is greater, it just returns the input time series. See:

pd.DataFrame([0,1,2]).tail(4)
# Out:
#    0
# 0  0
# 1  1
# 2  2

pd.DataFrame([0,1,2]).tail(6)
# Out:
#    0
# 0  0
# 1  1
# 2  2

pd.DataFrame([0,1,2]).head(6)
# Out:
#    0
# 0  0
# 1  1
# 2  2

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.