Skip to content

Commit

Permalink
fix seasons
Browse files Browse the repository at this point in the history
  • Loading branch information
ourownstory committed Sep 12, 2024
1 parent f209d97 commit 5a06d39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions neuralprophet/time_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ def stack_all_features(self):
"multiplicative_events": {"names": self.multiplicative_event_and_holiday_names},
"additive_regressors": {"names": self.additive_regressors_names},
"multiplicative_regressors": {"names": self.multiplicative_regressors_names},
"seasonalities": {"config": self.config_seasonality, "seasonalities": self.seasonalities},
}
if self.config_seasonality is not None and hasattr(self.config_seasonality, "periods"):
component_args["seasonalities"] = {"config": self.config_seasonality, "seasonalities": self.seasonalities}

for component_name, args in component_args.items():
current_idx = self.components_stacker.stack(
component_name=component_name,
Expand Down Expand Up @@ -170,7 +172,7 @@ def stack_all_features(self):

# if self.config_seasonality is not None and hasattr(self.config_seasonality, "periods"):
# current_idx = self.components_stacker.stack_seasonalities(
# feature_list, current_idx, self.config_seasonality, self.seasonalities
# None, feature_list, current_idx, self.config_seasonality, self.seasonalities
# )

# Concatenate all features into one big tensor
Expand Down

0 comments on commit 5a06d39

Please sign in to comment.