Increasing model performance using hyperparameter tuning #1157
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for PyVerse 💡
Requesting to submit a pull request to the PyVerse repository.
Issue Title
Enhancing Diabetes Prediction Accuracy Through Hyperparameter Tuning in Random Forest.
Info about the Related Issue
What's the goal of the project?
The goal is to enhance the accuracy of the diabetes prediction model by implementing hyperparameter tuning using GridSearchCV on the Random Forest algorithm and visualizing the impact of the tuned parameters.
Name
PRASANNA DEVIREDDY
GitHub ID
PrasDev4
Email ID
[email protected]
Identify Yourself
SWOC
Closes
Closes: #1157
Describe the Add-ons or Changes You've Made
I have implemented hyperparameter tuning using GridSearchCV for the Random Forest classifier to optimize model parameters (n_estimators, max_depth, and min_samples_split). I have also added a visualization comparing model accuracy before and after tuning to showcase the improvement.
Type of Change
New feature (non-breaking change which adds functionality)
How Has This Been Tested?
The changes have been tested on the diabetes dataset by splitting it into training and testing sets. The accuracy scores for both the untuned and tuned models were calculated and validated using visualizations.
Checklist
Please confirm the following: