mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +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$k <- m$params$k + m$params$delta[, 1]
|
||||||
m$params$delta <- matrix(rep(0, length(m$params$delta)), nrow = n.iteration)
|
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)
|
return(m)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue