scvi.distributions.NegativeBinomialMixture.set_default_validate_args

static NegativeBinomialMixture.set_default_validate_args(value)

Sets whether validation is enabled or disabled.

The default behavior mimics Python’s assert statement: validation is on by default, but is disabled if Python is run in optimized mode (via python -O). Validation may be expensive, so you may want to disable it once a model is working.

Parameters
value : bool

Whether to enable validation.