-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add keras mnist demo #238
Add keras mnist demo #238
Conversation
demo/keras/TUTORIAL_CN.md
Outdated
<img width="70%" src="https://github.com/daming-lu/large_files/blob/master/keras_demo_figs/keras_scalar.png?raw=true" /> | ||
</p> | ||
|
||
训练过后的第一,第二层卷积权重图的如下: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use an image component to visualize training image. Both the two images lacks information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
image1.finish_sampling() | ||
|
||
train_step += 1 | ||
self.losses.append(logs.get('loss')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats this used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed as it is not very related to this demo.
demo/keras/TUTORIAL_CN.md
Outdated
# create a scalar component called 'scalars/' | ||
scalar_keras_train_loss = logger.scalar( | ||
"scalars/scalar_keras_train_loss") | ||
image0 = logger.image("images/image0", 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to prefix with "images/"? Isn't this graph only going to show up in images section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'images/' is showing that we can group metrics by namespace, which will be implemented in the future.
demo/keras/TUTORIAL_CN.md
Outdated
"scalars/scalar_keras_train_loss") | ||
image0 = logger.image("images/image0", 1) | ||
image1 = logger.image("images/image1", 1) | ||
histogram0 = logger.histogram("histogram/histogram0", num_buckets=50) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, why do we need "histogram/" prefix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.