(self, activations, unit)
return activations.min(), activations.max()
Returns a range of activations, using quantiles (1% to 99%)
        if given, or just using the min and max of the data if
        quantiles are not given.
Returns a range of activations, using quantiles (1% to 99%)
        if given, or just using the min and max of the data if
        quantiles are not given.
Returns a range of activations using quantiles ( 1% to 99% ) if given or just using the min and max of the data if quantiles are not given .
def range_for(self, activations, unit):
        '''
        Returns a range of activations, using quantiles (1% to 99%)
        if given, or just using the min and max of the data if
        quantiles are not given.
        '''
        if unit is not None and self.actrange is not None:
            if hasattr(unit, '__len__'):
                unit = unit[1]
            return tuple(i.item() for i in self.actrange[unit])
        return activations.min(), activations.max()
def range_for ( self , activations , unit ) : if unit is not None and self . actrange is not None : if hasattr ( unit , '__len__' ) : unit = unit [ 1 ] return tuple ( i . item ( ) for i in self . actrange [ unit ] ) return activations . min ( ) , activations . max ( )