Skip to content

Commit

Permalink
ENH: correcting big misktake in ltt
Browse files Browse the repository at this point in the history
  • Loading branch information
SZiane committed Jul 12, 2023
1 parent 8a1d21d commit 71b4c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapie/control_risk/ltt.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ def ltt_procedure(
+ " controlling precision with LTT. "
)
p_values = compute_hoeffdding_bentkus_p_value(r_hat, n_obs, alpha_np)
N = len(p_values)
valid_index = []
for i in range(len(alpha_np)):
l_index = np.where(p_values[:, i] <= delta/n_obs)[0].tolist()
l_index = np.where(p_values[:, i] <= delta/N)[0].tolist()
valid_index.append(l_index)
return valid_index, p_values

Expand Down

0 comments on commit 71b4c67

Please sign in to comment.