IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40335


Ignore:
Timestamp:
Jan 31, 2018, 9:52:56 AM (8 years ago)
Author:
eugene
Message:

add tests

Location:
trunk/Ohana/src/opihi/cmd.data/test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/test/nnet.sh

    r40325 r40335  
    162162
    163163# -large-weight-initializer : revert to original implementation
    164   nnet create tn 2 2
    165 # nnet create tn 2 2 -large-weight-initializer
     164# nnet create tn 2 2
     165  nnet create tn 2 2 -large-weight-initializer
    166166
    167167# -quadratic-cost : revert to original implementation
    168   nnet train tn x0 x1 y0 y1 -Nmini $Nmini -Nepoch $Nepoch -eta $eta -lambda 0.0 -quadratic-cost
     168  nnet train tn x0 x1 y0 y1 -Nmini $Nmini -Nepoch $Nepoch -eta $eta -lambda 0.0 -quadratic-cost -resid resid -result result
    169169# nnet train tn x0 x1 y0 y1 -Nmini $Nmini -Nepoch $Nepoch -eta $eta -lambda 0.0
    170170# nnet train tn x0 x1 y0 y1 -Nmini $Nmini -Nepoch $Nepoch -eta $eta -lambda 2.0
     
    240240
    241241  # set weights and biases
    242   nnet set t1 m1 v1 m1 v1
     242  nnet set t1 m1 v1 m2 v2
    243243
    244244  # generate an input set spanning the range -5 to +5
     
    256256
    257257# nnet train tn x0 x1 x2 y0 y1 y2 -Nmini $Nmini -Nepoch $Nepoch -eta $eta -lambda 0.1
    258   nnet train tn x0 x1 x2 y0 y1 y2 -Nmini $Nmini -Nepoch $Nepoch -eta $eta -lambda 0.0 -quadratic-cost
     258  nnet train tn x0 x1 x2 y0 y1 y2 -Nmini $Nmini -Nepoch $Nepoch -eta $eta -lambda 0.0 -quadratic-cost -resid dS -result result
    259259
    260260  nnet apply tn x0 x1 x2 Y0 Y1 Y2
Note: See TracChangeset for help on using the changeset viewer.