07a9450b407ee5dc89b82e388840d510b009ef3e,lib/matplotlib/scale.py,LogTransformBase,transform_non_affine,#LogTransformBase#Any#,100

Before Change


    def transform_non_affine(self, a):
        with np.errstate(invalid="ignore"):
            a = np.where(a <= 0, self._fill_value, a)
        return np.divide(np.log(a, out=a), np.log(self.base), out=a)


class InvertedLogTransformBase(Transform):
    input_dims = 1

After Change



    def transform_non_affine(self, a):
        with np.errstate(divide="ignore", invalid="ignore"):
            out = np.log(a)
        out /= np.log(self.base)
        if self._clip:
            // SVG spec says that conforming viewers must support values up
            // to 3.4e38 (C float); however experiments suggest that Inkscape
            // (which uses cairo for rendering) runs into cairo"s 24-bit limit
            // (which is apparently shared by Agg).
            // Ghostscript (used for pdf rendering appears to overflow even
            // earlier, with the max value around 2 ** 15 for the tests to pass.
            // On the other hand, in practice, we want to clip beyond
            //     np.log10(np.nextafter(0, 1)) ~ -323
            // so 1000 seems safe.
            out[a <= 0] = -1000
        return out


class InvertedLogTransformBase(Transform):
    input_dims = 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: 07a9450b407ee5dc89b82e388840d510b009ef3e
Time: 2017-10-20
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/scale.py
Class Name: LogTransformBase
Method Name: transform_non_affine


Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 3782cc530a2914543e4f86fc727a9021defc0342
Time: 2017-10-30
Author: christian.brenninkmeijer@manchester.ac.uk
File Name: spynnaker/pyNN/models/neuron/synapse_types/synapse_type_exponential.py
Class Name:
Method Name: get_exponential_decay_and_init


Project Name: matplotlib/matplotlib
Commit Name: 668ff586c12a3c577ddd985a375030381e80539c
Time: 2017-10-25
Author: tcaswell@gmail.com
File Name: lib/matplotlib/scale.py
Class Name: LogTransformBase
Method Name: transform_non_affine


Project Name: tensorflow/transform
Commit Name: a324e96dd3e318a14f813a824e8c14a5d145cd91
Time: 2018-01-08
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/analyzers.py
Class Name:
Method Name: mean