Skip to content

Commit fff0f94

Browse files
committed
clean up
1 parent fca57d6 commit fff0f94

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pymc3/math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def invlogit(x, eps=sys.float_info.epsilon):
197197
def logbern(log_p):
198198
if np.isnan(log_p):
199199
raise FloatingPointError("log_p can't be nan.")
200-
return np.log(nr.uniform()) < log_p
200+
return np.log(np.random.uniform()) < log_p
201201

202202

203203
def logit(p):

pymc3/step_methods/hmc/nuts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from collections import namedtuple
1616

1717
import numpy as np
18-
import numpy.random as nr
1918

2019
from ..arraystep import Competence
2120
from .base_hmc import BaseHMC, HMCStepData, DivergenceInfo

0 commit comments

Comments
 (0)