don't duplicate this code. Create a private method/function _check_increasing(X, y, self.increasing)