2cc2cc17664dd90472e53a35b21f868ea932d11a,category_encoders/polynomial.py,PolynomialEncoder,transform,#PolynomialEncoder#Any#,71
Before Change
if not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X)
return polynomial_coding(X, cols=self.cols)
After Change
if not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X)
X = polynomial_coding(X, cols=self.cols)
if self.drop_invariant:
for col in self.drop_cols:
X.drop(col, 1, inplace=True)
return X
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 9
Instances
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 2cc2cc17664dd90472e53a35b21f868ea932d11a
Time: 2016-05-19
Author: will@pedalwrencher.com
File Name: category_encoders/polynomial.py
Class Name: PolynomialEncoder
Method Name: transform
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 2cc2cc17664dd90472e53a35b21f868ea932d11a
Time: 2016-05-19
Author: will@pedalwrencher.com
File Name: category_encoders/hashing.py
Class Name: HashingEncoder
Method Name: transform
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 2cc2cc17664dd90472e53a35b21f868ea932d11a
Time: 2016-05-19
Author: will@pedalwrencher.com
File Name: category_encoders/binary.py
Class Name: BinaryEncoder
Method Name: transform
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 2cc2cc17664dd90472e53a35b21f868ea932d11a
Time: 2016-05-19
Author: will@pedalwrencher.com
File Name: category_encoders/helmert.py
Class Name: HelmertEncoder
Method Name: transform
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 2cc2cc17664dd90472e53a35b21f868ea932d11a
Time: 2016-05-19
Author: will@pedalwrencher.com
File Name: category_encoders/sum_coding.py
Class Name: SumEncoder
Method Name: transform
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 2cc2cc17664dd90472e53a35b21f868ea932d11a
Time: 2016-05-19
Author: will@pedalwrencher.com
File Name: category_encoders/backward_difference.py
Class Name: BackwardDifferenceEncoder
Method Name: transform