e81f54bb33f4a41c2ebdfdda41e5d70b52c32c87,pyannote/audio/embedding/base_autograd.py,SequenceEmbeddingAutograd,restart,#Any#Any#Any#,188

Before Change



        // model (weights)
        weights_h5 = _.WEIGHTS_H5.format(log_dir=log_dir, epoch=epoch)
        embedding.load_weights(weights_h5)

        // optimizer (configuration)
        optimizer_pkl = _.OPTIMIZER_PKL.format(log_dir=log_dir, epoch=epoch)
        with open(optimizer_pkl, mode="rb") as fp:

After Change


                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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: CyberZHG/keras-bert
Commit Name: 55d1c4d1460ed72750c51f7e1c057e0202d175e3
Time: 2018-10-28
Author: CyberZHG@gmail.com
File Name: tests/test_bert.py
Class Name: TestBERT
Method Name: test_fit


Project Name: fritzlabs/fritz-models
Commit Name: e21353006ca19d9b671cbfe7f6f2290d2004eabd
Time: 2018-06-10
Author: jamesontoole@gmail.com
File Name: train_network.py
Class Name:
Method Name:


Project Name: pyannote/pyannote-audio
Commit Name: 35b56b6680931bfe9e3aa8318c4a977c00d079c1
Time: 2017-05-09
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/base.py
Class Name: SequenceLabeling
Method Name: from_disk