1b6587331ec77d295e2261de12e13974b7d1a46a,aif360/algorithms/inprocessing/meta_fair_classifier.py,MetaFairClassifier,fit,#MetaFairClassifier#Any#,46
Before Change
PrejudiceRemover: Returns self.
data = np.column_stack([dataset.features, dataset.labels])
columns = dataset.feature_names + dataset.label_names
train_df = pd.DataFrame(data=data, columns=columns)
After Change
if not self.sensitive_attr:
self.sensitive_attr = dataset.protected_attribute_names[0]
sens_index = dataset.feature_names.index(self.sensitive_attr)
x_train = dataset.features
y_train = np.array([1 if y == [dataset.favorable_label] else
-1 for y in dataset.labels])
x_control_train = x_train[:, sens_index ].copy()
self.model = self.obj.getModel(self.tau, x_train, y_train,
x_control_train)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: IBM/AIF360
Commit Name: 1b6587331ec77d295e2261de12e13974b7d1a46a
Time: 2018-10-16
Author: shoffman@ibm.com
File Name: aif360/algorithms/inprocessing/meta_fair_classifier.py
Class Name: MetaFairClassifier
Method Name: fit
Project Name: matplotlib/matplotlib
Commit Name: 4428da66f0dbcba105ca22d45c6da929954a1d9d
Time: 2020-05-10
Author: ty.cx123@gmail.com
File Name: lib/mpl_toolkits/mplot3d/art3d.py
Class Name: Path3DCollection
Method Name: do_3d_projection
Project Name: biolab/orange3
Commit Name: 8dc523d9bd92011caca608833221916d9e1b8130
Time: 2014-02-18
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/classification/logistic_regression.py
Class Name: LogisticRegressionClassifier
Method Name: predict
Project Name: bashtage/linearmodels
Commit Name: eb47d0eacbb3e3bad905616f8d410ebff8b6a1a9
Time: 2019-03-21
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/model.py
Class Name: PanelOLS
Method Name: _lsmr_path