3033c545288896720b201183ed0d67d910710e47,examples/mnist_lrp.py,,create_model,#Any#Any#,70

Before Change


    if not modelname in innvestigate.utils.tests.networks.base.__all__:
        raise ValueError("Unknown model name {}".format(modelname))

    if modelname.startswith("pt_"): // load PreTrained models
        model_init_fxn = eval("innvestigate.utils.tests.networks.base.{}".format(modelname))
        model_wo_sm, model_w_sm = model_init_fxn(input_shape[1:])

After Change




    if modelname in innvestigate.applications.mnist.__all__: // load PreTrained models
        model_init_fxn = getattr(innvestigate.applications.mnist, modelname)
        model_wo_sm, model_w_sm = model_init_fxn(input_shape[1:])

    elif modelname in innvestigate.utils.tests.networks.base.__all__:
        network_init_fxn = getattr(innvestigate.utils.tests.networks.base, modelname)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: albermax/innvestigate
Commit Name: 3033c545288896720b201183ed0d67d910710e47
Time: 2018-04-10
Author: sebastian.lapuschkin@hhi.fraunhofer.de
File Name: examples/mnist_lrp.py
Class Name:
Method Name: create_model


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 6a968dc9a3faad2037bfd1a8f12b038a368eee4d
Time: 2018-02-20
Author: christian.brenninkmeijer@manchester.ac.uk
File Name: spynnaker/pyNN/models/neuron/abstract_population_vertex.py
Class Name: AbstractPopulationVertex
Method Name: initial_values


Project Name: tensorflow/tensorboard
Commit Name: f53803df8a8f253fa80cb19ea52dc5fad6633133
Time: 2019-02-14
Author: nfelt@users.noreply.github.com
File Name: tensorboard/summary/_tf/summary/__init__.py
Class Name:
Method Name: