Commit Graph

11 Commits

Author SHA1 Message Date
ekerazha
cf9922ff1d Fix broken imdb_cnn example (#3244)
* Fix broken imdb_cnn example

* Update imdb_cnn fix
2016-07-19 12:18:59 -07:00
Francois Chollet
610ccba9f5 Normalize layer imports in examples 2016-05-11 18:45:37 -07:00
Daniele Bonadiman
85f80714c2 Max Over Time in imdb_cnn.py (#2320)
* Max Over Time in imdb_cnn.py

Following this issue https://github.com/fchollet/keras/issues/2296 i propose this PR.
The mayor optimisation a part of the Max over time are:

- Dropout in the Embedding layer.
- Longer input sequences (400 instead of 100), made possible from the speedup of the Max Over Time.
- Adam optimizer.

Overall it takes 90 to 100 sec per epoch on my laptop CPU and in two epochs it reaches 0.885 accuracy that is a 5 points improvement over the previous implementation. Moreover it requires less memory (300k parameters vs 3M+) since the number of parameters do not depend  by the length of the input sequence anymore.

* Update imdb_cnn.py
2016-04-14 13:22:06 -07:00
Francois Chollet
295bfe4e3a Keras 1.0 preview. 2016-03-31 11:35:27 -07:00
Francois Chollet
0c1af0901d Remove class_mode, add support for acc in Graph 2016-03-11 17:29:17 -08:00
Francois Chollet
81787dd2bb Cleanup examples 2015-12-08 18:49:14 -08:00
Francois Chollet
71c6c83e30 Update examples. 2015-11-28 16:34:52 -08:00
Makoto Matsuyama
cb77f7d7e2 Incorporate image_shape and filter_shape in convs 2015-10-05 13:02:31 -07:00
Makoto Matsuyama
c60e2dfbdb Update (most) automated tests. 2015-10-05 07:09:44 -07:00
Makoto Matsuyama
2bd4c295d6 Update all examples with new API 2015-10-04 18:44:49 -07:00
fchollet
c8a2f46f79 Rename IMDB CNN example 2015-07-15 12:35:56 +09:00