1a19396d3daea14a189c4335e5df9f4072a764cc,dirty_cat/similarity_encoder.py,SimilarityEncoder,fit,#SimilarityEncoder#,143
Before Change
dtype=object))
if self.categories == "auto":
self.categories_ = [le.classes_ for le in self._label_encoders_]
return self
def transform(self, X):
After Change
for i in range(n_features):
Xi = X[:, i]
if self.categories == "auto":
self.categories_.append(np.unique(Xi) )
elif self.categories == "most_frequent":
self.categories_.append(self.get_most_frequent(Xi))
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: dirty-cat/dirty_cat
Commit Name: 1a19396d3daea14a189c4335e5df9f4072a764cc
Time: 2018-11-08
Author: maxime.cuny@inria.fr
File Name: dirty_cat/similarity_encoder.py
Class Name: SimilarityEncoder
Method Name: fit
Project Name: rasbt/mlxtend
Commit Name: cec517350d259a4f49a58a769db784c248cfffa8
Time: 2021-01-08
Author: mail@sebastianraschka.com
File Name: mlxtend/evaluate/accuracy.py
Class Name:
Method Name: accuracy_score
Project Name: nilearn/nilearn
Commit Name: 9bc4276246f6fd0bf487bd76686dc2fc4f41b1b1
Time: 2019-04-15
Author: dkamalakarreddy@gmail.com
File Name: examples/03_connectivity/plot_group_level_connectivity.py
Class Name:
Method Name: