Skip to content

Commit

Permalink
fixed assert error (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoniewgnr authored Jun 14, 2023
1 parent 5b7ab72 commit 1930e44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions neuralprophet/time_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ def forward(self, inputs: Dict, meta: Dict = None, compute_components: bool = Fa
prediction = self._forward(corrected_inputs, meta, non_stationary_only=False)
else:
prediction = self._forward(inputs, meta)
corrected_inputs = inputs.copy()

# check for crossing quantiles and correct them here
if "predict_mode" in inputs.keys() and inputs["predict_mode"]:
Expand All @@ -654,8 +655,6 @@ def forward(self, inputs: Dict, meta: Dict = None, compute_components: bool = Fa
prediction_with_quantiles = self._compute_quantile_forecasts_from_diffs(prediction, predict_mode)

# compute components
corrected_inputs = inputs if corrected_inputs is None else corrected_inputs

if compute_components:
components = self.compute_components(corrected_inputs, meta)
return prediction_with_quantiles, components
Expand Down

0 comments on commit 1930e44

Please sign in to comment.