log_prob_pointwise()#
- liesel.model.log_prob_pointwise(vars_, samples, newdata=None)[source]#
Returns a dictionary of pointwise log probabilities for the supplied variables.
- Parameters:
vars – Dictionary of variables for which to evaluate log probs.
samples (
dict[str,Array|ndarray|bool|number|bool|int|float|complex|TypedNdArray]) – Dictionary of samples at which to evaluate log probs. Ifsamplescontains entries for weak variables or for nodes inmodel_nodesthey are ignored.newdata (
dict[str,Array|ndarray|bool|number|bool|int|float|complex|TypedNdArray] |None, default:None) – Dictionary of new data at which to evaluate log probs. The keys should correspond to variable or node names in the model whose values should be set to the given values before evaluating predictions. IfNone(default), the current variable values are used.
- Return type:
- Returns:
A dictionary with pointwise log probability evaluations as values and the
Distnode names of the supplied variables as keys.