01b70914c42ea452018319f48ef252ca557751b6,skopt/space.py,_CategoricalEncoder,transform,#_CategoricalEncoder#,59

Before Change


        * `Xt` [array-like, shape=(n_samples, n_categories)]:
            The one-hot encoded categories.
        
        return self._lb.transform(X)

    def inverse_transform(self, Xt):
        Inverse transform one-hot encoded categories back to their original
           representation.

After Change


        * `Xt` [array-like, shape=(n_samples, n_categories)]:
            The one-hot encoded categories.
        
        return self._lb.transform([self.mapping[v] for v in X])

    def inverse_transform(self, Xt):
        Inverse transform one-hot encoded categories back to their original
           representation.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 01b70914c42ea452018319f48ef252ca557751b6
Time: 2016-07-24
Author: nuno.campos@me.com
File Name: skopt/space.py
Class Name: _CategoricalEncoder
Method Name: transform


Project Name: lmcinnes/pynndescent
Commit Name: c0492405eb4eb275eca0b939cf5c1c2b62e3e85f
Time: 2020-08-30
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: PyNNDescentTransformer
Method Name: fit_transform


Project Name: DistrictDataLabs/yellowbrick
Commit Name: c6ee8ee45b7b854fa2731b6f238e223ec24e1cab
Time: 2019-07-27
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/features/manifold.py
Class Name: Manifold
Method Name: transform