b5034279b48ae96ffdd4714f96e0f62b0f4807fc,category_encoders/polynomial.py,PolynomialEncoder,fit,#PolynomialEncoder#Any#Any#,96
Before Change
mappings_out = []
for switch in ordinal_mapping:
values = [x[1] for x in switch.get("mapping")]
column_mapping = self.fit_polynomial_coding(values)
mappings_out.append({"col": switch.get("col"), "mapping": column_mapping, })
self.mapping = mappings_out
After Change
mappings_out = []
for switch in ordinal_mapping:
values = switch.get("mapping").get_values()
column_mapping = self.fit_polynomial_coding(values)
mappings_out.append({"col": switch.get("col"), "mapping": column_mapping, })
self.mapping = mappings_out
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: b5034279b48ae96ffdd4714f96e0f62b0f4807fc
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/polynomial.py
Class Name: PolynomialEncoder
Method Name: fit
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: b5034279b48ae96ffdd4714f96e0f62b0f4807fc
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/backward_difference.py
Class Name: BackwardDifferenceEncoder
Method Name: fit
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: b5034279b48ae96ffdd4714f96e0f62b0f4807fc
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/helmert.py
Class Name: HelmertEncoder
Method Name: fit