Rename variable xgboost_early to reflect both CatBoost and XGBoost usage
Description
The current variable xgboost_early is now used for both CatBoost and XGBoost models, but the name is specific to XGBoost. To avoid confusion and improve clarity, we need to rename this variable to something more general that reflects its functionality for both models.
Tasks
Rename the variable:
Change the variable xgboost_early to a more general name like early_stopping or boost_early_stopping to indicate that it works for both CatBoost and XGBoost.
Update code:
Replace all occurrences of xgboost_early in the codebase with the new variable name.
Ensure compatibility in both CatBoost and XGBoost model training pipelines.
Update tests:
Refactor the existing tests to use the new variable name.
Ensure all relevant tests for early stopping in both CatBoost and XGBoost still pass.
Update documentation:
Modify any references to xgboost_early in the documentation to reflect the new name.
Ensure the updated documentation clearly explains that the variable is applicable to both CatBoost and XGBoost.
Notes
Ensure that all instances of the old variable name are replaced consistently across the entire codebase.
Run the full test suite to verify everything works after the changes.
Rename variable
xgboost_early
to reflect both CatBoost and XGBoost usageDescription
The current variable
xgboost_early
is now used for both CatBoost and XGBoost models, but the name is specific to XGBoost. To avoid confusion and improve clarity, we need to rename this variable to something more general that reflects its functionality for both models.Tasks
Rename the variable:
xgboost_early
to a more general name likeearly_stopping
orboost_early_stopping
to indicate that it works for both CatBoost and XGBoost.Update code:
xgboost_early
in the codebase with the new variable name.Update tests:
Update documentation:
xgboost_early
in the documentation to reflect the new name.Notes