IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2018, 1:09:32 PM (8 years ago)
Author:
eugene
Message:

updated nnet to include better init, L2 regularization, cross-entropy cost function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/nnet_commands.c

    r40320 r40325  
    3636int nnet_create (int argc, char **argv) {
    3737
     38  int N;
     39
     40  int LargeWeightInit = FALSE;
     41  if ((N = get_argument (argc, argv, "-large-weight-initializer"))) {
     42    remove_argument (N, &argc, argv);
     43    LargeWeightInit = TRUE;   
     44  }
     45
    3846  if (argc < 4) {
    3947    gprint (GP_ERR, "USAGE: nnet create (nnet) (Ninput) [Nnodes] [Nnodes] ... (Noutput)\n");
     
    5260
    5361  // allocate the vector and matrix data arrays (and init)
    54   CreateNnetData (nnet);
     62  CreateNnetData (nnet, LargeWeightInit);
    5563
    5664  return TRUE;
Note: See TracChangeset for help on using the changeset viewer.