|
16 | 16 | _check_psd_eigenvalues,
|
17 | 17 | )
|
18 | 18 | from ..utils._param_validation import Interval, StrOptions
|
19 |
| -from ..utils.deprecation import deprecated |
20 | 19 | from ..exceptions import NotFittedError
|
21 | 20 | from ..base import BaseEstimator, TransformerMixin, _ClassNamePrefixFeaturesOutMixin
|
22 | 21 | from ..preprocessing import KernelCenterer
|
@@ -155,24 +154,10 @@ class KernelPCA(_ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstimato
|
155 | 154 | If `n_components` and `remove_zero_eig` are not set,
|
156 | 155 | then all values are stored.
|
157 | 156 |
|
158 |
| - lambdas_ : ndarray of shape (n_components,) |
159 |
| - Same as `eigenvalues_` but this attribute is deprecated. |
160 |
| -
|
161 |
| - .. deprecated:: 1.0 |
162 |
| - `lambdas_` was renamed to `eigenvalues_` in version 1.0 and will be |
163 |
| - removed in 1.2. |
164 |
| -
|
165 | 157 | eigenvectors_ : ndarray of shape (n_samples, n_components)
|
166 | 158 | Eigenvectors of the centered kernel matrix. If `n_components` and
|
167 | 159 | `remove_zero_eig` are not set, then all components are stored.
|
168 | 160 |
|
169 |
| - alphas_ : ndarray of shape (n_samples, n_components) |
170 |
| - Same as `eigenvectors_` but this attribute is deprecated. |
171 |
| -
|
172 |
| - .. deprecated:: 1.0 |
173 |
| - `alphas_` was renamed to `eigenvectors_` in version 1.0 and will be |
174 |
| - removed in 1.2. |
175 |
| -
|
176 | 161 | dual_coef_ : ndarray of shape (n_samples, n_features)
|
177 | 162 | Inverse transform matrix. Only available when
|
178 | 163 | ``fit_inverse_transform`` is True.
|
@@ -310,25 +295,6 @@ def __init__(
|
310 | 295 | self.n_jobs = n_jobs
|
311 | 296 | self.copy_X = copy_X
|
312 | 297 |
|
313 |
| - # TODO: Remove in 1.2 |
314 |
| - # mypy error: Decorated property not supported |
315 |
| - @deprecated( # type: ignore |
316 |
| - "Attribute `lambdas_` was deprecated in version 1.0 and will be " |
317 |
| - "removed in 1.2. Use `eigenvalues_` instead." |
318 |
| - ) |
319 |
| - @property |
320 |
| - def lambdas_(self): |
321 |
| - return self.eigenvalues_ |
322 |
| - |
323 |
| - # mypy error: Decorated property not supported |
324 |
| - @deprecated( # type: ignore |
325 |
| - "Attribute `alphas_` was deprecated in version 1.0 and will be " |
326 |
| - "removed in 1.2. Use `eigenvectors_` instead." |
327 |
| - ) |
328 |
| - @property |
329 |
| - def alphas_(self): |
330 |
| - return self.eigenvectors_ |
331 |
| - |
332 | 298 | def _get_kernel(self, X, Y=None):
|
333 | 299 | if callable(self.kernel):
|
334 | 300 | params = self.kernel_params or {}
|
|
0 commit comments