Skip to content

Use thermo and energy errors in loss function - #209

Draft
mattwthompson wants to merge 10 commits into
mainfrom
merge-thermo-energy
Draft

mattwthompson wants to merge 10 commits into
mainfrom
merge-thermo-energy

Conversation

@mattwthompson

Copy link
Copy Markdown
Member

Closes #208

Part of #148

Comment thread examples/mvp/run.py Outdated
Comment on lines +95 to +101
thermo_ff = load_tensor_force_field(
json.loads(
open(
f"examples/mvp/EPOCH_{epoch}/simulations/reference_force_fields/reference.json",
).read()
)
)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The local variable name here is important - thermo_ff is the "global force field" associated with the thermo targets separately from current_ff

@codecov-commenter

codecov-commenter commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.48649% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.36%. Comparing base (c17dc3b) to head (7ff398d).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
tyff/molecule.py 89.65% 3 Missing ⚠️
tyff/compute/workflow.py 0.00% 1 Missing ⚠️
tyff/targets/new_thermo.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #209      +/-   ##
==========================================
+ Coverage   82.06%   82.36%   +0.29%     
==========================================
  Files          59       58       -1     
  Lines        5313     5295      -18     
==========================================
+ Hits         4360     4361       +1     
+ Misses        953      934      -19     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

mattwthompson and others added 2 commits October 27, 2026 13:51
Co-authored-by: Lily Wang <31115101+lilyminium@users.noreply.github.com>
@mattwthompson

Copy link
Copy Markdown
Member Author

With the code at 8de767f I can run three epocs with the loss function slowly decreasing (as calculated) considering both thermo and energy targets (not entirely validated)

#213 needs to be resolved before considering this complete, though, and I'll need to re-run

@mattwthompson
mattwthompson added this pull request to stack #221 November 10, 2026 17:28
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.

Merge thermo and energy targets in MVP example

2 participants