e81f54bb33f4a41c2ebdfdda41e5d70b52c32c87,pyannote/audio/embedding/base_autograd.py,SequenceEmbeddingAutograd,restart,#Any#Any#Any#,188
Before Change
// optimizer (configuration)
optimizer_pkl = _.OPTIMIZER_PKL.format(log_dir=log_dir, epoch=epoch)
with open(optimizer_pkl, mode="rb") as fp:
state = pickle.load(fp)
optimizer = keras.optimizers.deserialize(
state["optimizer_config"],
custom_objects=CUSTOM_OBJECTS)
// optimizer (weights)
embedding.compile(optimizer=optimizer,
loss=cls._gradient_loss)
After Change
epoch=epoch)
// TODO update this code once keras > 2.0.4 is released
try:
embedding = keras.models.load_model(
weights_h5, custom_objects=CUSTOM_OBJECTS,
compile=True)
except TypeError as e:
embedding = keras.models.load_model(
weights_h5, custom_objects=CUSTOM_OBJECTS)
embedding.epoch = epoch
return embedding
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: pyannote/pyannote-audio
Commit Name: e81f54bb33f4a41c2ebdfdda41e5d70b52c32c87
Time: 2017-05-05
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/base_autograd.py
Class Name: SequenceEmbeddingAutograd
Method Name: restart
Project Name: dPys/PyNets
Commit Name: b049d72f6a5f71855c762112959642ac402693a9
Time: 2019-10-03
Author: dpisner@utexas.edu
File Name: pynets/registration/register.py
Class Name: FmriReg
Method Name: atlas2t1wmni_align
Project Name: PavlosMelissinos/enet-keras
Commit Name: d5f386ee8b68b01e77278f2b318de3aebbc55373
Time: 2017-10-04
Author: pmelissi@iti.gr
File Name: src/experiments/core.py
Class Name: Experiment
Method Name: model
Project Name: nilmtk/nilmtk
Commit Name: 51f56cd2f529cbf92c0492c34510c040ed1b77fd
Time: 2014-05-22
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: power_series