(self , value )
return (float(value) - self.min) / (self.max - self.min )
function
            将value 转换为归一化后的值
        params
            value 属性值
        return 
            [0,1]
        raise
            value == None ValueError
function
            将value 转换为归一化后的值
        params
            value 属性值
        return 
            [0,1]
        raise
            value == None ValueError
function 将value 转换为归一化后的值 params value 属性值 return [ 0 1 ] raise value == None ValueError
def get_normalization(self , value ):
        '''
        function
            将value 转换为归一化后的值
        params
            value 属性值
        return 
            [0,1]
        raise
            value == None ValueError
        '''
        if value is None :
            raise ValueError 
        if self.max == self.min:
            return 1
        return (float(value) - self.min) / (self.max - self.min )
def get_normalization ( self , value ) : if value is None : raise ValueError if self . max == self . min : return 1 return ( float ( value ) - self . min ) / ( self . max - self . min )