62503607d6dea7a34ec31ce8daae7b8d27832c02,skopt/space/transformers.py,Normalize,inverse_transform,#Normalize#,117

Before Change


            raise ValueError("All values should be less than 1.0")
        if np.any(X < 0.0):
            raise ValueError("All values should be greater than 0.0")
        return X * (self.high - self.low) + self.low


class Pipeline(Transformer):
    

After Change


            raise ValueError("All values should be greater than 0.0")
        X_orig = X * (self.high - self.low) + self.low
        if self.is_int:
            return np.round(X_orig).astype(np.int)
        return X_orig


class Pipeline(Transformer):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 62503607d6dea7a34ec31ce8daae7b8d27832c02
Time: 2016-12-06
Author: mks542@nyu.edu
File Name: skopt/space/transformers.py
Class Name: Normalize
Method Name: inverse_transform


Project Name: librosa/librosa
Commit Name: 538f969f17ef232c75588dfa2a3157bd97aae45d
Time: 2013-02-11
Author: brm2132@columbia.edu
File Name: librosa/beat.py
Class Name:
Method Name: _beat_tracker


Project Name: librosa/librosa
Commit Name: fa41538a8be9909aed4167040546b8bf0eea72e6
Time: 2013-11-21
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: midi_to_note


Project Name: WheatonCS/Lexos
Commit Name: fade34bcf643d430f3dd40dc078e4a715422b510
Time: 2017-08-03
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/topword.py
Class Name:
Method Name: _z_test_