Skip to content

Comments

Fix model hyperparameter tuning inconsistencies for Elastic Net, Support Vector Regressor, and Random Forest Regressor#62

Open
sohampirale wants to merge 1 commit intoruxailab:mainfrom
sohampirale:fix/hyperparameter_usage
Open

Fix model hyperparameter tuning inconsistencies for Elastic Net, Support Vector Regressor, and Random Forest Regressor#62
sohampirale wants to merge 1 commit intoruxailab:mainfrom
sohampirale:fix/hyperparameter_usage

Conversation

@sohampirale
Copy link

Summary

This PR addresses the bug where multiple machine learning models had hyperparameter configurations defined but were not utilizing them for optimization.

Fixes : #60

Changes Made

  • Fixed the condition in gaze_tracker.py to properly handle Random Forest Regressor instead of incorrectly handling Elastic Net and Support Vector Regressor
  • Removed incorrect conditional branches for Elastic Net and Support Vector Regressor that were not using their defined hyperparameters
  • Ensured Random Forest Regressor is handled correctly to prevent runtime errors

Files Modified

  • app/services/gaze_tracker.py - Updated model selection logic to properly handle hyperparameter configurations

Impact

This resolves the inconsistency where models with defined hyperparameter configurations weren't using them for optimization, leading to suboptimal performance and potential runtime errors.

Screenshots

Tested all the models

  • Elastic Net
Image
  • Support Vector Regressor
Image
  • Random Forest Regressor
Image

…uning and Add "Random Forest Regressor" in default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛[Bug] : Fix model hyperparameter tuning inconsistencies for Elastic Net, Support Vector Regressor, and Random Forest Regressor

1 participant