a0d5162fb500d43f4be26fd402271fc888397464,Orange/preprocess/normalize.py,Normalizer,normalize_by_sd,#Normalizer#Any#Any#,39

Before Change


        avg, sd = dist.mean(), dist.standard_deviation()
        if sd == 0:
            sd = 1
        new_var.compute_value = Norm(var, avg, 1 / sd)
        return new_var

    def normalize_by_span(self, dist, var):
        new_var = ContinuousVariable(var.name)

After Change


        avg, sd = dist.mean(), dist.standard_deviation()
        if sd == 0:
            sd = 1
        return ContinuousVariable(var.name, compute_value=Norm(var, avg, 1 / sd))

    def normalize_by_span(self, dist, var):
        dma, dmi = dist.max(), dist.min()
        diff = dma - dmi
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biolab/orange3
Commit Name: a0d5162fb500d43f4be26fd402271fc888397464
Time: 2015-06-24
Author: anze.staric@gmail.com
File Name: Orange/preprocess/normalize.py
Class Name: Normalizer
Method Name: normalize_by_sd


Project Name: biolab/orange3
Commit Name: a0d5162fb500d43f4be26fd402271fc888397464
Time: 2015-06-24
Author: anze.staric@gmail.com
File Name: Orange/preprocess/normalize.py
Class Name: Normalizer
Method Name: normalize_by_span


Project Name: biolab/orange3
Commit Name: c0f8a6739223b049f28176675dc72f5bdbc49827
Time: 2019-11-22
Author: tankovesna@hotmail.com
File Name: Orange/preprocess/normalize.py
Class Name: Normalizer
Method Name: normalize_by_span