Keras nets - #44
Open
hunse wants to merge 4 commits into
Open
Conversation
TODO: - test Conv2d layer Theano code
TODO: - Subtract out data mean for training (remove scaling too?)
Seanny123
suggested changes
Jun 1, 2017
| X_train, X_test = preprocess(X_train), preprocess(X_test) | ||
|
|
||
| data_mean = np.zeros_like(X_train[0]) | ||
| # data_mean = X_train.mean(axis=0) |
| from __future__ import print_function | ||
|
|
||
| import os | ||
| os.environ['THEANO_FLAGS'] = 'device=gpu,floatX=float32' |
Contributor
There was a problem hiding this comment.
Given that Keras is back-end agnostic, are these Theano flags necessary?
Contributor
Author
There was a problem hiding this comment.
Yes, because I run my Keras with Theano. I'm not sure what the best way to do this is. Maybe comment it out and let people uncomment it if they're using Theano on a GPU.
|
|
||
| n_presentations = 100 | ||
|
|
||
| if 0: |
Contributor
There was a problem hiding this comment.
So this code is never going to be run?
Contributor
Author
There was a problem hiding this comment.
That's what I do when I have optional things, that myself or others might want to play around with.
Contributor
Author
|
Two of the commits I still have marked WIP. |
Contributor
|
Oh jeez, I'm sorry for bothering you with a premature review. I only realized afterwards the commits were marked WIP. My bad. :( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improvements for networks in Keras.