]> Piment Noir Git Repositories - freqai-strategies.git/commit
feat(weights): integrate sample_weight composition into both train() data split paths
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 24 May 2026 00:10:39 +0000 (02:10 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 24 May 2026 00:10:39 +0000 (02:10 +0200)
commit5cae461ad86c6888b0e12b3cb5d75732a3947499
tree5374a424d5ff7075dd050e89d0a68bcb57c1bf4a
parent635a3b9e06d1e69ceea80cd4199b6b6453c0ffa1
feat(weights): integrate sample_weight composition into both train() data split paths

Add _train_default() mirroring BaseRegressionModel.train() with _compose_train_weights inserted between make_train_test_datasets and _apply_pipelines. Routes train_test_split path through _train_default instead of super().train(). Inserts _compose_train_weights before _apply_pipelines in timeseries_split path. Calls _strip_label_weight_columns(dk) at top of train() for both branches. Validated locally with pytest + structural AST checks (evidence: .omo/evidence/task-9-{pytest,structural}.txt).
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py