240d23ec41ee51c72a69fda93148cb534a6688ec,aif360/algorithms/inprocessing/celisMeta/StatisticalRate.py,StatisticalRate,getFuncValue,#StatisticalRate#,95
Before Change
def getFuncValue(self, dist_params, a,b, params, samples, z_0, z_1):
res = []
for x in samples:
t = abs(self.getValueForX(dist_params, a,b, params, samples, z_0, z_1, x, 0))
res.append(t)
l_1 = params[0]
l_2 = params[1]
a, b = a[0], b[0]
After Change
def getFuncValue(self, dist, a, b, params, samples, z_prior):
l_1, l_2 = params
exp = np.mean(np.abs(self.getValueForX(dist, a, b, params, z_prior,
samples)))
result = exp - b*l_1 - b*l_2
if l_1 > 0:
result += (b-a)*l_1
if l_2 > 0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: IBM/AIF360
Commit Name: 240d23ec41ee51c72a69fda93148cb534a6688ec
Time: 2020-08-05
Author: hoffman.sc@gmail.com
File Name: aif360/algorithms/inprocessing/celisMeta/StatisticalRate.py
Class Name: StatisticalRate
Method Name: getFuncValue
Project Name: IBM/AIF360
Commit Name: 240d23ec41ee51c72a69fda93148cb534a6688ec
Time: 2020-08-05
Author: hoffman.sc@gmail.com
File Name: aif360/algorithms/inprocessing/celisMeta/FalseDiscovery.py
Class Name: FalseDiscovery
Method Name: getFuncValue
Project Name: donlnz/nonconformist
Commit Name: 4de3a41cd1286ee4ea31c9f804a8403a141b11fe
Time: 2015-04-24
Author: henrik.linusson@gmail.com
File Name: nonconformist/evaluation.py
Class Name:
Method Name: reg_mean_size