Commit fff0f943 authored by Junpeng Lao's avatar Junpeng Lao

clean up

parent fca57d6e
......@@ -197,7 +197,7 @@ def invlogit(x, eps=sys.float_info.epsilon):
def logbern(log_p):
if np.isnan(log_p):
raise FloatingPointError("log_p can't be nan.")
return np.log(nr.uniform()) < log_p
return np.log(np.random.uniform()) < log_p
def logit(p):
......@@ -15,7 +15,6 @@
from collections import namedtuple
import numpy as np
import numpy.random as nr
from ..arraystep import Competence
from .base_hmc import BaseHMC, HMCStepData, DivergenceInfo
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment