Skip to content
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

Disregarding model.compile() #1

Open
franciscogmm opened this issue Nov 21, 2017 · 1 comment
Open

Disregarding model.compile() #1

franciscogmm opened this issue Nov 21, 2017 · 1 comment

Comments

@franciscogmm
Copy link

Posted this on https://threads-iiith.quora.com/Neuro-Evolution-with-Flappy-Bird-Genetic-Evolution-on-Neural-Networks:

Thanks for this!! I thought I’d get stuck with Pybrain because I never figured out how to do the same with Keras. I didn’t know that you could disregard the optimizer and cost function even if it is implemented.

Question re the quote below:

“Often you would also be required to define a loss function and an optimizer to train the network via back-propagation (but here we don’t need to perform back-propagation, so we can just ignore this part).”

Why did you still define the sgd and mode.comile()?

Is it because you’re not calling .fit() before the .predict()? Thanks!

@AroMorin
Copy link

I think, and I can be completely wrong here, that Keras doesn't actually go ahead and make the network UNLESS you compile it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants