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

[BUG] GridSearchCV Warning: Non-Finite Test Scores for SVR Model #201

Closed
1 task done
shristirwt opened this issue Oct 28, 2024 · 3 comments · Fixed by #207
Closed
1 task done

[BUG] GridSearchCV Warning: Non-Finite Test Scores for SVR Model #201

shristirwt opened this issue Oct 28, 2024 · 3 comments · Fixed by #207
Assignees
Labels
bug Something isn't working gssoc-ext GSSoC'24 Extended Version hacktoberfest Hacktober Collaboration hacktoberfest-accepted Hacktoberfest 2024 level2 25 Points 🥈(GSSoC)

Comments

@shristirwt
Copy link
Contributor

shristirwt commented Oct 28, 2024

Has this bug been raised before?

  • I have checked "open" AND "closed" issues and this is not a duplicate

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.

Screenshot 2024-10-28 230852
Screenshot 2024-10-28 231629
Screenshot 2024-10-28 231822

Steps to Reproduce

Include any relevant details like:

  • What page you were on... stock_market(complete).ipynb
  • What you were trying to do... I was executing the code when I encountered the warning
  • What went wrong... It displayed the above mentioned warnings

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

@shristirwt shristirwt added the bug Something isn't working label Oct 28, 2024
Copy link
Contributor

👋 Thanks for opening this issue! We appreciate your contribution. Please make sure you’ve provided all the necessary details and screenshots, and don't forget to follow our Guidelines and Code of Conduct. Happy coding! 🚀

@github-actions github-actions bot added gssoc-ext GSSoC'24 Extended Version hacktoberfest Hacktober Collaboration hacktoberfest-accepted Hacktoberfest 2024 level? labels Oct 28, 2024
@Mayureshd-18
Copy link
Collaborator

@shristirwt Assigned!

Copy link
Contributor

✅ This issue has been successfully closed. Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gssoc-ext GSSoC'24 Extended Version hacktoberfest Hacktober Collaboration hacktoberfest-accepted Hacktoberfest 2024 level2 25 Points 🥈(GSSoC)
Projects
None yet
2 participants