File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ def fit(
546
546
self .single_estimator_ = estimator
547
547
y_pred = self .single_estimator_ .predict (X )
548
548
self .k_ = np .full (
549
- shape = (n_samples , 1 ), fill_value = np .nan , dtype = " float"
549
+ shape = (n_samples , 1 ), fill_value = np .nan , dtype = float
550
550
)
551
551
else :
552
552
cv = cast (BaseCrossValidator , cv )
@@ -584,14 +584,14 @@ def fit(
584
584
)
585
585
586
586
for i , val_ind in enumerate (val_indices ):
587
- pred_matrix [val_ind , i ] = np .array (predictions [i ])
587
+ pred_matrix [val_ind , i ] = np .array (
588
+ predictions [i ], dtype = float
589
+ )
588
590
self .k_ [val_ind , i ] = 1
589
591
check_nan_in_aposteriori_prediction (pred_matrix )
590
592
591
593
y_pred = aggregate_all (agg_function , pred_matrix )
592
594
593
- # if self.conformity_score_function_.consistency_check:
594
- # self.conformity_score_function_.check_consistency(y, y_pred)
595
595
self .conformity_scores_ = (
596
596
self .conformity_score_function_ .get_conformity_scores (y , y_pred )
597
597
)
You can’t perform that action at this time.
0 commit comments