Skip to content

Commit 77f7384

Browse files
committed
change the error message
1 parent f1be187 commit 77f7384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def Minibatch(variable: TensorVariable, *variables: TensorVariable, batch_size:
190190
for i, v in enumerate(tensors):
191191
if not is_valid_observed(v):
192192
raise ValueError(
193-
f"{i}: {v} is not valid for Minibatch, only constants or constants.astype(dtype) are allowed"
193+
f"{i}: {v} is not valid for Minibatch, only non-random variables are allowed"
194194
)
195195

196196
upper = tensors[0].shape[0]

0 commit comments

Comments
 (0)