rohitinu6 / Stock-Price-Prediction

This project focuses on predicting the stock prices of "The State Bank Of India" using machine learning Regression algorithms.
MIT License
46 stars 80 forks source link

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

Closed shristirwt closed 4 weeks ago

shristirwt commented 1 month ago

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.

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

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

github-actions[bot] commented 1 month ago

👋 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! 🚀

Mayureshd-18 commented 1 month ago

@shristirwt Assigned!

github-actions[bot] commented 4 weeks ago

✅ 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! 🚀