autogluon in kaggle notebook #46333
-
I am trying to use the autogluon timeseries predictor in a kaggle notebook. I copied the code from
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
The error message "TypeError: n needs to be an int or a list/set/tuple of ints" suggests that one of the arguments being passed to the fit method is not of the expected type To resolve this issue ✅ , you will need to examine the value of hypers and ensure that it is of the correct type. If it is a list, set, or tuple, make sure that all elements are integers ✍🏼 . If it is an integer, check that it is a valid value. If you are still encountering this issue after verifying the type of hypers, you can try printing the value of hypers just before the fit method is called to see if there is any additional information that can help you identify the cause of the error. 👉 Additionally, you may want to refer to the documentation for the fit method or the TimeSeriesPredictor class to ensure that you are using it correctly and that the arguments you are passing are valid. |
Beta Was this translation helpful? Give feedback.
-
I faced the same issue and it turned out to be a problem of compatibility between autogluon and pandas. If you are using atuogluon >0.6.x make sure you have pandas > 1.4.x. |
Beta Was this translation helpful? Give feedback.
The error message "TypeError: n needs to be an int or a list/set/tuple of ints" suggests that one of the arguments being passed to the fit method is not of the expected type⚠️ . The specific argument that is causing the issue is not clear from the information provided, but it is possible that hypers is not of type int, list, set, or tuple.
To resolve this issue ✅ , you will need to examine the value of hypers and ensure that it is of the correct type. If it is a list, set, or tuple, make sure that all elements are integers ✍🏼 . If it is an integer, check that it is a valid value.
If you are still encountering this issue after verifying the type of hypers, you can try printing the value o…