@@ -125,8 +125,11 @@ def compute_scores(self, i: int) -> Tuple[torch.Tensor, torch.Tensor]:
125125 Tuple[torch.Tensor, torch.Tensor]: scores for samples with training labels and reconstructed labels
126126 """
127127
128+ # pyrefly: ignore [missing-attribute]
128129 received_labels = self ._analysis_input .received_labels [i ]
130+ # pyrefly: ignore [missing-attribute]
129131 y1_probs = self ._analysis_input .predictions_y1_generation
132+ # pyrefly: ignore [missing-attribute]
130133 predictions = self ._analysis_input .predictions
131134
132135 if self .score_computation_function is not None :
@@ -142,6 +145,7 @@ def compute_scores(self, i: int) -> Tuple[torch.Tensor, torch.Tensor]:
142145 np .log (prob_train + 1e-8 ) - np .log (prob_reconstruct + 1e-8 )
143146 ) * prob_diff_label ** self ._power
144147
148+ # pyrefly: ignore [missing-attribute]
145149 true_bits = self ._analysis_input .true_bits [i ]
146150 scores_train = torch .tensor (scores [true_bits == 0 ])
147151 scores_test = torch .tensor (scores [true_bits == 1 ])
@@ -152,7 +156,9 @@ def run_analysis(self) -> BaseAnalysisOutput:
152156 """Run LIA analysis"""
153157
154158 error_thresholds = np .linspace (0.01 , 1 , 100 )
159+ # pyrefly: ignore [missing-attribute]
155160 num_resampling = self ._analysis_input .y1 .shape [0 ]
161+ # pyrefly: ignore [missing-attribute]
156162 num_samples = self ._analysis_input .y1 .shape [1 ]
157163
158164 # run analysis for each game instance
@@ -221,9 +227,12 @@ def run_analysis(self) -> BaseAnalysisOutput:
221227 eps_at_tpr_bounds = (list (eps_tpr_lb ), list (eps_tpr_ub )),
222228 eps_at_fpr_bounds = (list (eps_fpr_lb ), list (eps_fpr_ub )),
223229 data_size = num_samples ,
230+ # pyrefly: ignore [missing-attribute]
224231 label_mean = np .mean (self ._analysis_input .y0 ),
232+ # pyrefly: ignore [missing-attribute]
225233 prediction_mean = np .mean (self ._analysis_input .predictions ),
226234 prediction_y1_generation_mean = np .mean (
235+ # pyrefly: ignore [missing-attribute]
227236 self ._analysis_input .predictions_y1_generation
228237 ),
229238 )
0 commit comments