b5302f4895953e33b2aadf4fef8fd1860f8f3625,snntoolbox/core/util.py,,normalize_parameters,#Any#Any#,146

Before Change


            if "normalization_activations" in \
                    eval(config["output"]["plot_vars"]):
                print("Writing activations to disk...")
                np.savez_compressed(os.path.join(activ_dir, layer.name),
                                    activations)
            nonzero_activations = activations[np.nonzero(activations)]
            del activations
            perc = get_percentile(config, i)
            scale_facs[layer.name] = get_scale_fac(nonzero_activations, perc)

After Change


            activations = try_reload_activations(layer, model, x_norm,
                                                 batch_size, activ_dir)

            if activations is None:
                continue

            // Compute activations with modified parameters
            nonzero_activations = activations[np.nonzero(activations)]
            activations_norm = get_activations_layer(model.input, layer.output,
                                                     x_norm, batch_size)
            activation_dict = {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: b5302f4895953e33b2aadf4fef8fd1860f8f3625
Time: 2017-06-15
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/util.py
Class Name:
Method Name: normalize_parameters


Project Name: markovmodel/PyEMMA
Commit Name: 4ed172063fc1ec493c91b327e4761192dbb227dd
Time: 2017-08-31
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/jsonpickler_handlers.py
Class Name: NumpyNPZHandler
Method Name: flatten


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 3523a61256c3040aa3f4fd3fc579511f85169212
Time: 2020-11-05
Author: bodo.rueckauer@gmail.com
File Name: tests/conftest.py
Class Name:
Method Name: _datapath