Model.predict()#
- Model.predict(samples, predict=None, newdata=None)[source]#
Returns a dictionary of predictions.
- Parameters:
samples (
dict[str,Array|ndarray|bool|number|bool|int|float|complex|TypedNdArray]) – Dictionary of samples at which to evaluate predictions. Ifsamplescontains entries for weak variables or for nodes inmodel_nodesthey are ignored.predict (
Sequence[str] |None, default:None) – Sequence of strings, which are the names of nodes or variables. Predictions will be returned only for the nodes or variables inlcuded here. IfNone(default), predictions will be returned for all variables in the model (but not for nodes).newdata (
dict[str,Array|ndarray|bool|number|bool|int|float|complex|TypedNdArray] |None, default: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. IfNone(default), the current variable values are used.
- Return type: