670b85c9e9cec05210e8596bc1fb9ca66787162f,sklearn/compose/_column_transformer.py,ColumnTransformer,get_feature_names,#ColumnTransformer#,345
Before Change
if trans == "drop" or (
hasattr(column, "__len__") and not len(column)):
continue
elif trans == "passthrough":
raise NotImplementedError(
"get_feature_names is not yet supported when using "
"a "passthrough" transformer.")
elif not hasattr(trans, "get_feature_names"):
raise AttributeError("Transformer %s (type %s) does not "
"provide get_feature_names."
% (str(name), type(trans).__name__))
After Change
else:
feature_names.extend(self._df_columns[column])
else:
indices = np.arange(self._n_features)
feature_names.extend(["x%d" % i for i in indices[column]])
continue
if not hasattr(trans, "get_feature_names"):
raise AttributeError("Transformer %s (type %s) does not "
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: scikit-learn/scikit-learn
Commit Name: 670b85c9e9cec05210e8596bc1fb9ca66787162f
Time: 2020-04-19
Author: 50599110+lrjball@users.noreply.github.com
File Name: sklearn/compose/_column_transformer.py
Class Name: ColumnTransformer
Method Name: get_feature_names
Project Name: pymanopt/pymanopt
Commit Name: b6396da5697e1bdfc7327d785cf3418cc4016d3b
Time: 2016-02-22
Author: git@sweichwald.de
File Name: pymanopt/tools/autodiff/_autograd.py
Class Name: AutogradBackend
Method Name: compute_hessian
Project Name: HazyResearch/fonduer
Commit Name: 0110937ab04f4298f98963bed1de08962d776b24
Time: 2020-07-01
Author: wajdikhattel@think-it.io
File Name: src/fonduer/features/feature_libs/structural_features.py
Class Name:
Method Name: extract_structural_features
Project Name: HazyResearch/fonduer
Commit Name: 5ad9ae2b8ae6b55b07e99de924c77112706aa3b7
Time: 2020-07-01
Author: wajdikhattel@think-it.io
File Name: src/fonduer/features/feature_libs/visual_features.py
Class Name:
Method Name: extract_visual_features