]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor(quickadapter): simplify early stopping condition checks
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 7 Jan 2026 00:14:46 +0000 (01:14 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 7 Jan 2026 00:14:46 +0000 (01:14 +0100)
commitac21d67e08d81a858d6be647e9e665d2fdfd1797
tree3ae137b947c94a4d7a2d0571ba10711373d22a57
parent1dcefa8cedd9e7ef7d2ca48cc2472609af3f72e9
refactor(quickadapter): simplify early stopping condition checks

Remove redundant has_eval_set verification in early stopping callbacks for XGBoost and LightGBM. The check is unnecessary because early_stopping_rounds is only assigned a non-None value when has_eval_set is True, making the condition implicitly guaranteed.
quickadapter/user_data/strategies/Utils.py