Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] assert error #1354

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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