Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GBM: log intermediate progress #2421

Merged
merged 5 commits into from
Aug 31, 2022
Merged

GBM: log intermediate progress #2421

merged 5 commits into from
Aug 31, 2022

Conversation

jppgks
Copy link
Contributor

@jppgks jppgks commented Aug 26, 2022

Makes GBM training iterative to log intermediate progress + add test set eval metrics if available

@github-actions
Copy link

github-actions bot commented Aug 26, 2022

Unit Test Results

       5 files  ±0         5 suites  ±0   3h 1m 51s ⏱️ + 19m 31s
2 980 tests +1  2 885 ✔️ +1    95 💤 ±0  0 ±0 
6 089 runs  +3  5 873 ✔️ +3  216 💤 ±0  0 ±0 

Results for commit 9bb0a1f. ± Comparison against base commit d3bedab.

♻️ This comment has been updated with latest results.

loss_name = params["metric"][0]
loss = evals_result[data_name][loss_name][-1]
metrics = {"Survived": {LOSS: loss}, COMBINED: {LOSS: loss}}
self.append_metrics(data_name, metrics, name_to_metrics_log[data_name], tables, progress_tracker)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are/could we also log these metrics to stdout, similar to how ECD logs intermediate training metrics?

Copy link
Contributor Author

@jppgks jppgks Aug 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, LightGBM is already logging the loss to stdout. This PR just logs the loss, but eventually we might want to log intermediate metrics as well

ludwig/schema/trainer.py Outdated Show resolved Hide resolved
@jppgks jppgks merged commit 0590aa5 into master Aug 31, 2022
@jppgks jppgks deleted the MLF-72-gbm-progress branch August 31, 2022 17:16
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