We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7a5b4 commit 7342233Copy full SHA for 7342233
mnist_data.py
@@ -84,9 +84,8 @@ def expend_training_data(images, labels):
84
expanded_labels.append(y)
85
86
# get a value for the background
87
- # zero is not the value, since
88
- bg_value = numpy.median(x) # this is regarded as background's value
89
- #bg_value = (PIXEL_DEPTH / 2.0)
+ # zero is the expected value, but median() is used to estimate background's value
+ bg_value = numpy.median(x) # this is regarded as background's value
90
image = numpy.reshape(x, (-1, 28))
91
92
for i in range(4):
0 commit comments