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

ModuleNotFoundError: No module named 'gluonts.torch.modules.loss' #3184

Open
melty-chocolate opened this issue May 28, 2024 · 1 comment
Open

Comments

@melty-chocolate
Copy link

melty-chocolate commented May 28, 2024

Description

gluonts 0.15.0 introduces error
ModuleNotFoundError: No module named 'gluonts.torch.modules.loss'
downgrade to 0.14 fixed this

To Reproduce

(Please provide minimal example of code snippet that reproduces the error. For existing examples, please provide link.)

from gluonts.torch.modules.loss import DistributionLoss

Error message or code output

(Paste the complete error message, including stack trace, or the undesired output that the above snippet produces.)

ModuleNotFoundError: No module named 'gluonts.torch.modules.loss'

Environment

  • Operating system: XOS
  • Python version: 3.10, 3.9
  • GluonTS version: 0.15.0

(Add as much information about your environment as possible, e.g. dependencies versions.)

@melty-chocolate melty-chocolate added the bug Something isn't working label May 28, 2024
@lostella lostella removed the bug Something isn't working label May 29, 2024
@lostella lostella changed the title BUG ModuleNotFoundError: No module named 'gluonts.torch.modules.loss' ModuleNotFoundError: No module named 'gluonts.torch.modules.loss' May 29, 2024
@lostella
Copy link
Contributor

lostella commented May 29, 2024

Hi, this is not a bug, but a breaking change listed in the release notes. It was introduced in #3093. The methods implementing negative log-likelihood as loss associated with parametric distributions were moved into gluonts.torch.distributions.distribution_output, bundled together with the class providing layers to project latent states into the parameter space for the distribution family. cc @shchur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants