keras 2.2.3__tar.gz → 2.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. {Keras-2.2.3 → Keras-2.2.4/Keras.egg-info}/PKG-INFO +2 -2
  2. {Keras-2.2.3/Keras.egg-info → Keras-2.2.4}/PKG-INFO +2 -2
  3. {Keras-2.2.3 → Keras-2.2.4}/docs/autogen.py +1 -0
  4. {Keras-2.2.3 → Keras-2.2.4}/keras/__init__.py +1 -1
  5. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/sequential.py +3 -0
  6. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/training_generator.py +2 -1
  7. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/io_utils.py +4 -2
  8. {Keras-2.2.3 → Keras-2.2.4}/setup.py +2 -2
  9. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/backend/backend_test.py +17 -18
  10. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/backend/reference_operations.py +20 -0
  11. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/engine/test_training.py +13 -0
  12. {Keras-2.2.3 → Keras-2.2.4}/tests/test_model_saving.py +23 -0
  13. {Keras-2.2.3 → Keras-2.2.4}/CONTRIBUTING.md +0 -0
  14. {Keras-2.2.3 → Keras-2.2.4}/Keras.egg-info/SOURCES.txt +0 -0
  15. {Keras-2.2.3 → Keras-2.2.4}/Keras.egg-info/dependency_links.txt +0 -0
  16. {Keras-2.2.3 → Keras-2.2.4}/Keras.egg-info/requires.txt +0 -0
  17. {Keras-2.2.3 → Keras-2.2.4}/Keras.egg-info/top_level.txt +0 -0
  18. {Keras-2.2.3 → Keras-2.2.4}/LICENSE +0 -0
  19. {Keras-2.2.3 → Keras-2.2.4}/MANIFEST.in +0 -0
  20. {Keras-2.2.3 → Keras-2.2.4}/README.md +0 -0
  21. {Keras-2.2.3 → Keras-2.2.4}/docs/README.md +0 -0
  22. {Keras-2.2.3 → Keras-2.2.4}/docs/__init__.py +0 -0
  23. {Keras-2.2.3 → Keras-2.2.4}/docs/__init__.pyc +0 -0
  24. {Keras-2.2.3 → Keras-2.2.4}/docs/autogen.pyc +0 -0
  25. {Keras-2.2.3 → Keras-2.2.4}/docs/mkdocs.yml +0 -0
  26. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/activations.md +0 -0
  27. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/applications.md +0 -0
  28. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/backend.md +0 -0
  29. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/callbacks.md +0 -0
  30. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/constraints.md +0 -0
  31. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/datasets.md +0 -0
  32. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/getting-started/faq.md +0 -0
  33. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/getting-started/functional-api-guide.md +0 -0
  34. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/getting-started/sequential-model-guide.md +0 -0
  35. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/index.md +0 -0
  36. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/initializers.md +0 -0
  37. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/layers/about-keras-layers.md +0 -0
  38. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/layers/writing-your-own-keras-layers.md +0 -0
  39. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/losses.md +0 -0
  40. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/metrics.md +0 -0
  41. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/models/about-keras-models.md +0 -0
  42. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/models/model.md +0 -0
  43. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/models/sequential.md +0 -0
  44. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/optimizers.md +0 -0
  45. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/preprocessing/image.md +0 -0
  46. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/preprocessing/text.md +0 -0
  47. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/regularizers.md +0 -0
  48. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/scikit-learn-api.md +0 -0
  49. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/visualization.md +0 -0
  50. {Keras-2.2.3 → Keras-2.2.4}/docs/templates/why-use-keras.md +0 -0
  51. {Keras-2.2.3 → Keras-2.2.4}/examples/README.md +0 -0
  52. {Keras-2.2.3 → Keras-2.2.4}/examples/addition_rnn.py +0 -0
  53. {Keras-2.2.3 → Keras-2.2.4}/examples/antirectifier.py +0 -0
  54. {Keras-2.2.3 → Keras-2.2.4}/examples/babi_memnn.py +0 -0
  55. {Keras-2.2.3 → Keras-2.2.4}/examples/babi_rnn.py +0 -0
  56. {Keras-2.2.3 → Keras-2.2.4}/examples/cifar10_cnn.py +0 -0
  57. {Keras-2.2.3 → Keras-2.2.4}/examples/cifar10_cnn_capsule.py +0 -0
  58. {Keras-2.2.3 → Keras-2.2.4}/examples/cifar10_cnn_tfaugment2d.py +0 -0
  59. {Keras-2.2.3 → Keras-2.2.4}/examples/cifar10_resnet.py +0 -0
  60. {Keras-2.2.3 → Keras-2.2.4}/examples/conv_filter_visualization.py +0 -0
  61. {Keras-2.2.3 → Keras-2.2.4}/examples/conv_lstm.py +0 -0
  62. {Keras-2.2.3 → Keras-2.2.4}/examples/deep_dream.py +0 -0
  63. {Keras-2.2.3 → Keras-2.2.4}/examples/image_ocr.py +0 -0
  64. {Keras-2.2.3 → Keras-2.2.4}/examples/imdb_bidirectional_lstm.py +0 -0
  65. {Keras-2.2.3 → Keras-2.2.4}/examples/imdb_cnn.py +0 -0
  66. {Keras-2.2.3 → Keras-2.2.4}/examples/imdb_cnn_lstm.py +0 -0
  67. {Keras-2.2.3 → Keras-2.2.4}/examples/imdb_fasttext.py +0 -0
  68. {Keras-2.2.3 → Keras-2.2.4}/examples/imdb_lstm.py +0 -0
  69. {Keras-2.2.3 → Keras-2.2.4}/examples/lstm_seq2seq.py +0 -0
  70. {Keras-2.2.3 → Keras-2.2.4}/examples/lstm_seq2seq_restore.py +0 -0
  71. {Keras-2.2.3 → Keras-2.2.4}/examples/lstm_stateful.py +0 -0
  72. {Keras-2.2.3 → Keras-2.2.4}/examples/lstm_text_generation.py +0 -0
  73. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_acgan.py +0 -0
  74. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_cnn.py +0 -0
  75. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_dataset_api.py +0 -0
  76. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_denoising_autoencoder.py +0 -0
  77. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_hierarchical_rnn.py +0 -0
  78. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_irnn.py +0 -0
  79. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_mlp.py +0 -0
  80. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_net2net.py +0 -0
  81. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_siamese.py +0 -0
  82. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_sklearn_wrapper.py +0 -0
  83. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_swwae.py +0 -0
  84. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_tfrecord.py +0 -0
  85. {Keras-2.2.3 → Keras-2.2.4}/examples/mnist_transfer_cnn.py +0 -0
  86. {Keras-2.2.3 → Keras-2.2.4}/examples/neural_doodle.py +0 -0
  87. {Keras-2.2.3 → Keras-2.2.4}/examples/neural_style_transfer.py +0 -0
  88. {Keras-2.2.3 → Keras-2.2.4}/examples/pretrained_word_embeddings.py +0 -0
  89. {Keras-2.2.3 → Keras-2.2.4}/examples/reuters_mlp.py +0 -0
  90. {Keras-2.2.3 → Keras-2.2.4}/examples/reuters_mlp_relu_vs_selu.py +0 -0
  91. {Keras-2.2.3 → Keras-2.2.4}/examples/tensorboard_embeddings_mnist.py +0 -0
  92. {Keras-2.2.3 → Keras-2.2.4}/examples/variational_autoencoder.py +0 -0
  93. {Keras-2.2.3 → Keras-2.2.4}/examples/variational_autoencoder_deconv.py +0 -0
  94. {Keras-2.2.3 → Keras-2.2.4}/keras/activations.py +0 -0
  95. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/__init__.py +0 -0
  96. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/densenet.py +0 -0
  97. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/imagenet_utils.py +0 -0
  98. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/inception_resnet_v2.py +0 -0
  99. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/inception_v3.py +0 -0
  100. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/mobilenet.py +0 -0
  101. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/mobilenet_v2.py +0 -0
  102. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/mobilenetv2.py +0 -0
  103. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/nasnet.py +0 -0
  104. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/resnet50.py +0 -0
  105. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/vgg16.py +0 -0
  106. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/vgg19.py +0 -0
  107. {Keras-2.2.3 → Keras-2.2.4}/keras/applications/xception.py +0 -0
  108. {Keras-2.2.3 → Keras-2.2.4}/keras/backend/__init__.py +0 -0
  109. {Keras-2.2.3 → Keras-2.2.4}/keras/backend/cntk_backend.py +0 -0
  110. {Keras-2.2.3 → Keras-2.2.4}/keras/backend/common.py +0 -0
  111. {Keras-2.2.3 → Keras-2.2.4}/keras/backend/tensorflow_backend.py +0 -0
  112. {Keras-2.2.3 → Keras-2.2.4}/keras/backend/theano_backend.py +0 -0
  113. {Keras-2.2.3 → Keras-2.2.4}/keras/callbacks.py +0 -0
  114. {Keras-2.2.3 → Keras-2.2.4}/keras/constraints.py +0 -0
  115. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/__init__.py +0 -0
  116. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/boston_housing.py +0 -0
  117. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/cifar.py +0 -0
  118. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/cifar10.py +0 -0
  119. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/cifar100.py +0 -0
  120. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/fashion_mnist.py +0 -0
  121. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/imdb.py +0 -0
  122. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/mnist.py +0 -0
  123. {Keras-2.2.3 → Keras-2.2.4}/keras/datasets/reuters.py +0 -0
  124. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/__init__.py +0 -0
  125. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/base_layer.py +0 -0
  126. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/input_layer.py +0 -0
  127. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/network.py +0 -0
  128. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/saving.py +0 -0
  129. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/topology.py +0 -0
  130. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/training.py +0 -0
  131. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/training_arrays.py +0 -0
  132. {Keras-2.2.3 → Keras-2.2.4}/keras/engine/training_utils.py +0 -0
  133. {Keras-2.2.3 → Keras-2.2.4}/keras/initializers.py +0 -0
  134. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/__init__.py +0 -0
  135. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/advanced_activations.py +0 -0
  136. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/convolutional.py +0 -0
  137. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/convolutional_recurrent.py +0 -0
  138. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/core.py +0 -0
  139. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/cudnn_recurrent.py +0 -0
  140. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/embeddings.py +0 -0
  141. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/local.py +0 -0
  142. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/merge.py +0 -0
  143. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/noise.py +0 -0
  144. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/normalization.py +0 -0
  145. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/pooling.py +0 -0
  146. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/recurrent.py +0 -0
  147. {Keras-2.2.3 → Keras-2.2.4}/keras/layers/wrappers.py +0 -0
  148. {Keras-2.2.3 → Keras-2.2.4}/keras/legacy/__init__.py +0 -0
  149. {Keras-2.2.3 → Keras-2.2.4}/keras/legacy/interfaces.py +0 -0
  150. {Keras-2.2.3 → Keras-2.2.4}/keras/legacy/layers.py +0 -0
  151. {Keras-2.2.3 → Keras-2.2.4}/keras/losses.py +0 -0
  152. {Keras-2.2.3 → Keras-2.2.4}/keras/metrics.py +0 -0
  153. {Keras-2.2.3 → Keras-2.2.4}/keras/models.py +0 -0
  154. {Keras-2.2.3 → Keras-2.2.4}/keras/objectives.py +0 -0
  155. {Keras-2.2.3 → Keras-2.2.4}/keras/optimizers.py +0 -0
  156. {Keras-2.2.3 → Keras-2.2.4}/keras/preprocessing/__init__.py +0 -0
  157. {Keras-2.2.3 → Keras-2.2.4}/keras/preprocessing/image.py +0 -0
  158. {Keras-2.2.3 → Keras-2.2.4}/keras/preprocessing/sequence.py +0 -0
  159. {Keras-2.2.3 → Keras-2.2.4}/keras/preprocessing/text.py +0 -0
  160. {Keras-2.2.3 → Keras-2.2.4}/keras/regularizers.py +0 -0
  161. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/__init__.py +0 -0
  162. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/conv_utils.py +0 -0
  163. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/data_utils.py +0 -0
  164. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/generic_utils.py +0 -0
  165. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/layer_utils.py +0 -0
  166. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/multi_gpu_utils.py +0 -0
  167. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/np_utils.py +0 -0
  168. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/test_utils.py +0 -0
  169. {Keras-2.2.3 → Keras-2.2.4}/keras/utils/vis_utils.py +0 -0
  170. {Keras-2.2.3 → Keras-2.2.4}/keras/wrappers/__init__.py +0 -0
  171. {Keras-2.2.3 → Keras-2.2.4}/keras/wrappers/scikit_learn.py +0 -0
  172. {Keras-2.2.3 → Keras-2.2.4}/setup.cfg +0 -0
  173. {Keras-2.2.3 → Keras-2.2.4}/tests/__pycache__/test_doc_auto_generation.cpython-27-PYTEST.pyc +0 -0
  174. {Keras-2.2.3 → Keras-2.2.4}/tests/__pycache__/test_documentation.cpython-27-PYTEST.pyc +0 -0
  175. {Keras-2.2.3 → Keras-2.2.4}/tests/__pycache__/test_dynamic_trainability.cpython-27-PYTEST.pyc +0 -0
  176. {Keras-2.2.3 → Keras-2.2.4}/tests/__pycache__/test_loss_masking.cpython-27-PYTEST.pyc +0 -0
  177. {Keras-2.2.3 → Keras-2.2.4}/tests/__pycache__/test_loss_weighting.cpython-27-PYTEST.pyc +0 -0
  178. {Keras-2.2.3 → Keras-2.2.4}/tests/__pycache__/test_model_saving.cpython-27-PYTEST.pyc +0 -0
  179. {Keras-2.2.3 → Keras-2.2.4}/tests/__pycache__/test_multiprocessing.cpython-27-PYTEST.pyc +0 -0
  180. {Keras-2.2.3 → Keras-2.2.4}/tests/conftest.py +0 -0
  181. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/__pycache__/applications_test.cpython-27-PYTEST.pyc +0 -0
  182. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/__pycache__/imagenet_utils_test.cpython-27-PYTEST.pyc +0 -0
  183. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/__pycache__/test_datasets.cpython-27-PYTEST.pyc +0 -0
  184. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/__pycache__/test_image_data_tasks.cpython-27-PYTEST.pyc +0 -0
  185. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/__pycache__/test_temporal_data_tasks.cpython-27-PYTEST.pyc +0 -0
  186. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/__pycache__/test_vector_data_tasks.cpython-27-PYTEST.pyc +0 -0
  187. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/applications_test.py +0 -0
  188. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/imagenet_utils_test.py +0 -0
  189. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/preprocessing/image_test.py +0 -0
  190. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/preprocessing/sequence_test.py +0 -0
  191. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/preprocessing/text_test.py +0 -0
  192. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/test_datasets.py +0 -0
  193. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/test_image_data_tasks.py +0 -0
  194. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/test_temporal_data_tasks.py +0 -0
  195. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/test_tensorflow_integration.py +0 -0
  196. {Keras-2.2.3 → Keras-2.2.4}/tests/integration_tests/test_vector_data_tasks.py +0 -0
  197. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/activations_test.cpython-27-PYTEST.pyc +0 -0
  198. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/constraints_test.cpython-27-PYTEST.pyc +0 -0
  199. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/initializers_test.cpython-27-PYTEST.pyc +0 -0
  200. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/losses_test.cpython-27-PYTEST.pyc +0 -0
  201. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/metrics_test.cpython-27-PYTEST.pyc +0 -0
  202. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/optimizers_test.cpython-27-PYTEST.pyc +0 -0
  203. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/regularizers_test.cpython-27-PYTEST.pyc +0 -0
  204. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/test_callbacks.cpython-27-PYTEST.pyc +0 -0
  205. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/__pycache__/test_sequential_model.cpython-27-PYTEST.pyc +0 -0
  206. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/activations_test.py +0 -0
  207. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/backend/__pycache__/backend_test.cpython-27-PYTEST.pyc +0 -0
  208. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/backend/reference_operations.pyc +0 -0
  209. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/constraints_test.py +0 -0
  210. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/engine/__pycache__/test_topology.cpython-27-PYTEST.pyc +0 -0
  211. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/engine/__pycache__/test_training.cpython-27-PYTEST.pyc +0 -0
  212. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/engine/test_topology.py +0 -0
  213. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/initializers_test.py +0 -0
  214. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/advanced_activations_test.cpython-27-PYTEST.pyc +0 -0
  215. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/convolutional_recurrent_test.cpython-27-PYTEST.pyc +0 -0
  216. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/convolutional_test.cpython-27-PYTEST.pyc +0 -0
  217. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/core_test.cpython-27-PYTEST.pyc +0 -0
  218. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/cudnn_recurrent_test.cpython-27-PYTEST.pyc +0 -0
  219. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/embeddings_test.cpython-27-PYTEST.pyc +0 -0
  220. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/local_test.cpython-27-PYTEST.pyc +0 -0
  221. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/merge_test.cpython-27-PYTEST.pyc +0 -0
  222. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/noise_test.cpython-27-PYTEST.pyc +0 -0
  223. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/normalization_test.cpython-27-PYTEST.pyc +0 -0
  224. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/recurrent_test.cpython-27-PYTEST.pyc +0 -0
  225. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/__pycache__/wrappers_test.cpython-27-PYTEST.pyc +0 -0
  226. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/advanced_activations_test.py +0 -0
  227. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/convolutional_recurrent_test.py +0 -0
  228. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/convolutional_test.py +0 -0
  229. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/core_test.py +0 -0
  230. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/cudnn_recurrent_test.py +0 -0
  231. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/embeddings_test.py +0 -0
  232. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/local_test.py +0 -0
  233. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/merge_test.py +0 -0
  234. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/noise_test.py +0 -0
  235. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/normalization_test.py +0 -0
  236. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/pooling_test.py +0 -0
  237. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/recurrent_test.py +0 -0
  238. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/layers/wrappers_test.py +0 -0
  239. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/legacy/__pycache__/interface_test.cpython-27-PYTEST.pyc +0 -0
  240. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/legacy/__pycache__/layers_test.cpython-27-PYTEST.pyc +0 -0
  241. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/legacy/interface_test.py +0 -0
  242. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/legacy/layers_test.py +0 -0
  243. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/losses_test.py +0 -0
  244. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/metrics_test.py +0 -0
  245. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/optimizers_test.py +0 -0
  246. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/preprocessing/__pycache__/image_test.cpython-27-PYTEST.pyc +0 -0
  247. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/preprocessing/__pycache__/sequence_test.cpython-27-PYTEST.pyc +0 -0
  248. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/preprocessing/__pycache__/text_test.cpython-27-PYTEST.pyc +0 -0
  249. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/regularizers_test.py +0 -0
  250. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/test_callbacks.py +0 -0
  251. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/test_sequential_model.py +0 -0
  252. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/conv_utils_test.cpython-27-PYTEST.pyc +0 -0
  253. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/data_utils_test.cpython-27-PYTEST.pyc +0 -0
  254. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/generic_utils_test.cpython-27-PYTEST.pyc +0 -0
  255. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/io_utils_test.cpython-27-PYTEST.pyc +0 -0
  256. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/layer_utils_test.cpython-27-PYTEST.pyc +0 -0
  257. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/multi_gpu_test.cpython-27-PYTEST.pyc +0 -0
  258. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/np_utils_test.cpython-27-PYTEST.pyc +0 -0
  259. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/__pycache__/vis_utils_test.cpython-27-PYTEST.pyc +0 -0
  260. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/conv_utils_test.py +0 -0
  261. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/data_utils_test.py +0 -0
  262. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/generic_utils_test.py +0 -0
  263. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/io_utils_test.py +0 -0
  264. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/layer_utils_test.py +0 -0
  265. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/multi_gpu_test.py +0 -0
  266. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/np_utils_test.py +0 -0
  267. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/utils/vis_utils_test.py +0 -0
  268. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/wrappers/__pycache__/scikit_learn_test.cpython-27-PYTEST.pyc +0 -0
  269. {Keras-2.2.3 → Keras-2.2.4}/tests/keras/wrappers/scikit_learn_test.py +0 -0
  270. {Keras-2.2.3 → Keras-2.2.4}/tests/test_doc_auto_generation.py +0 -0
  271. {Keras-2.2.3 → Keras-2.2.4}/tests/test_documentation.py +0 -0
  272. {Keras-2.2.3 → Keras-2.2.4}/tests/test_dynamic_trainability.py +0 -0
  273. {Keras-2.2.3 → Keras-2.2.4}/tests/test_loss_masking.py +0 -0
  274. {Keras-2.2.3 → Keras-2.2.4}/tests/test_loss_weighting.py +0 -0
  275. {Keras-2.2.3 → Keras-2.2.4}/tests/test_model_pickling.py +0 -0
  276. {Keras-2.2.3 → Keras-2.2.4}/tests/test_multiprocessing.py +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Keras
3
- Version: 2.2.3
3
+ Version: 2.2.4
4
4
  Summary: Deep Learning for humans
5
5
  Home-page: https://github.com/keras-team/keras
6
6
  Author: Francois Chollet
7
7
  Author-email: francois.chollet@gmail.com
8
8
  License: MIT
9
- Download-URL: https://github.com/keras-team/keras/tarball/2.2.3
9
+ Download-URL: https://github.com/keras-team/keras/tarball/2.2.4
10
10
  Description:
11
11
  Keras is a high-level neural networks API,
12
12
  written in Python and capable of running on top of
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Keras
3
- Version: 2.2.3
3
+ Version: 2.2.4
4
4
  Summary: Deep Learning for humans
5
5
  Home-page: https://github.com/keras-team/keras
6
6
  Author: Francois Chollet
7
7
  Author-email: francois.chollet@gmail.com
8
8
  License: MIT
9
- Download-URL: https://github.com/keras-team/keras/tarball/2.2.3
9
+ Download-URL: https://github.com/keras-team/keras/tarball/2.2.4
10
10
  Description:
11
11
  Keras is a high-level neural networks API,
12
12
  written in Python and capable of running on top of
@@ -174,6 +174,7 @@ PAGES = [
174
174
  layers.SeparableConv2D,
175
175
  layers.Conv2DTranspose,
176
176
  layers.Conv3D,
177
+ layers.Conv3DTranspose,
177
178
  layers.Cropping1D,
178
179
  layers.Cropping2D,
179
180
  layers.Cropping3D,
@@ -23,4 +23,4 @@ from .layers import Input
23
23
  from .models import Model
24
24
  from .models import Sequential
25
25
 
26
- __version__ = '2.2.3'
26
+ __version__ = '2.2.4'
@@ -291,6 +291,9 @@ class Sequential(Model):
291
291
  name = config['name']
292
292
  build_input_shape = config.get('build_input_shape')
293
293
  layer_configs = config['layers']
294
+ else: # legacy config file
295
+ name = build_input_shape = None
296
+ layer_configs = config
294
297
  model = cls(name=name)
295
298
  for conf in layer_configs:
296
299
  layer = layer_module.deserialize(conf,
@@ -124,7 +124,8 @@ def fit_generator(model,
124
124
  elif val_gen:
125
125
  val_data = validation_data
126
126
  if isinstance(val_data, Sequence):
127
- val_enqueuer_gen = iter_sequence_infinite(generator)
127
+ val_enqueuer_gen = iter_sequence_infinite(val_data)
128
+ validation_steps = validation_steps or len(val_data)
128
129
  else:
129
130
  val_enqueuer_gen = val_data
130
131
  else:
@@ -183,11 +183,13 @@ class H5Dict(object):
183
183
  self.data = path
184
184
  self._is_file = False
185
185
  elif isinstance(path, str):
186
- self.data = h5py.File(path,)
186
+ self.data = h5py.File(path, mode=mode)
187
187
  self._is_file = True
188
188
  elif isinstance(path, dict):
189
189
  self.data = path
190
190
  self._is_file = False
191
+ if mode == 'w':
192
+ self.data.clear()
191
193
  # Flag to check if a dict is user defined data or a sub group:
192
194
  self.data['_is_group'] = True
193
195
  else:
@@ -209,7 +211,7 @@ class H5Dict(object):
209
211
  else:
210
212
  self.data[attr] = val
211
213
  return
212
- if attr in self:
214
+ if isinstance(self.data, h5py.Group) and attr in self.data:
213
215
  raise KeyError('Cannot set attribute. '
214
216
  'Group with name "{}" exists.'.format(attr))
215
217
  if is_np:
@@ -24,13 +24,13 @@ and is distributed under the MIT license.
24
24
  '''
25
25
 
26
26
  setup(name='Keras',
27
- version='2.2.3',
27
+ version='2.2.4',
28
28
  description='Deep Learning for humans',
29
29
  long_description=long_description,
30
30
  author='Francois Chollet',
31
31
  author_email='francois.chollet@gmail.com',
32
32
  url='https://github.com/keras-team/keras',
33
- download_url='https://github.com/keras-team/keras/tarball/2.2.3',
33
+ download_url='https://github.com/keras-team/keras/tarball/2.2.4',
34
34
  license='MIT',
35
35
  install_requires=['numpy>=1.9.1',
36
36
  'scipy>=0.14',
@@ -37,21 +37,6 @@ except ImportError:
37
37
  WITH_NP = [KTH if K.backend() == 'theano' else KC if K.backend() == 'cntk' else KTF, KNP]
38
38
 
39
39
 
40
- # CNTK only supports dilated convolution on GPU
41
- def get_dilated_conv_backends():
42
- backend_list = []
43
- if KTF is not None:
44
- backend_list.append(KTF)
45
- if KTH is not None:
46
- backend_list.append(KTH)
47
- if KC is not None and KC.dev.type() == 1:
48
- backend_list.append(KC)
49
- return backend_list
50
-
51
-
52
- DILATED_CONV_BACKENDS = get_dilated_conv_backends()
53
-
54
-
55
40
  def check_dtype(var, dtype):
56
41
  if K._BACKEND == 'theano':
57
42
  assert var.dtype == dtype
@@ -1076,6 +1061,20 @@ class TestBackend(object):
1076
1061
  padding=padding, data_format=data_format,
1077
1062
  cntk_dynamicity=True)
1078
1063
 
1064
+ @pytest.mark.parametrize(
1065
+ 'op,input_shape,kernel_shape,output_shape,padding,data_format', [
1066
+ ('conv2d_transpose', (2, 5, 6, 3), (3, 3, 2, 3), (2, 5, 6, 2),
1067
+ 'same', 'channels_last'),
1068
+ ('conv2d_transpose', (2, 3, 8, 9), (3, 3, 2, 3), (2, 2, 8, 9),
1069
+ 'same', 'channels_first'),
1070
+ ])
1071
+ def test_conv_transpose(self, op, input_shape, kernel_shape, output_shape,
1072
+ padding, data_format):
1073
+ check_two_tensor_operation(
1074
+ op, input_shape, kernel_shape, WITH_NP,
1075
+ output_shape=output_shape, padding=padding, data_format=data_format,
1076
+ cntk_dynamicity=True)
1077
+
1079
1078
  @pytest.mark.skipif((K.backend() == 'cntk' and K.dev.type() == 0),
1080
1079
  reason='cntk only supports dilated conv on GPU')
1081
1080
  @pytest.mark.parametrize('op,input_shape,kernel_shape,padding,data_format,dilation_rate', [
@@ -1102,10 +1101,10 @@ class TestBackend(object):
1102
1101
  ('conv2d_transpose', (2, 3, 8, 9), (3, 3, 2, 3), (2, 2, 8, 9),
1103
1102
  'same', 'channels_first', (2, 2)),
1104
1103
  ])
1105
- def test_conv_transpose_dilation(self, op, input_shape, kernel_shape, output_shape,
1106
- padding, data_format, dilation_rate):
1104
+ def test_dilated_conv_transpose(self, op, input_shape, kernel_shape, output_shape,
1105
+ padding, data_format, dilation_rate):
1107
1106
  check_two_tensor_operation(
1108
- op, input_shape, kernel_shape, DILATED_CONV_BACKENDS, output_shape=output_shape,
1107
+ op, input_shape, kernel_shape, WITH_NP, output_shape=output_shape,
1109
1108
  padding=padding, data_format=data_format, dilation_rate=dilation_rate,
1110
1109
  cntk_dynamicity=True)
1111
1110
 
@@ -87,12 +87,32 @@ def separable_conv(x, w1, w2, padding, data_format):
87
87
  return conv(x2, w2, padding=padding, data_format=data_format)
88
88
 
89
89
 
90
+ def conv_transpose(x, w, output_shape, padding, data_format, dilation_rate=1):
91
+ if x.ndim == 4:
92
+ w = np.fliplr(np.flipud(w))
93
+ w = np.transpose(w, (0, 1, 3, 2))
94
+ else:
95
+ w = np.flip(np.fliplr(np.flipud(w)), axis=2)
96
+ w = np.transpose(w, (0, 1, 2, 4, 3))
97
+
98
+ if isinstance(dilation_rate, int):
99
+ dilation_rate = (dilation_rate,) * (x.ndim - 2)
100
+ for (i, d) in enumerate(dilation_rate):
101
+ if d > 1:
102
+ for j in range(w.shape[i] - 1):
103
+ w = np.insert(w, 2 * j + 1, 0, axis=i)
104
+
105
+ return conv(x, w, padding=padding, data_format=data_format)
106
+
107
+
90
108
  conv1d = conv
91
109
  conv2d = conv
92
110
  conv3d = conv
93
111
  depthwise_conv2d = depthwise_conv
94
112
  separable_conv1d = separable_conv
95
113
  separable_conv2d = separable_conv
114
+ conv2d_transpose = conv_transpose
115
+ conv3d_transpose = conv_transpose
96
116
 
97
117
 
98
118
  def pool(x, pool_size, strides, padding, data_format, pool_mode):
@@ -468,6 +468,19 @@ def test_model_methods():
468
468
  assert trained_batches == list(range(12)) * 5
469
469
  assert len(val_seq.logs) == 12 * 5
470
470
 
471
+ # test for workers = 0
472
+ trained_epochs = []
473
+ trained_batches = []
474
+ val_seq = RandomSequence(4)
475
+ out = model.fit_generator(generator=RandomSequence(3),
476
+ epochs=5,
477
+ validation_data=val_seq,
478
+ callbacks=[tracker_cb],
479
+ workers=0)
480
+ assert trained_epochs == [0, 1, 2, 3, 4]
481
+ assert trained_batches == list(range(12)) * 5
482
+ assert len(val_seq.logs) == 12 * 5
483
+
471
484
  # fit_generator will throw an exception
472
485
  # if steps is unspecified for regular generator
473
486
  with pytest.raises(ValueError):
@@ -632,6 +632,29 @@ def test_saving_recurrent_layer_without_bias():
632
632
  os.remove(fname)
633
633
 
634
634
 
635
+ def test_loop_model_saving():
636
+ model = Sequential()
637
+ model.add(Dense(2, input_shape=(3,)))
638
+ model.compile(loss=losses.MSE,
639
+ optimizer=optimizers.RMSprop(lr=0.0001),
640
+ metrics=[metrics.categorical_accuracy])
641
+
642
+ x = np.random.random((1, 3))
643
+ y = np.random.random((1, 2))
644
+ _, fname = tempfile.mkstemp('.h5')
645
+
646
+ for _ in range(3):
647
+ model.train_on_batch(x, y)
648
+ save_model(model, fname, overwrite=True)
649
+ out = model.predict(x)
650
+
651
+ new_model = load_model(fname)
652
+ os.remove(fname)
653
+
654
+ out2 = new_model.predict(x)
655
+ assert_allclose(out, out2, atol=1e-05)
656
+
657
+
635
658
  def test_saving_constant_initializer_with_numpy():
636
659
  """Test saving and loading model of constant initializer with numpy inputs.
637
660
  """
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes