0bc9d06224686cc32e5cf52f3aae979d3380ca24,examples/mnist.py,,,#,23

Before Change



if __name__ == "__main__":

    checkpoints = glob("examples/checkpoints/*.h5")
    // pip3 install natsort
    from natsort import natsorted

    from keras.models import load_model

After Change


        import shutil

        // delete folder and its content and creates a new one.
        if os.path.exists(checkpoint_dir):
            shutil.rmtree(checkpoint_dir)
        os.makedirs(checkpoint_dir)

        checkpoint = ModelCheckpoint(monitor="val_acc", save_best_only=True,
                                     filepath=os.path.join(checkpoint_dir, "model_{epoch:02d}_{val_acc:.3f}.h5"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: philipperemy/keras-activations
Commit Name: 0bc9d06224686cc32e5cf52f3aae979d3380ca24
Time: 2019-01-03
Author: premy@cogent.co.jp
File Name: examples/mnist.py
Class Name:
Method Name:


Project Name: mseitzer/pytorch-fid
Commit Name: 2313fbdad72507c0af7daaf43d1887fc95453762
Time: 2020-11-30
Author: 16725193+mseitzer@users.noreply.github.com
File Name: src/pytorch_fid/fid_score.py
Class Name:
Method Name: _compute_statistics_of_path


Project Name: rwth-i6/returnn-experiments
Commit Name: 7247571ab448f9ccf6b392a26df0b8b40b1085eb
Time: 2018-05-16
Author: zeyer@i6.informatik.rwth-aachen.de
File Name: 2018-asr-attention/librispeech/full-setup-attention/tools/collect-train-text.py
Class Name:
Method Name: