-
Notifications
You must be signed in to change notification settings - Fork 380
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
Constraint error when tuning with AutoNHITS #957
Comments
Hey @zzzrbx, thanks for using neuralforecast. This isn't a shape error, the check that is failing is that it expects the values to be non-negative and they're all NaNs. Are you using scalers? |
Yes i’m using the robust scaler
…On Mon, 8 Apr 2024 at 17:46, José Morales ***@***.***> wrote:
Hey @zzzrbx <https://github.com/zzzrbx>, thanks for using neuralforecast.
This isn't a shape error, the check that is failing is that it expects the
values to be non-negative and they're all NaNs. Are you using scalers?
—
Reply to this email directly, view it on GitHub
<#957 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFREVQ5YYBL57YFFSW25KMDY4LCYDAVCNFSM6AAAAABF3UEHNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGIYTOMRXHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Is it on the model (batches) or in the NeuralForecast constructor? If you can at least provide the code you're running that'd help a lot. |
I'm using the code below, basically taken from the documentation. The error comes up more often as I increase the number of trials in optuna (I'm using CPU with no ray tune). Should the time series have a minimum length?
|
I see you commented the DistributionLoss - what distribution are you using when you see the error? And, does the error also occur you change the distribution type? |
I’m using Student-t most of the time but it happens with tweedie as well.
Haven’t tested other distributions yet
…On Thu, 11 Apr 2024 at 11:27, Olivier Sprangers ***@***.***> wrote:
I see you commented the DistributionLoss - what distribution are you using
when you see the error? And, does the error also occur you change the
distribution type?
—
Reply to this email directly, view it on GitHub
<#957 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFREVQ25NI3DGN2RS35XS7LY4ZQRHAVCNFSM6AAAAABF3UEHNKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZGM4DOMRWGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Can you test with a Normal distribution? I want to exclude the possibility of this being an issue related to the distributions. Also, the initial error you showed above is (I think) when running the Student-t. What is the exact error you get with the Tweedie? |
Hey @zzzrbx just checking in - did you have any luck trying out with the Normal distribution? |
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. |
I am facing the same problem when trying to use Tweedie distribution. Both when scaling on the model (batches) and using local_scaler. I have tried 'standard', 'robust', and 'boxcox' scaler types. Still ends up with the same problem.
Here is the error I get
|
@fariduca I think some of our bounds are too tight for the distributions, this seems the same issue as you are experiencing. I am working on fixing this. |
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. |
waiting for the solution. This kind of error is totally beyond my scope.:) |
I am facing the same error when using either the Poisson or the Tweedie distribution. Also, I am not using scalers and my input data is nonnegative. |
What happened + What you expected to happen
When tuning AutoNHITS with Optuna backend (without using Ray Tune) I occasionally get this error:
I'm using the latest version with no Ray Tune support.
Versions / Dependencies
Neuralforecast 1.7.0
Python 3
Reproduction script
It'd be difficult to share because it does not happen always
Issue Severity
High: It blocks me from completing my task.
The text was updated successfully, but these errors were encountered: