@@ -99,7 +99,6 @@ def __init__(
9999 full = False ,
100100 random_state = 0 ,
101101 ):
102-
103102 self .selection_type = selection_type
104103 self .n_to_select = n_to_select
105104 self .score_threshold = score_threshold
@@ -209,7 +208,6 @@ def fit(self, X, y=None, warm_start=False):
209208 n_iterations -= self .n_selected_
210209
211210 for n in self .report_progress (range (n_iterations )):
212-
213211 new_idx = self ._get_best_new_selection (self .score , X , y )
214212 if new_idx is not None :
215213 self ._update_post_selection (X , y , new_idx )
@@ -479,7 +477,6 @@ def __init__(
479477 full = False ,
480478 random_state = 0 ,
481479 ):
482-
483480 self .k = k
484481 self .tolerance = tolerance
485482 self .recompute_every = recompute_every
@@ -537,7 +534,6 @@ def _continue_greedy_search(self, X, y, n_to_select):
537534 """
538535
539536 for c in self .selected_idx_ :
540-
541537 if self .recompute_every != 0 and (
542538 np .linalg .norm (np .take (self .X_current_ , [c ], axis = self ._axis ))
543539 > self .tolerance
@@ -612,7 +608,6 @@ def _update_post_selection(self, X, y, last_selected):
612608 self .pi_ [last_selected ] = 0.0
613609
614610 def _orthogonalize (self , last_selected ):
615-
616611 if self ._axis == 1 :
617612 self .X_current_ = X_orthogonalizer (
618613 x1 = self .X_current_ , c = last_selected , tol = self .tolerance
@@ -739,7 +734,6 @@ def _continue_greedy_search(self, X, y, n_to_select):
739734 """
740735
741736 for c in self .selected_idx_ :
742-
743737 if self .recompute_every != 0 and (
744738 np .linalg .norm (np .take (self .X_current_ , [c ], axis = self ._axis ))
745739 > self .tolerance
@@ -834,7 +828,6 @@ def _compute_pi(self, X, y=None):
834828 return pi
835829
836830 def _orthogonalize (self , last_selected ):
837-
838831 if self ._axis == 1 :
839832 self .X_current_ = X_orthogonalizer (
840833 x1 = self .X_current_ , c = last_selected , tol = self .tolerance
@@ -992,7 +985,6 @@ def _init_greedy_search(self, X, y, n_to_select):
992985 raise ValueError ("Invalid value of the initialize parameter" )
993986
994987 def _update_haussdorf (self , X , y , last_selected ):
995-
996988 self .haussdorf_at_select_ [last_selected ] = self .haussdorf_ [last_selected ]
997989
998990 # distances of all points to the new point
@@ -1147,7 +1139,6 @@ def _init_greedy_search(self, X, y, n_to_select):
11471139 self ._update_post_selection (X , y , self .selected_idx_ [0 ])
11481140
11491141 def _update_haussdorf (self , X , y , last_selected ):
1150-
11511142 self .haussdorf_at_select_ [last_selected ] = self .haussdorf_ [last_selected ]
11521143
11531144 # distances of all points to the new point
0 commit comments