89333926ae6c0dbc56c97bab30812ac461fdc7fa,snntoolbox/conversion/utils.py,,get_scale_fac,#Any#Any#,221

Before Change


        Parameters of the respective layer are scaled by this value.
    

    scale_fac = np.percentile(activations, percentile)
    print("Scale factor: {:.2f}.".format(scale_fac))

    return scale_fac

After Change


        Parameters of the respective layer are scaled by this value.
    

    return np.percentile(activations, percentile)


def get_percentile(config, layer_idx=None):
    Get percentile at which to draw the maximum activation of a layer.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 89333926ae6c0dbc56c97bab30812ac461fdc7fa
Time: 2019-07-11
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/conversion/utils.py
Class Name:
Method Name: get_scale_fac


Project Name: etal/cnvkit
Commit Name: d9cfc30eec5e0fc0a1162b426a08a069788c5bf5
Time: 2015-10-08
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: _confidence_interval


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 0f0d71ad016ee8388f00afac2fbf12d1b9deb758
Time: 2019-05-06
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/conversion/utils.py
Class Name:
Method Name: get_scale_fac


Project Name: etal/cnvkit
Commit Name: d9cfc30eec5e0fc0a1162b426a08a069788c5bf5
Time: 2015-10-08
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: _prediction_interval