tracts.likelihood_options.LikelihoodOptions#
- class LikelihoodOptions(verbose_log=0, verbose_screen=10, include_autosomes=True, include_allosomes=True)#
Bases:
objectLogging verbosity and autosome/allosome inclusion flags for a likelihood evaluation.
- verbose_log#
Log optimization status every
verbose_logiterations (0 = never). Defaults to 0.- Type:
int
- verbose_screen#
Print optimization status every
verbose_screeniterations (0 = never). Defaults to 10.- Type:
int
- include_autosomes#
Whether to include the autosomal log-likelihood in the objective. Defaults to True.
- Type:
bool
- include_allosomes#
Whether to include the allosomal log-likelihood in the objective. Defaults to True.
- Type:
bool
- include_allosomes: bool = True#
- include_autosomes: bool = True#
- with_overrides(**overrides)#
Returns a copy of this LikelihoodOptions with the given fields overridden.
Used where
include_autosomes/include_allosomesvary per evaluation within a single optimization run (e.g. step 1 evaluates autosomes only, step 2 evaluates allosomes and optionally autosomes), whileverbose_log/verbose_screenstay fixed for the whole run.- Return type: