240d23ec41ee51c72a69fda93148cb534a6688ec,aif360/algorithms/inprocessing/meta_fair_classifier.py,MetaFairClassifier,predict,#MetaFairClassifier#,64
Before Change
BinaryLabelDataset: Transformed dataset.
predictions, scores = [], []
for x in dataset.features:
t = self.model(x)
predictions.append(int(t > 0))
scores.append((t+1)/2)
pred_dataset = dataset.copy()
pred_dataset.labels = np.array([predictions]).T
pred_dataset.scores = np.array([scores]).T
return pred_dataset
After Change
t = self.model(dataset.features)
pred_dataset = dataset.copy()
pred_dataset.labels = (t > 0).astype(int).reshape((-1, 1))
pred_dataset.scores = ((t + 1) / 2).reshape((-1, 1))
return pred_dataset
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: IBM/AIF360
Commit Name: 240d23ec41ee51c72a69fda93148cb534a6688ec
Time: 2020-08-05
Author: hoffman.sc@gmail.com
File Name: aif360/algorithms/inprocessing/meta_fair_classifier.py
Class Name: MetaFairClassifier
Method Name: predict
Project Name: scikit-learn-contrib/DESlib
Commit Name: f0c15f219b0761b14329ddd416cda82fa4bae841
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/mcb.py
Class Name: MCB
Method Name: estimate_competence
Project Name: scikit-learn-contrib/DESlib
Commit Name: cd1a5446ce793d09f28d021c466a279301eb51f0
Time: 2018-04-01
Author: rafaelmenelau@gmail.com
File Name: deslib/des/meta_des.py
Class Name: METADES
Method Name: estimate_competence