Keras 2.1.3
Areas of improvement
- Performance improvements (esp. convnets with TensorFlow backend).
- Usability improvements.
- Docs & docstrings improvements.
- New models in the
applicationsmodule. - Bug fixes.
API changes
trainableattribute inBatchNormalizationnow disables the updates of the batch statistics (i.e. iftrainable == Falsethe layer will now run 100% in inference mode).- Add
amsgradargument inAdamoptimizer. - Add new applications:
NASNetMobile,NASNetLarge,DenseNet121,DenseNet169,DenseNet201. - Add
Softmaxlayer (removing need to use aLambdalayer in order to specify theaxisargument). - Add
SeparableConv1Dlayer. - In
preprocessing.image.ImageDataGenerator, allowwidth_shift_rangeandheight_shift_rangeto take integer values (absolute number of pixels) - Support
return_stateinBidirectionalapplied to RNNs (return_stateshould be set on the child layer). - The string values
"crossentropy"and"ce"are now allowed in themetricsargument (inmodel.compile()), and are routed to eithercategorical_crossentropyorbinary_crossentropyas needed. - Allow
stepsargument inpredict_*methods on theSequentialmodel. - Add
oov_tokenargument inpreprocessing.text.Tokenizer.
Breaking changes
- In
preprocessing.image.ImageDataGenerator,shear_rangehas been switched to use degrees rather than radians (for consistency). This should not actually break anything (neither training nor inference), but keep this change in mind in case you see any issues with regard to your image data augmentation process.
Credits
Thanks to our 45 contributors whose commits are featured in this release:
@Dref360, @OliPhilip, @TimZaman, @bbabenko, @bdwyer2, @berkatmaca, @caisq, @decrispell, @dmaniry, @fchollet, @fgaim, @gabrieldemarmiesse, @gklambauer, @hgaiser, @hlnull, @icyblade, @jgrnt, @kashif, @kouml, @lutzroeder, @m-mohsen, @mab4058, @manashty, @masstomato, @mihirparadkar, @myutwo150, @nickbabcock, @novotnj3, @obsproth, @ozabluda, @philferriere, @piperchester, @pstjohn, @roatienza, @souptc, @spiros, @srs70187, @sumitgouthaman, @taehoonlee, @tigerneil, @titu1994, @tobycheese, @vitaly-krumins, @yang-zhang, @ziky90