I am Charmie

メモとログ

2017-08-28から1日間の記事一覧

find a layer by name in Keras

[code lang="python"] for layer in model.layers layer_name = layer.get_config()['name'] print(layer_name) if layer_name is 'foo': print('foo') else: print('bar') [/code]

customize a model in Keras

Here's a note to customize a pre-defined model in Keras. This official information and stackoverflow post gave me how to do it. A Model is a list of layers (or layer instances) such as [code lang="python"] model = Sequential([ Dense(32, in…