Skip to content

Commit

Permalink
Removed old warnings code
Browse files Browse the repository at this point in the history
  • Loading branch information
fonnesbeck committed Mar 14, 2018
1 parent 297b419 commit ed4b485
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pymc3/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ def compare(model_dict, ic='WAIC', method='stacking', b_samples=1000,
'is not supported.'.format(method))

ics = []
for c, (t, m) in enumerate(zip(traces, models)):
ics.append((c, ic_func(t, m, pointwise=True)))
for n, (m, t) in zip(names, model_dict.items()):
ics.append((n, ic_func(t, m, pointwise=True)))

ics.sort(key=lambda x: x[1][0])

Expand Down Expand Up @@ -624,10 +624,6 @@ def gradient(w):
d_se = np.sqrt(len(diff) * np.var(diff))
se = ses[i]
weight = weights[i]
try:
warn = warns[names.index(idx)]
except AttributeError:
warn = warns[idx]
df_comp.at[idx] = (round(res[0], round_to),
round(res[2], round_to),
round(d_ic, round_to),
Expand Down

0 comments on commit ed4b485

Please sign in to comment.