[BUG] GridSearchCV Warning: Non-Finite Test Scores for SVR Model #201
Labels
bug
Something isn't working
gssoc-ext
GSSoC'24 Extended Version
hacktoberfest
Hacktober Collaboration
hacktoberfest-accepted
Hacktoberfest 2024
level2
25 Points 🥈(GSSoC)
Has this bug been raised before?
Description
I am encountering a warning during the hyperparameter tuning of a Support Vector Regression (SVR) model using GridSearchCV in scikit-learn. The warning states: "One or more of the test scores are non-finite: [nan nan nan nan nan nan]."
Another warning occured when attempting to define a Keras Sequential model. The warning indicates that the model is improperly configured by passing the input_shape directly to the Dense layers rather than using an Input layer at the beginning of the model.
Steps to Reproduce
Include any relevant details like:
Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to the above, please explain how you would technically implement this.
I will switch the scoring metric to a regression-appropriate metric and for the second warning I will use Input layer
The text was updated successfully, but these errors were encountered: