def is_boolean(value):

    if value is None:
        return

    if not isinstance(value, bool):
        return c('boolean')
Calculation of the log predictive density by sampling
dataset/ETHPy150Open heiskr/sagefy/server/modules/validations.py/is_boolean--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/core/gp.py/GP.log_predictive_density_sampling