Obs()#
- liesel.model.legacy.Obs(value, distribution=None, name='')[source]#
Declares an observed variable.
Deprecated since version 0.2.6: Use lsl.obs() instead. This alias will be removed in v0.4.0
Sets the
Var.observed
flag. If the observed variable is a random variable, i.e. if it has an associated probability distribution, its log-probability is automatically added to the model log-likelihood (seeModel.log_lik
).- Return type:
- Returns:
An observed variable.
See also
obs()
New alias. Sould be used in future code.