Repository navigation
Replies: 1 comment
|
Hi @tgmaxson , Yes, custom loss terms are possible, but a bit awkward in syntax at present. Syntax is something like: This funny syntax tells PyYAML to construct an object of that class and put it in the config. The implementation, at simplest, looks like
(See |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there any mechanism to define a custom loss function component via python extension or something of the sort? Currently it seems they are hard coded to search nequip.nn and it unclear where exactly I would extend the system without direct modification of nequip.
To set some limits since I expect they would matter, lets say I want to follow some sort of ERF-like curve in loss function, where stresses start with a low weight and smoothly increase to some maximum. Ideally I would define this in some sort of simple math expression in the config.yaml. If this is not possible, can you suggest a minimum example of how this could be directly added to nequip?
All reactions