Stratified Sampling: You May Have Been Splitting Your Dataset All Wrong | Medium

sklearn.preprocessing.OneHotEncoder — scikit-learn 1.1.2 documentation

Train-Test Split for Evaluating Machine Learning Algorithms

A Gentle Introduction to k-fold Cross-Validation

sklearn.model_selection.KFold — scikit-learn 1.2.0 documentation

Hyperparameter Grid Search with XGBoost | Kaggle

sklearn.model_selection.GridSearchCV — scikit-learn 1.2.0 documentation

Cross-Validation with Linear Regression | Kaggle

Model Performance and Overfitting

3.3. Metrics and scoring: quantifying the quality of predictions — scikit-learn 1.2.0 documentation

scipy.optimize.differential_evolution — SciPy v1.9.3 Manual