Skip to content

Commit 51e0a9a

Browse files
authored
remove redundant function (#326)
1 parent 5c1252f commit 51e0a9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/BART/BART_introduction.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"with pm.Model() as model_coal:\n",
199199
" μ_ = pmx.BART(\"μ_\", X=x_data, Y=y_data, m=20)\n",
200200
" μ = pm.Deterministic(\"μ\", np.abs(μ_))\n",
201-
" y_pred = pm.Poisson(\"y_pred\", mu=np.abs(μ), observed=y_data)\n",
201+
" y_pred = pm.Poisson(\"y_pred\", mu=μ, observed=y_data)\n",
202202
" idata_coal = pm.sample(random_seed=RANDOM_SEED)"
203203
]
204204
},

myst_nbs/BART/BART_introduction.myst.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ In PyMC a BART variable can be defined very similar to other random variables. O
8888
with pm.Model() as model_coal:
8989
μ_ = pmx.BART("μ_", X=x_data, Y=y_data, m=20)
9090
μ = pm.Deterministic("μ", np.abs(μ_))
91-
y_pred = pm.Poisson("y_pred", mu=np.abs(μ), observed=y_data)
91+
y_pred = pm.Poisson("y_pred", mu=μ, observed=y_data)
9292
idata_coal = pm.sample(random_seed=RANDOM_SEED)
9393
```
9494

0 commit comments

Comments
 (0)