示例#1
0
 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)
示例#2
0
 def finalize(self):
     #return adapt_object(\
     return  regularized_function(self.data,self.y,self.Zscore,bins=self.bins,range=self.range)