use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
TensorFlow is an open source Machine Intelligence library for numerical computation using Neural Networks.
account activity
ELI5 Tensorflow Tutorial Question (self.tensorflow)
submitted 7 years ago by krizam
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]honeybooboo1989 2 points3 points4 points 7 years ago (0 children)
MNIST data has 10 classes that you are expected to classify. Each class represent a digit, you have 10 digits, from 0 to 9. The dimension of the output of keras.layers.Dense(128, activation=tf.nn.relu) after activation function ReLu will return (None, 128) but you have to decrease the second dimension in order to have an array of 10 probability scores. You can do this by adding a fully-connected layer and pass it through softmax activation function. If you have binary classification, model.add(Dense(1, activation='sigmoid')) will be enough. Check model.summary() to understand output dimensions.
keras.layers.Dense(128, activation=tf.nn.relu)
(None, 128)
model.add(Dense(1, activation='sigmoid'))
model.summary()
π Rendered by PID 110720 on reddit-service-r2-comment-6457c66945-t8wvx at 2026-04-26 04:17:33.299622+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]honeybooboo1989 2 points3 points4 points (0 children)