Code Monkey home page Code Monkey logo

Comments (9)

seabbs avatar seabbs commented on August 15, 2024

This isn't the most informative issue I have
seen....

from episoon.

nikosbosse avatar nikosbosse commented on August 15, 2024

the issue is that for the AR 3 model some outputs are not produced. And therefore the lengths of the raw_forecast samples differ as a symptom of an underlying problem.

from episoon.

nikosbosse avatar nikosbosse commented on August 15, 2024

hm okk the bug only happens sometimes. so I assume it has something to do with the AR 3 fit
I don't think it is an issue of the input format. I retried with


obs_rts <- EpiSoon::example_obs_rts %>%
  dplyr::mutate(timeseries = 1, sample = 1) %>%
  rbind(EpiSoon::example_obs_rts %>%
          dplyr::mutate(timeseries = 2, sample = 1))
  
obs_cases <- EpiSoon::example_obs_cases %>%
  dplyr::mutate(timeseries = 1, sample = 1) %>%
  rbind(EpiSoon::example_obs_cases %>%
      dplyr::mutate(timeseries = 2, sample = 1))

and the issue still persists sometimes

from episoon.

seabbs avatar seabbs commented on August 15, 2024

Can you make a reprex and will review. Even better enter the debug and step through. :)

from episoon.

nikosbosse avatar nikosbosse commented on August 15, 2024

at least a bit more minimal and reproducible:

models <- list("AR 3" =
                 function(...) {EpiSoon::bsts_model(model =
                                                      function(ss, y){bsts::AddAr(ss, y = y, lags = 3)}, ...)})

obs_rts <- EpiSoon::example_obs_rts %>%
  dplyr::mutate(timeseries = 1, sample = 1)

for (i in 1:10) {
  tmp <- iterative_rt_forecast(rts = obs_rts, model = models[[1]], 
                               horizon = 7, samples = 10)
  print(nrow(tmp))
}

from episoon.

seabbs avatar seabbs commented on August 15, 2024

awesome - ty

from episoon.

seabbs avatar seabbs commented on August 15, 2024

So the issue is bsts models randomly fail right - is that not a known issue? or am I confused here?

from episoon.

nikosbosse avatar nikosbosse commented on August 15, 2024

So the issue is bsts models randomly fail right

I think basically yes.

from episoon.

seabbs avatar seabbs commented on August 15, 2024

So I was thinking should put in a proportion successful to one of the summary calls so this can be checked. Will look at doing tomorrow? Thanks for exploring :)

from episoon.

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.