mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-18 21:21:22 +00:00
[bugfix] Run GC after model fitting to prevent memory errors.
This commit is contained in:
parent
6d387a4640
commit
c164367c08
1 changed files with 1 additions and 0 deletions
|
|
@ -559,6 +559,7 @@ fit.prophet <- function(m, df, ...) {
|
|||
m$params$k <- m$params$k + m$params$delta[, 1]
|
||||
m$params$delta <- matrix(rep(0, length(m$params$delta)), nrow = n.iteration)
|
||||
}
|
||||
gc() ## This is hack. We don't know why it works but it solves issue #93.
|
||||
return(m)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue