Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pymc_bart/bart.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ def rng_fn( # pylint: disable=W0237
if not size:
size = None

if isinstance(cls.Y, (TensorSharedVariable, TensorVariable)):
Y = cls.Y.eval()
else:
Y = cls.Y

if not cls.all_trees:
if isinstance(cls.Y, (TensorSharedVariable, TensorVariable)):
Y = cls.Y.eval()
else:
Y = cls.Y

if size is not None:
return np.full((size[0], Y.shape[0]), Y.mean())
else:
Expand Down
Loading