(self, X)
return X
Clip values to fall within any global or column-wise min/max constraints
Clip values to fall within any global or column-wise min/max constraints
Clip values to fall within any global or column - wise min / max constraints
def _clip(self, X):
        """
        Clip values to fall within any global or column-wise min/max constraints
        """
        X = np.asarray(X)
        if self.min_value is not None:
            X[X < self.min_value] = self.min_value
        if self.max_value is not None:
            X[X > self.max_value] = self.max_value
        return X
def _clip ( self , X ) : X = np . asarray ( X ) if self . min_value is not None : X [ X < self . min_value ] = self . min_value if self . max_value is not None : X [ X > self . max_value ] = self . max_value return X