Skip to content

Commit

Permalink
remove deprecated time.clock()
Browse files Browse the repository at this point in the history
  • Loading branch information
keyan3 committed Dec 4, 2020
1 parent 9ff3689 commit d66f74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imodels/rule_list/bayesian_rule_list/brl_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def run_bdl_multichain_serial(numiters, thinning, alpha, lbda, eta, X, Y, nrules
random.seed(seed)

# Run each chain
t1 = time.clock()
t1 = time.process_time()
if verbose:
print('Starting mcmc chains')
res = {}
Expand All @@ -108,7 +108,7 @@ def run_bdl_multichain_serial(numiters, thinning, alpha, lbda, eta, X, Y, nrules
nchains, d_inits[n])

if verbose:
print('Elapsed CPU time', time.clock() - t1)
print('Elapsed CPU time', time.process_time() - t1)

# Check convergence
Rhat = gelmanrubin(res)
Expand Down

0 comments on commit d66f74d

Please sign in to comment.