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

Update nbeats/sub_modules.py to remove UserWarning #1580

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

d-schmitt
Copy link

Issue

This PR removes a warning raised by nbeats/sub_module.py:
UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor.
This commit replaces the relevant sections with the appropriate code to remove the warning in nbeats submodule. (similar to #754)

Proposed change:

Change the implementation, as suggested by the warning to increase efficiency.

The nbeats/sub_module.py raises the following warning:
UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor.
This commit replaces the relevant sections with the appropriate code to remove the warning. (similar to sktime#754)
Remove faulty copy commit.
Remove spaces.
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

Successfully merging this pull request may close these issues.

1 participant