Skip to content

Commit

Permalink
Modification residual J+GP avec max epsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
2018jabere committed Aug 2, 2023
1 parent 501d28f commit f71c7b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mapie/conformity_scores/residual_conformity_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ def get_bounds(
X, ensemble
)
signed = -1 if self.sym else 1
conformity_scores = conformity_scores * y_std_multi
conformity_scores = conformity_scores * np.maximum(self.eps, y_std_multi)
if method == "plus":
alpha_low = alpha_np if self.sym else alpha_np / 2
alpha_up = 1 - alpha_np if self.sym else 1 - alpha_np / 2
Expand Down
4 changes: 4 additions & 0 deletions mapie/regression/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import sys

sys.path.append("/Users/edgarjaber/Desktop/Thèse/Conférences/CEMRACS-2023/projet/MAPIE")

import numpy as np
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.model_selection import train_test_split
Expand Down

0 comments on commit f71c7b5

Please sign in to comment.