Skip to content

Commit

Permalink
Revert the other half of the changes - again, to do the "right thing".
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Jan 9, 2014
1 parent 621b42a commit e1597ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hex/Layer.java
Original file line number Diff line number Diff line change
Expand Up @@ -924,9 +924,9 @@ public Rectifier(int units) {
float g = 0;
if( _a[u] > 0 ) { // don't use >=
g = _e[u];
} else if (l1 == 0 && l2 == 0) continue; //nothing to do
bprop(u, g, r, m);
}

bprop(u, g, r, m);
}
}
}
Expand Down Expand Up @@ -973,10 +973,10 @@ public RectifierDropout(int units) {
for( int i = 0; i < _previous._a.length; i++ ) {
_a[o] += _w[o * _previous._a.length + i] * _previous._a[i];
}
_a[o] += _b[o];
if( !training ) {
_a[o] *= .5f;
}
_a[o] += _b[o];
if( _a[o] < 0 )
_a[o] = 0;
}
Expand Down

0 comments on commit e1597ed

Please sign in to comment.