Giter Site home page Giter Site logo

akai01 / caretforecast Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 10.0 2.04 MB

Conformal Time Series Forecasting Using State of Art Machine Learning Algorithms

License: GNU General Public License v3.0

R 100.00%
caret forecasting machine-learning r econometrics data-science forecast forecasting-models time-series time-series-forcasting

caretforecast's Issues

Meaning of max-lag

Does the max_lag parameter determine the length of the training window of the data fed into the model or the lag (or gap) between the training and validation data during cross validation?

Edit: or is it used for differencing a maximum of max_lag times?

non-conformity measures appear to not be calculated out-of-bag

I just noticed your new update that implements conformal prediction intervals. While I don't see any bugs it appears the empirical distribution of the nonconformity scores (i.e. the abs(residuals(fit)) are not calculated on a holdout calibration set. In the source you provided in your documentation (i.e. Boström, H., 2022) they use out-of-bag predictions for calibration, but you seem to be using the one-step-ahead error for h=1 within the same training set. First of all, how does this implementation not violate the exchangeability assumptions that conformal prediction is based on? Second, shouldn't the empirical distribution of nonconformity scores for say h=10 be different (probably wider) than for h=1?

It seems that to correct this you would have to randomly split the timeslices into proper training and calibration sets (I know they can overlap but it unclear to me how to avoid that), then fit the model using only the training sets and calculate the entire forecast horizon on the "fresh" calibration timeslices to get your scores (you call them alpha in the code). That way you would have separate distributions for each horizon h=1,2,3... so hopefully the resulting prediction interval would look like a trumpet.

A function for multivariate time series data

My apologize for my selfish request. Your package really helps a lot to train various machine learning algorithms for time series based on caret library. May I request you an issue for a multivariate time series one?

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.