Skip to content

Commit

Permalink
fix bug (#1582)
Browse files Browse the repository at this point in the history
Co-authored-by: Maisa Ben Salah <[email protected]>
  • Loading branch information
MaiBe-ctrl and Maisa Ben Salah authored Jun 14, 2024
1 parent 2354356 commit ac7773a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions neuralprophet/forecaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,19 +457,6 @@ def __init__(
drop_missing=drop_missing,
)

# Training
self.config_train = configure.Train(
quantiles=quantiles,
learning_rate=learning_rate,
epochs=epochs,
batch_size=batch_size,
loss_func=loss_func,
optimizer=optimizer,
newer_samples_weight=newer_samples_weight,
newer_samples_start=newer_samples_start,
trend_reg_threshold=trend_reg_threshold,
)

if isinstance(collect_metrics, list):
log.info(
DeprecationWarning(
Expand Down Expand Up @@ -499,6 +486,19 @@ def __init__(
trend_local_reg=trend_local_reg,
)

# Training
self.config_train = configure.Train(
quantiles=quantiles,
learning_rate=learning_rate,
epochs=epochs,
batch_size=batch_size,
loss_func=loss_func,
optimizer=optimizer,
newer_samples_weight=newer_samples_weight,
newer_samples_start=newer_samples_start,
trend_reg_threshold=self.config_trend.trend_reg_threshold,
)

# Seasonality
self.config_seasonality = configure.ConfigSeasonality(
mode=seasonality_mode,
Expand Down

0 comments on commit ac7773a

Please sign in to comment.