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 |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions