Skip to content

Add per-component loss tracking to NDP-HNN training loop#53

Open
atharrva01 wants to merge 1 commit intoDevoLearn:mainfrom
atharrva01:feat/per-component-loss-tracking
Open

Add per-component loss tracking to NDP-HNN training loop#53
atharrva01 wants to merge 1 commit intoDevoLearn:mainfrom
atharrva01:feat/per-component-loss-tracking

Conversation

@atharrva01
Copy link
Copy Markdown
Contributor

I added lightweight per-component loss tracking to make training runs easier to understand.

What changed

  • Tracked loss_xyz and loss_rec separately during each epoch
  • Updated logs to print total loss plus both components
  • Returned (model, history) from train_model()
  • Saved loss_history.json to --save_dir

Why

Previously, I could only see the total loss, which made debugging harder. Now I can quickly tell which objective is improving, plot curves later, and compare runs easily, all with no new dependencies.

Signed-off-by: atharrva01 <atharvaborade568@gmail.com>
@atharrva01 atharrva01 marked this pull request as ready for review April 19, 2026 08:14
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.

1 participant