a07c82b9886d1d3fd58908c6109c4d2096760824,pyannote/audio/labeling/models.py,LSTMSequenceLabeling,design_model,#LSTMSequenceLabeling#Any#,260
Before Change
loss="categorical_crossentropy",
metrics=["accuracy"])
return model
After Change
// stack dense layers
for i, output_dim in enumerate(self.dense):
x = TimeDistributed(Dense(output_dim,
activation="tanh",
name="dense_{i:d}".format(i=i)))(x)
// one dimension per class
outputs = TimeDistributed(Dense(self.output_dim, activation="softmax"))(x)
return Model(input=inputs, output=outputs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pyannote/pyannote-audio
Commit Name: a07c82b9886d1d3fd58908c6109c4d2096760824
Time: 2016-08-29
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/models.py
Class Name: LSTMSequenceLabeling
Method Name: design_model
Project Name: kbardool/keras-frcnn
Commit Name: 415b04853fb4774a5cfaa4b42bf688a67b4db433
Time: 2017-02-06
Author: yannhenon@gmail.com
File Name: resnet.py
Class Name:
Method Name: classifier
Project Name: allenai/allennlp
Commit Name: b72c838d5f2ba0ed980c2112ae91af05f83664f9
Time: 2018-04-12
Author: mattg@allenai.org
File Name: allennlp/modules/token_embedders/elmo_token_embedder.py
Class Name: ElmoTokenEmbedder
Method Name: forward