Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ourownstory committed Aug 30, 2024
1 parent 31828fc commit 451f249
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion neuralprophet/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

@dataclass
class Model:
lagged_reg_layers: Optional[List[int]]
quantiles: Optional[List[float]] = None

def setup_quantiles(self):
Expand Down
2 changes: 1 addition & 1 deletion neuralprophet/df_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def data_params_definition(
norm_type=normalize,
)

if config_lagged_regressors.regressors is not None:
if config_lagged_regressors is not None and config_lagged_regressors.regressors is not None:
for covar in config_lagged_regressors.regressors.keys():
if covar not in df.columns:
raise ValueError(f"Lagged regressor {covar} not found in DataFrame.")
Expand Down

0 comments on commit 451f249

Please sign in to comment.