44f6cac0bbb0d7969ece849cea078c508df7041b,category_encoders/hashing.py,HashingEncoder,transform,#HashingEncoder#Any#Any#,250

Before Change


        Call _transform() if you want to use single CPU with all samples
        
        if X is None or self.cols is None:
            raise AttributeError("None data or feature input")

        self.X = X
        self.data_lines = len(X)
        if self.max_sample == 0 and self.max_process == 1:

After Change



        // then make sure that it is the right size
        if X.shape[1] != self._dim:
            raise ValueError("Unexpected input dimension %d, expected %d" % (X.shape[1], self._dim, ))

        if not self.cols:
            return X
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 44f6cac0bbb0d7969ece849cea078c508df7041b
Time: 2019-06-07
Author: slliu96@163.com
File Name: category_encoders/hashing.py
Class Name: HashingEncoder
Method Name: transform


Project Name: Theano/Theano
Commit Name: 94f092ae5dc64ad0c4e196ab17e7b5d84b219899
Time: 2017-04-05
Author: stevenbocco@gmail.com
File Name: theano/gof/type.py
Class Name: EnumType
Method Name: __init__


Project Name: analysiscenter/batchflow
Commit Name: d3ef826de307c20f289cccc29a211669612fb380
Time: 2019-10-01
Author: rhudor@gmail.com
File Name: batchflow/dataset.py
Class Name: Dataset
Method Name: __getattr__