Skip to content

Commit

Permalink
is this normalizing ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragav Venkatesan committed Jan 24, 2017
1 parent 581600e commit 0937385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yann/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,8 @@ def preprocessing( data, height, width, channels, args):
data = numpy.reshape(data,out_shp)
if mean_subtract is True:
if normalize is True or ZCA is True:
data = (data - data.mean()) / (data.max() + 1e-7)
data = data / (data.max() + 1e-7)
data = data - data.mean()
# do this normalization thing in batch mode.
else:
if normalize is True or ZCA is True:
Expand Down

0 comments on commit 0937385

Please sign in to comment.