add Minimizer plugin and System.minimize method#304
add Minimizer plugin and System.minimize method#304wanghan-iapcm merged 10 commits intodeepmodeling:develfrom
Conversation
Conflicts: dpdata/driver.py dpdata/system.py
Codecov ReportBase: 82.07% // Head: 82.21% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## devel #304 +/- ##
==========================================
+ Coverage 82.07% 82.21% +0.13%
==========================================
Files 67 67
Lines 5834 5891 +57
==========================================
+ Hits 4788 4843 +55
- Misses 1046 1048 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
dpdata/driver.py
Outdated
| for atoms in structures: | ||
| atoms.calc = self.ase_calculator | ||
| dyn = LBFGS(atoms, logfile=None) | ||
| dyn.run(fmax=5e-3) | ||
| ls = dpdata.LabeledSystem(atoms, fmt="ase/structure", type_map=data['atom_names']) | ||
| labeled_system.append(ls) |
There was a problem hiding this comment.
Does one have any chance of specifying the optimizer and the parameters for optimization?
There was a problem hiding this comment.
Good point, let me consider how to design the API
wanghan-iapcm
left a comment
There was a problem hiding this comment.
Could you please provide doc on how to use the minimizer?
especially when one wants to change the default fmax of "ase".
This PR adds the
minimizemethod toSystemand also the Minimizer plugins. Also add two minimizers: ASE and AMBER SQM.