Skip to content

Keras nets - #44

Open
hunse wants to merge 4 commits into
masterfrom
keras-nets
Open

Keras nets#44
hunse wants to merge 4 commits into
masterfrom
keras-nets

Conversation

@hunse

@hunse hunse commented May 10, 2017

Copy link
Copy Markdown
Contributor

Improvements for networks in Keras.

hunse added 4 commits May 10, 2017 12:09
TODO:
- test Conv2d layer Theano code
TODO:
- Subtract out data mean for training (remove scaling too?)

@Seanny123 Seanny123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a little cleanup, but looks legit. Was this a WIP?

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some leftover comments.

from __future__ import print_function

import os
os.environ['THEANO_FLAGS'] = 'device=gpu,floatX=float32'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that Keras is back-end agnostic, are these Theano flags necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this code is never going to be run?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what I do when I have optional things, that myself or others might want to play around with.

@hunse

hunse commented Jun 1, 2017

Copy link
Copy Markdown
Contributor Author

Two of the commits I still have marked WIP.

@Seanny123

Copy link
Copy Markdown
Contributor

Oh jeez, I'm sorry for bothering you with a premature review. I only realized afterwards the commits were marked WIP. My bad. :(

@Seanny123 Seanny123 changed the title Keras nets WIP: Keras nets Jun 2, 2017
@Seanny123 Seanny123 changed the title WIP: Keras nets Keras nets Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants