@@ -87,6 +87,12 @@ class LMNN(MahalanobisMixin, TransformerMixin):
8787 Tolerance of the optimization procedure. If the objective value varies
8888 less than `tol`, we consider the algorithm has converged and stop it.
8989
90+ use_pca : Not used
91+
92+ .. deprecated:: 0.5.0
93+ `use_pca` was deprecated in version 0.5.0 and will
94+ be removed in 0.6.0.
95+
9096 verbose : bool, optional (default=False)
9197 Whether to print the progress of the optimization procedure.
9298
@@ -151,7 +157,7 @@ class LMNN(MahalanobisMixin, TransformerMixin):
151157
152158 def __init__ (self , init = None , k = 3 , min_iter = 50 , max_iter = 1000 ,
153159 learn_rate = 1e-7 , regularization = 0.5 , convergence_tol = 0.001 ,
154- use_pca = True , verbose = False , preprocessor = None ,
160+ use_pca = 'deprecated' , verbose = False , preprocessor = None ,
155161 n_components = None , num_dims = 'deprecated' , random_state = None ):
156162 self .init = init
157163 self .k = k
@@ -173,6 +179,11 @@ def fit(self, X, y):
173179 ' It has been deprecated in version 0.5.0 and will be'
174180 ' removed in 0.6.0. Use "n_components" instead' ,
175181 DeprecationWarning )
182+ if self .use_pca != 'deprecated' :
183+ warnings .warn ('"use_pca" parameter is not used.'
184+ ' It has been deprecated in version 0.5.0 and will be'
185+ ' removed in 0.6.0.' ,
186+ DeprecationWarning )
176187 k = self .k
177188 reg = self .regularization
178189 learn_rate = self .learn_rate
0 commit comments