f4838c7408b81ad960c047df5984901927a86d86,category_encoders/one_hot.py,OneHotEncoder,generate_mapping,#OneHotEncoder#,154
Before Change
mapping = []
found_column_counts = {}
for col in self.cols:
col_tuples = copy.deepcopy(
[class_map["mapping"] for class_map in self.ordinal_encoder.mapping if class_map["col"] == col][0])
if self.handle_unknown == "impute":
col_tuples.append(("-1", -1))
col_mappings = []
After Change
for switch in self.ordinal_encoder.mapping:
col = switch.get("col")
column_mapping = switch.get("mapping").copy(deep=True)
if self.handle_unknown == "impute":
column_mapping = column_mapping.append(pd.Series(data=[-1], index=["-1"]))
col_mappings = []
for cat_name, class_ in column_mapping.iteritems():
if self.use_cat_names:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: f4838c7408b81ad960c047df5984901927a86d86
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: generate_mapping
Project Name: masa-su/pixyz
Commit Name: 30028c6256de0cef715095e3994e396025c068d4
Time: 2020-05-04
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/losses/losses.py
Class Name: Expectation
Method Name: forward
Project Name: sepandhaghighi/pycm
Commit Name: bfa168add6a1c9ef560f68546328144b161427b0
Time: 2020-01-29
Author: sepand.haghighi@yahoo.com
File Name: pycm/pycm_util.py
Class Name:
Method Name: normalized_table_calc
Project Name: 7ossam81/EvoloPy
Commit Name: b050fe8d132a7d8899173e1c24d5906dbb943745
Time: 2019-02-26
Author: raneem.qaddoura@gmail.com
File Name: GA.py
Class Name:
Method Name: pairSelection