def finalize(self): def _max(v): try: return numpy.max(v) except ValueError: # empty array return numpy.nan return regularized_function(self.data,self.y,_max,bins=self.bins,range=self.range)
def finalize(self): #return adapt_object(\ return regularized_function(self.data,self.y,self.Zscore,bins=self.bins,range=self.range)