]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor(xgboost): migrate to callback-based early stopping for API 3.x compatibility
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 6 Jan 2026 23:30:18 +0000 (00:30 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 6 Jan 2026 23:30:18 +0000 (00:30 +0100)
commit0af16052d312cc0bea1e69f144b146cb181cb575
tree62a5217a1bbfa3c2226d23cab3b4f27d4aa112d9
parente14599c6208f98673b0b37bea4f9a84f3f33c749
refactor(xgboost): migrate to callback-based early stopping for API 3.x compatibility

- Replace deprecated early_stopping_rounds parameter with EarlyStopping callback
- Extract early_stopping_rounds from model parameters using pop() before instantiation
- Configure callback with metric_name='rmse', data_name='validation_0', save_best=True
- Reorganize LightGBM callback initialization for improved code readability
- Maintains backward compatibility with eval_set validation approach
- Ensures compatibility with XGBoost 3.1.2+ API requirements
quickadapter/user_data/strategies/Utils.py