Skip to content

Commit ed4b485

Browse files
committed
Removed old warnings code
1 parent 297b419 commit ed4b485

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pymc3/stats.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ def compare(model_dict, ic='WAIC', method='stacking', b_samples=1000,
548548
'is not supported.'.format(method))
549549

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

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

@@ -624,10 +624,6 @@ def gradient(w):
624624
d_se = np.sqrt(len(diff) * np.var(diff))
625625
se = ses[i]
626626
weight = weights[i]
627-
try:
628-
warn = warns[names.index(idx)]
629-
except AttributeError:
630-
warn = warns[idx]
631627
df_comp.at[idx] = (round(res[0], round_to),
632628
round(res[2], round_to),
633629
round(d_ic, round_to),

0 commit comments

Comments
 (0)