forked from moreo/QuaPy
bug fix in covariate shift protocol
This commit is contained in:
parent
c0c37f0a17
commit
cf0bd14cf1
|
@ -341,7 +341,7 @@ class CovariateShiftPP(AbstractStochasticSeededProtocol):
|
||||||
indexesA, indexesB = indexes
|
indexesA, indexesB = indexes
|
||||||
sampleA = self.A.sampling_from_index(indexesA)
|
sampleA = self.A.sampling_from_index(indexesA)
|
||||||
sampleB = self.B.sampling_from_index(indexesB)
|
sampleB = self.B.sampling_from_index(indexesB)
|
||||||
return self.collator(sampleA+sampleB)
|
return sampleA+sampleB
|
||||||
|
|
||||||
def total(self):
|
def total(self):
|
||||||
return self.repeats * len(self.mixture_points)
|
return self.repeats * len(self.mixture_points)
|
||||||
|
|
Loading…
Reference in New Issue