DeepBlockDeepak / kaggle_titanic

Titanic Survivor Predictor: A multiple machine learning model project to forecast survival outcomes of Titanic passengers. Engineered from historical data, refined with feature selection, tested with CI/CD, and outputs validation metrics.
https://www.kaggle.com/c/titanic
1 stars 0 forks source link

Optimize Hyperparameters of RandomForestClassifier #8

Closed DeepBlockDeepak closed 7 months ago

DeepBlockDeepak commented 7 months ago

Try grid search or random search in new file: src/random_forest/rf_hyperparameter_tuning.py

DeepBlockDeepak commented 7 months ago

Best parameters: {'bootstrap': True, 'criterion': 'entropy', 'max_depth': 10, 'max_features': 'sqrt', 'min_samples_leaf': 1, 'min_samples_split': 2, 'n_estimators': 50} Best cross-validation score: 0.8455727371220328 Validation accuracy of the best model: 0.7877094972067039