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

[major] Training: SmoothL1Loss update beta from 1.0 to 0.3 #1461

Merged
merged 9 commits into from
Nov 6, 2023
2 changes: 1 addition & 1 deletion neuralprophet/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def set_loss_func(self):
if isinstance(self.loss_func, str):
if self.loss_func.lower() in ["smoothl1", "smoothl1loss", "huber"]:
# keeping 'huber' for backwards compatiblility, though not identical
self.loss_func = torch.nn.SmoothL1Loss(reduction="none", beta=1.0)
self.loss_func = torch.nn.SmoothL1Loss(reduction="none", beta=0.3)
elif self.loss_func.lower() in ["mae", "maeloss", "l1", "l1loss"]:
self.loss_func = torch.nn.L1Loss(reduction="none")
elif self.loss_func.lower() in ["mse", "mseloss", "l2", "l2loss"]:
Expand Down