def _early_stopping_validator(x):
    if x:
        if ((x <= 0) or (not isinstance(x, int))):
            raise ValueError('Early stopping must be a positive number bigger than 0 or None for disable it')
        return x
    return x
def _early_stopping_validator(x):
    if x:
        if ((x <= 0) or (not isinstance(x, int))):
            raise ValueError('Early stopping must be a positive number bigger than 0 or None for disable it')
        return x
    return x