Keras 2.2.5
Keras 2.2.5 is the last release of Keras that implements the 2.2.* API. It is the last release to only support TensorFlow 1 (as well as Theano and CNTK).
The next release will be 2.3.0, which makes significant API changes and add support for TensorFlow 2.0. The 2.3.0 release will be the last major release of multi-backend Keras. Multi-backend Keras is superseded by tf.keras.
At this time, we recommend that Keras users who use multi-backend Keras with the TensorFlow backend switch to tf.keras in TensorFlow 2.0. tf.keras is better maintained and has better integration with TensorFlow features.
API Changes
- Add new Applications:
ResNet101,ResNet152,ResNet50V2,ResNet101V2,ResNet152V2. - Callbacks: enable callbacks to be passed in
evaluateandpredict.- Add
callbacksargument (list of callback instances) inevaluateandpredict. - Add callback methods
on_train_batch_begin,on_train_batch_end,on_test_batch_begin,on_test_batch_end,on_predict_batch_begin,on_predict_batch_end, as well ason_test_begin,on_test_end,on_predict_begin,on_predict_end. Methodson_batch_beginandon_batch_endare now aliases foron_train_batch_beginandon_train_batch_end.
- Add
- Allow file pointers in
save_modelandload_model(in place of the filepath) - Add
nameargument in Sequential constructor - Add
validation_freqargument infit, controlling the frequency of validation (e.g. settingvalidation_freq=3would run validation every 3 epochs) - Allow Python generators (or Keras Sequence objects) to be passed in
fit,evaluate, andpredict, instead of having to use*_generatormethods.- Add generator-related arguments
max_queue_size,workers,use_multiprocessingto these methods.
- Add generator-related arguments
- Add
dilation_rateargument in layerDepthwiseConv2D. - MaxNorm constraint: rename argument
mtomax_value. - Add
dtypeargument in base layer (default dtype for layer's weights). - Add Google Cloud Storage support for model.save_weights and model.load_weights.
- Add JSON-serialization to the
Tokenizerclass. - Add
H5Dictandmodel_to_dotto utils. - Allow default Keras path to be specified at startup via environment variable KERAS_HOME.
- Add arguments
expand_nested,dpitoplot_model. - Add
update_sub,stack,cumsum,cumprod,foldl,foldrto CNTK backend - Add
merge_repeatedargument toctc_decodein TensorFlow backend
Thanks to the 89 committers who contributed code to this release!