Skip to content

Commit eb77473

Browse files
committed
simplify
1 parent 0e994bb commit eb77473

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pymc/bart/bart.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from pandas import DataFrame, Series
2121

2222
from pymc.distributions.distribution import NoDistribution, _get_moment
23-
from pymc.distributions.shape_utils import rv_size_is_none
2423

2524
__all__ = ["BART"]
2625

@@ -139,9 +138,7 @@ def logp(x, *inputs):
139138

140139
@classmethod
141140
def get_moment(cls, rv, size, *rv_inputs):
142-
mean = rv.Y.mean()
143-
if not rv_size_is_none(size):
144-
mean = at.fill(size, mean)
141+
mean = at.fill(size, rv.Y.mean())
145142
return mean
146143

147144

0 commit comments

Comments
 (0)