Var.predict()

Contents

Var.predict()#

Var.predict(samples, newdata=None)[source]#

Returns an array of predictions for this variable.

Parameters:
  • samples (dict[str, TypeAliasType]) – Dictionary of samples at which to evaluate predictions. All values of the dictionary are assumed to have two leading dimensions corresponding to (nchains, niteration).

  • newdata (dict[str, TypeAliasType] | None) – Dictionary of new data at which to evaluate predictions. The keys should correspond to variable or node names in the model whose values should be set to the given values before evaluating predictions. (default: None)

Return type:

TypeAliasType