240d23ec41ee51c72a69fda93148cb534a6688ec,aif360/algorithms/inprocessing/celisMeta/StatisticalRate.py,StatisticalRate,getFuncValue,#StatisticalRate#,95

Before Change


			return t

	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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: scikit-learn-contrib/DESlib
Commit Name: f7a04171e58eb43dfe5b18d06c76481cdf1c5da9
Time: 2018-03-29
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/lca.py
Class Name: LCA
Method Name: estimate_competence


Project Name: Esri/raster-functions
Commit Name: e698c1f1bbab1691152743a4516cf574c406e391
Time: 2015-02-11
Author: jwasilkowski@esri.com
File Name: functions/LinearSpectralUnmixing.py
Class Name: LinearSpectralUnmixing
Method Name: updatePixels