src/convnet_layers_normalization.js
function(opt) {
    var opt = opt || {};

    // required
    this.k = opt.k;
    this.n = opt.n;
    this.alpha = opt.alpha;
    this.beta = opt.beta;

    // computed
    this.out_sx = opt.in_sx;
    this.out_sy = opt.in_sy;
    this.out_depth = opt.in_depth;
    this.layer_type = 'lrn';

    // checks
    if(this.n%2 === 0) { console.log('WARNING n should be odd for LRN layer'); }
  }
function(opt) {
    var opt = opt || {};

    // required
    this.k = opt.k;
    this.n = opt.n;
    this.alpha = opt.alpha;
    this.beta = opt.beta;

    // computed
    this.out_sx = opt.in_sx;
    this.out_sy = opt.in_sy;
    this.out_depth = opt.in_depth;
    this.layer_type = 'lrn';

    // checks
    if(this.n%2 === 0) { console.log('WARNING n should be odd for LRN layer'); }
  }
function ( opt ) { var opt = opt || { } ; // required this . k = opt . k ; this . n = opt . n ; this . alpha = opt . alpha ; this . beta = opt . beta ; // computed this . out_sx = opt . in_sx ; this . out_sy = opt . in_sy ; this . out_depth = opt . in_depth ; this . layer_type = 'lrn' ; // checks if ( this . n % 2 === 0 ) { console . log ( 'WARNING n should be odd for LRN layer' ) ; } }
a bit experimental layer for now. I think it works but I'm not 100% the gradient check is a bit funky. I'll look into this a bit later. Local Response Normalization in window, along depths of volumes
a bit experimental layer for now . I think it works but I m not 100% the gradient check is a bit funky . I ll look into this a bit later . Local Response Normalization in window along depths of volumes