cd3e85f75755a2d1f02e03b2d76b74179a64c622,snntoolbox/core/pipeline.py,,test_full,#Any#Any#Any#Any#,27

Before Change


    // otherwise load it from scratch and perform necessary adaptations (e.g.
    // reducing dataset size for reshaping according to network architecture).
    // Then save it to disk.
    datadir_base = os.path.expanduser(os.path.join("~", ".snntoolbox"))
    datadir = os.path.join(datadir_base, "datasets", settings["dataset"],
                           settings["architecture"])
    if not os.path.exists(datadir):
        os.makedirs(datadir)
    samples = os.path.join(datadir, settings["dataset"] + ".npy")
    if os.path.isfile(samples):
        (X_train, Y_train, X_test, Y_test) = tuple(np.load(samples))
    else:

After Change


    

    // ____________________________ LOAD DATASET _____________________________ //
    (X_train, Y_train, X_test, Y_test) = load_dataset(settings["dataset_path"])

    // _____________________________ LOAD MODEL ______________________________ //
    // Extract architecture and weights from input model.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: cd3e85f75755a2d1f02e03b2d76b74179a64c622
Time: 2016-06-06
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/pipeline.py
Class Name:
Method Name: test_full


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: cd3e85f75755a2d1f02e03b2d76b74179a64c622
Time: 2016-06-06
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/pipeline.py
Class Name:
Method Name: test_full


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: eb668c03c6a92d0ee2f7edbd46417fb0f7b85ae5
Time: 2018-11-30
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/detection/features_unittest.py
Class Name: TestFeatures
Method Name: setUpClass


Project Name: horovod/horovod
Commit Name: 958695e7343ce470ad3b0d9df1967b5af3bd6ec3
Time: 2019-07-10
Author: zsh@uber.com
File Name: setup.py
Class Name: custom_build_ext
Method Name: build_extensions