-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a yaml construct method for Trainer (#144)
* added a yaml construct method for Trainer * used safe_load * reformatted the yaml structure to use the same _construct method * added test for YAML config loader * added pyyaml dep
- Loading branch information
Showing
4 changed files
with
123 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# InputFile for Force Prediction Network | ||
sflparamsfile: 'rHCNO-5.2R_16-3.5A_a4-8.params' | ||
ntwkStoreDir: 'networks/' | ||
atomEnergyFile: 'sae_linfit.dat' | ||
nmax: 0 # Maximum number of iterations (0 = inf) | ||
tolr: 1 # Tolerance - early stopping | ||
emult: 0.1 # Multiplier by eta after tol switch | ||
eta: 0.001 # Eta -- Learning rate | ||
tcrit: 1.0E-5 # Eta termination criterion | ||
tmax: 0 # Maximum time (0 = inf) | ||
tbtchsz: 2560 | ||
vbtchsz: 2560 | ||
gpuid: 0 | ||
ntwshr: 0 | ||
nkde: 2 | ||
energy: 1 | ||
force: 0 | ||
fmult: 0.0 | ||
pbc: 0 | ||
cmult: 0.001 | ||
runtype: 'ANNP_CREATE_HDNN_AND_TRAIN' # Create and train a HDN network | ||
|
||
network_setup: | ||
inputsize: 384 | ||
atom_net: | ||
H: | ||
- nodes: 160 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.0001 | ||
- nodes: 128 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.00001 | ||
- nodes: 96 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.000001 | ||
- nodes: 1 | ||
activation: 6 | ||
type: 0 | ||
C: | ||
- nodes: 144 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.0001 | ||
- nodes: 112 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.00001 | ||
- nodes: 96 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.000001 | ||
- nodes: 1 | ||
activation: 6 | ||
type: 0 | ||
N: | ||
- nodes: 128 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.0001 | ||
- nodes: 112 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.00001 | ||
- nodes: 96 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.000001 | ||
- nodes: 1 | ||
activation: 6 | ||
type: 0 | ||
O: | ||
- nodes: 128 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.0001 | ||
- nodes: 112 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.00001 | ||
- nodes: 96 | ||
activation: 9 | ||
type: 0 | ||
# l2norm: 1 | ||
# l2valu: 0.000001 | ||
- nodes: 1 | ||
activation: 6 | ||
type: 0 | ||
|
||
adptlrn: 'OFF' # Adaptive learning (OFF,RMSPROP) | ||
decrate: 0.9 # Decay rate of RMSPROP | ||
moment: 'ADAM' # Turn on momentum or nesterov momentum (OFF,CNSTTEMP,TMANNEAL,REGULAR,NESTEROV) | ||
mu: 0.99 # Mu factor for momentum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters