Skip to content

fix: add early stopping and reduce model complexity to prevent overfi… - #5

Merged
nawinds merged 1 commit into
mainfrom
development
Jul 15, 2026
Merged

fix: add early stopping and reduce model complexity to prevent overfi…#5
nawinds merged 1 commit into
mainfrom
development

Conversation

@nawinds

@nawinds nawinds commented Jul 15, 2026

Copy link
Copy Markdown
Member

…tting

  • num_leaves 63 → 31 (simpler trees)
  • min_child_samples 20 → 30 (harder to create tiny leaves)
  • n_estimators cap 1000, but early_stopping(50) stops at actual optimum
  • LGBMWrapper.fit() now accepts X_val/y_val and wires early stopping
  • train.py passes the temporal val split to fit() and logs best_iteration

Result: early stopping at round 420/1000, train=96% val=86.3%

…tting

- num_leaves 63 → 31 (simpler trees)
- min_child_samples 20 → 30 (harder to create tiny leaves)
- n_estimators cap 1000, but early_stopping(50) stops at actual optimum
- LGBMWrapper.fit() now accepts X_val/y_val and wires early stopping
- train.py passes the temporal val split to fit() and logs best_iteration

Result: early stopping at round 420/1000, train=96% val=86.3%
@nawinds
nawinds merged commit 9e61f6d into main Jul 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants