def cerrors(self,range=10000,smooth=0): result = [e*1.0/max(1,n) for e,n in self.cerror_log[-range:]] if smooth>0: result = filters.gaussian_filter(result,smooth,mode='mirror') return result