Skip to content

Commit

Permalink
Setting stan backend to None: ~95% memory usage decrease
Browse files Browse the repository at this point in the history
  • Loading branch information
carlomazzaferro committed Mar 27, 2020
1 parent 5b29cf8 commit 12ccbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hts/model/p.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class FBProphetModel(TimeSeriesModel):
# TODO: include history to calculate residuals
def __init__(self, node: HierarchyTree, **kwargs):
super().__init__(Model.prophet.name, node, **kwargs)
self.cap = None
Expand Down Expand Up @@ -59,6 +58,7 @@ def fit(self, **fit_args) -> 'TimeSeriesModel':
df = self._reformat(self.node.item)
with suppress_stdout_stderr():
self.model = self.model.fit(df)
self.model.stan_backend = None
return self

def predict(self,
Expand Down

0 comments on commit 12ccbbe

Please sign in to comment.