Keras 2.0.7
Areas of improvement
- Bug fixes.
- Performance improvements.
- Documentation improvements.
- Better support for training models from data tensors in TensorFlow (e.g. Datasets, TFRecords). Add a related example script.
- Improve TensorBoard UX with better grouping of ops into name scopes.
- Improve test coverage.
API changes
- Add
clone_modelmethod, enabling to construct a new model, given an existing model to use as a template. Works even in a TensorFlow graph different from that of the original model. - Add
target_tensorsargument incompile, enabling to use custom tensors or placeholders as model targets. - Add
steps_per_epochargument infit, enabling to train a model from data tensors in a way that is consistent with training from Numpy arrays. - Similarly, add
stepsargument inpredictandevaluate. - Add
Subtractmerge layer, and associated layer functionsubtract. - Add
weighted_metricsargument incompileto specify metric functions meant to take into accountsample_weightorclass_weight. - Make the
stop_gradientsbackend function consistent across backends. - Allow dynamic shapes in
repeat_elementsbackend function. - Enable stateful RNNs with CNTK.
Breaking changes
- The backend methods
categorical_crossentropy,sparse_categorical_crossentropy,binary_crossentropyhad the order of their positional arguments (y_true,y_pred) inverted. This change does not affect thelossesAPI. This change was done to achieve API consistency between thelossesAPI and the backend API. - Move constraint management to be based on variable attributes. Remove the now-unused
constraintsattribute on layers and models (not expected to affect any user).
Credits
Thanks to our 47 contributors whose commits are featured in this release!
@5ke, @alok, @Danielhiversen, @Dref360, @NeilRon, @abnerA, @acburigo, @airalcorn2, @angeloskath, @athundt, @brettkoonce, @cclauss, @denfromufa, @enkait, @erg, @ericwu09, @farizrahman4u, @fchollet, @georgwiese, @ghisvail, @gokceneraslan, @hgaiser, @inexxt, @joeyearsley, @jorgecarleitao, @kennyjacob, @keunwoochoi, @krizp, @lukedeo, @milani, @n17r4m, @nicolewhite, @nigeljyng, @nyghtowl, @nzw0301, @rapatel0, @souptc, @srinivasreddy, @staticfloat, @taehoonlee, @td2014, @titu1994, @tleeuwenburg, @udibr, @waleedka, @wassname, @yashk2810