
    -i)                        S r SSKJrJrJr  SSKJrJr  SSKr	SSK
Jr  SSKJr  SSKJr  SS	KJr  SS
KJr  SSKJr  SSKJrJr  SSKJrJrJr  SSKJrJrJ r J!r!  SSK"J#r#J$r$  SSK%J&r&J'r'  SSK(J)r)  S r*S r+ " S S\)5      r,g)zPrincipal Component Analysis.    )lgammalogsqrt)IntegralRealN)linalg)issparse)svds   )_fit_context)check_random_state)_init_arpack_v0)_convert_to_numpyget_namespace)Interval
RealNotInt
StrOptions)_randomized_svdfast_logdetstable_cumsumsvd_flip)_implicit_column_offsetmean_variance_axis)check_is_fittedvalidate_data   )_BasePCAc           
         [        U 5      u  p4U R                  S   nSUs=::  a  U:  d  O  [        S5      eSnXS-
     U:  a  UR                  * $ U* [	        S5      -  n[        SUS-   5       H:  nU[        XX-
  S-   S-  5      [	        UR                  5      XX-
  S-   -  S-  -
  -  nM<     UR                  UR	                  U SU 5      5      n	U	* U-  S-  n	[        XcR                  XS 5      XQ-
  -  5      n
[	        U
5      * U-  XQ-
  -  S-  nXQ-  XS-   -  S-  -
  n[	        SUR                  -  5      X-   -  S-  nSnUR                  U S	S
9nXX& [        U5       HY  n[        US-   U R                  S   5       H6  nU[	        X   U U   -
  SUU   -  SX   -  -
  -  5      [	        U5      -   -  nM8     M[     Xy-   U-   U-   US-  -
  U[	        U5      -  S-  -
  nU$ )a  Compute the log-likelihood of a rank ``rank`` dataset.

The dataset is assumed to be embedded in gaussian noise of shape(n,
dimf) having spectrum ``spectrum``. This implements the method of
T. P. Minka.

Parameters
----------
spectrum : ndarray of shape (n_features,)
    Data spectrum.
rank : int
    Tested rank value. It should be strictly lower than n_features,
    otherwise the method isn't specified (division by zero in equation
    (31) from the paper).
n_samples : int
    Number of samples.

Returns
-------
ll : float
    The log-likelihood.

References
----------
This implements the method of `Thomas P. Minka:
Automatic Choice of Dimensionality for PCA. NIPS 2000: 598-604
<https://proceedings.neurips.cc/paper/2000/file/7503cfacd12053d309b6bed5c89de212-Paper.pdf>`_
r   r   z0the tested rank should be in [1, n_features - 1]gV瞯<       @N      ?        Tcopy)r   shape
ValueErrorinfr   ranger   pisummaxasarray)spectrumrank	n_samplesxp_
n_featuresepspuiplvpvmpppa	spectrum_jlls                     M/var/www/html/venv/lib/python3.13/site-packages/sklearn/decomposition/_pca.py_assess_dimensionr?      s    : (#EB"J!z!KLL
CqC w
S	B1dQh
JNQ&#-.RUUz~PQ?Q1RUX1XX	
  
 
x'	(B
y3	BC(J,=>?A
a&9	
 1	2S	8BD3J/#55A	S255[	QX	&	,B	B

8$
/I!"d4[q1uhnnQ/0A#x{*sYq\/AC),DV/VWI B 1  
2	R#X	%s9~(=(C	CBI    c                     [        U 5      u  p#UR                  U 5      nUR                  * US'   [        SU R                  S   5       H  n[        XU5      XE'   M     UR                  U5      $ )zmInfers the dimension of a dataset with a given spectrum.

The returned value will be in [1, n_features - 1].
r   r   )r   
empty_liker&   r'   r$   r?   argmax)r,   r.   r/   r0   r=   r-   s         r>   _infer_dimensionrD   c   sc    
 (#EB	x	 BVVGBqEa*+$XY? ,99R=r@   c                   h  ^  \ rS rSr% Sr\" \SSSS9\" \SSSS9\" S	15      S/S
/S
/\" 1 Sk5      /\" \	SSSS9/\" S15      \" \SSSS9/\" \SSSS9/\" 1 Sk5      /S/S.	r
\\S'    S!SSSSSSSSS.S jjr\" SS9S!S j5       r\" SS9S!S j5       rS rS rS rS rS!S jrU 4S jrS rU =r$ )"PCAq   a'  Principal component analysis (PCA).

Linear dimensionality reduction using Singular Value Decomposition of the
data to project it to a lower dimensional space. The input data is centered
but not scaled for each feature before applying the SVD.

It uses the LAPACK implementation of the full SVD or a randomized truncated
SVD by the method of Halko et al. 2009, depending on the shape of the input
data and the number of components to extract.

With sparse inputs, the ARPACK implementation of the truncated SVD can be
used (i.e. through :func:`scipy.sparse.linalg.svds`). Alternatively, one
may consider :class:`TruncatedSVD` where the data are not centered.

Notice that this class only supports sparse inputs for some solvers such as
"arpack" and "covariance_eigh". See :class:`TruncatedSVD` for an
alternative with sparse data.

For a usage example, see
:ref:`sphx_glr_auto_examples_decomposition_plot_pca_iris.py`

Read more in the :ref:`User Guide <PCA>`.

Parameters
----------
n_components : int, float or 'mle', default=None
    Number of components to keep.
    if n_components is not set all components are kept::

        n_components == min(n_samples, n_features)

    If ``n_components == 'mle'`` and ``svd_solver == 'full'``, Minka's
    MLE is used to guess the dimension. Use of ``n_components == 'mle'``
    will interpret ``svd_solver == 'auto'`` as ``svd_solver == 'full'``.

    If ``0 < n_components < 1`` and ``svd_solver == 'full'``, select the
    number of components such that the amount of variance that needs to be
    explained is greater than the percentage specified by n_components.

    If ``svd_solver == 'arpack'``, the number of components must be
    strictly less than the minimum of n_features and n_samples.

    Hence, the None case results in::

        n_components == min(n_samples, n_features) - 1

copy : bool, default=True
    If False, data passed to fit are overwritten and running
    fit(X).transform(X) will not yield the expected results,
    use fit_transform(X) instead.

whiten : bool, default=False
    When True (False by default) the `components_` vectors are multiplied
    by the square root of n_samples and then divided by the singular values
    to ensure uncorrelated outputs with unit component-wise variances.

    Whitening will remove some information from the transformed signal
    (the relative variance scales of the components) but can sometime
    improve the predictive accuracy of the downstream estimators by
    making their data respect some hard-wired assumptions.

svd_solver : {'auto', 'full', 'covariance_eigh', 'arpack', 'randomized'},            default='auto'
    "auto" :
        The solver is selected by a default 'auto' policy is based on `X.shape` and
        `n_components`: if the input data has fewer than 1000 features and
        more than 10 times as many samples, then the "covariance_eigh"
        solver is used. Otherwise, if the input data is larger than 500x500
        and the number of components to extract is lower than 80% of the
        smallest dimension of the data, then the more efficient
        "randomized" method is selected. Otherwise the exact "full" SVD is
        computed and optionally truncated afterwards.
    "full" :
        Run exact full SVD calling the standard LAPACK solver via
        `scipy.linalg.svd` and select the components by postprocessing
    "covariance_eigh" :
        Precompute the covariance matrix (on centered data), run a
        classical eigenvalue decomposition on the covariance matrix
        typically using LAPACK and select the components by postprocessing.
        This solver is very efficient for n_samples >> n_features and small
        n_features. It is, however, not tractable otherwise for large
        n_features (large memory footprint required to materialize the
        covariance matrix). Also note that compared to the "full" solver,
        this solver effectively doubles the condition number and is
        therefore less numerical stable (e.g. on input data with a large
        range of singular values).
    "arpack" :
        Run SVD truncated to `n_components` calling ARPACK solver via
        `scipy.sparse.linalg.svds`. It requires strictly
        `0 < n_components < min(X.shape)`
    "randomized" :
        Run randomized SVD by the method of Halko et al.

    .. versionadded:: 0.18.0

    .. versionchanged:: 1.5
        Added the 'covariance_eigh' solver.

tol : float, default=0.0
    Tolerance for singular values computed by svd_solver == 'arpack'.
    Must be of range [0.0, infinity).

    .. versionadded:: 0.18.0

iterated_power : int or 'auto', default='auto'
    Number of iterations for the power method computed by
    svd_solver == 'randomized'.
    Must be of range [0, infinity).

    .. versionadded:: 0.18.0

n_oversamples : int, default=10
    This parameter is only relevant when `svd_solver="randomized"`.
    It corresponds to the additional number of random vectors to sample the
    range of `X` so as to ensure proper conditioning. See
    :func:`~sklearn.utils.extmath.randomized_svd` for more details.

    .. versionadded:: 1.1

power_iteration_normalizer : {'auto', 'QR', 'LU', 'none'}, default='auto'
    Power iteration normalizer for randomized SVD solver.
    Not used by ARPACK. See :func:`~sklearn.utils.extmath.randomized_svd`
    for more details.

    .. versionadded:: 1.1

random_state : int, RandomState instance or None, default=None
    Used when the 'arpack' or 'randomized' solvers are used. Pass an int
    for reproducible results across multiple function calls.
    See :term:`Glossary <random_state>`.

    .. versionadded:: 0.18.0

Attributes
----------
components_ : ndarray of shape (n_components, n_features)
    Principal axes in feature space, representing the directions of
    maximum variance in the data. Equivalently, the right singular
    vectors of the centered input data, parallel to its eigenvectors.
    The components are sorted by decreasing ``explained_variance_``.

explained_variance_ : ndarray of shape (n_components,)
    The amount of variance explained by each of the selected components.
    The variance estimation uses `n_samples - 1` degrees of freedom.

    Equal to n_components largest eigenvalues
    of the covariance matrix of X.

    .. versionadded:: 0.18

explained_variance_ratio_ : ndarray of shape (n_components,)
    Percentage of variance explained by each of the selected components.

    If ``n_components`` is not set then all components are stored and the
    sum of the ratios is equal to 1.0.

singular_values_ : ndarray of shape (n_components,)
    The singular values corresponding to each of the selected components.
    The singular values are equal to the 2-norms of the ``n_components``
    variables in the lower-dimensional space.

    .. versionadded:: 0.19

mean_ : ndarray of shape (n_features,)
    Per-feature empirical mean, estimated from the training set.

    Equal to `X.mean(axis=0)`.

n_components_ : int
    The estimated number of components. When n_components is set
    to 'mle' or a number between 0 and 1 (with svd_solver == 'full') this
    number is estimated from input data. Otherwise it equals the parameter
    n_components, or the lesser value of n_features and n_samples
    if n_components is None.

n_samples_ : int
    Number of samples in the training data.

noise_variance_ : float
    The estimated noise covariance following the Probabilistic PCA model
    from Tipping and Bishop 1999. See "Pattern Recognition and
    Machine Learning" by C. Bishop, 12.2.1 p. 574 or
    http://www.miketipping.com/papers/met-mppca.pdf. It is required to
    compute the estimated data covariance and score samples.

    Equal to the average of (min(n_features, n_samples) - n_components)
    smallest eigenvalues of the covariance matrix of X.

n_features_in_ : int
    Number of features seen during :term:`fit`.

    .. versionadded:: 0.24

feature_names_in_ : ndarray of shape (`n_features_in_`,)
    Names of features seen during :term:`fit`. Defined only when `X`
    has feature names that are all strings.

    .. versionadded:: 1.0

See Also
--------
KernelPCA : Kernel Principal Component Analysis.
SparsePCA : Sparse Principal Component Analysis.
TruncatedSVD : Dimensionality reduction using truncated SVD.
IncrementalPCA : Incremental Principal Component Analysis.

References
----------
For n_components == 'mle', this class uses the method from:
`Minka, T. P.. "Automatic choice of dimensionality for PCA".
In NIPS, pp. 598-604 <https://tminka.github.io/papers/pca/minka-pca.pdf>`_

Implements the probabilistic PCA model from:
`Tipping, M. E., and Bishop, C. M. (1999). "Probabilistic principal
component analysis". Journal of the Royal Statistical Society:
Series B (Statistical Methodology), 61(3), 611-622.
<http://www.miketipping.com/papers/met-mppca.pdf>`_
via the score and score_samples methods.

For svd_solver == 'arpack', refer to `scipy.sparse.linalg.svds`.

For svd_solver == 'randomized', see:
:doi:`Halko, N., Martinsson, P. G., and Tropp, J. A. (2011).
"Finding structure with randomness: Probabilistic algorithms for
constructing approximate matrix decompositions".
SIAM review, 53(2), 217-288.
<10.1137/090771806>`
and also
:doi:`Martinsson, P. G., Rokhlin, V., and Tygert, M. (2011).
"A randomized algorithm for the decomposition of matrices".
Applied and Computational Harmonic Analysis, 30(1), 47-68.
<10.1016/j.acha.2010.02.003>`

Examples
--------
>>> import numpy as np
>>> from sklearn.decomposition import PCA
>>> X = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
>>> pca = PCA(n_components=2)
>>> pca.fit(X)
PCA(n_components=2)
>>> print(pca.explained_variance_ratio_)
[0.9924 0.0075]
>>> print(pca.singular_values_)
[6.30061 0.54980]

>>> pca = PCA(n_components=2, svd_solver='full')
>>> pca.fit(X)
PCA(n_components=2, svd_solver='full')
>>> print(pca.explained_variance_ratio_)
[0.9924 0.00755]
>>> print(pca.singular_values_)
[6.30061 0.54980]

>>> pca = PCA(n_components=1, svd_solver='arpack')
>>> pca.fit(X)
PCA(n_components=1, svd_solver='arpack')
>>> print(pca.explained_variance_ratio_)
[0.99244]
>>> print(pca.singular_values_)
[6.30061]
r   Nleft)closedr   neithermleboolean>   autofullarpack
randomizedcovariance_eighrM   >   LUQRrM   nonerandom_state	n_componentsr#   whiten
svd_solvertoliterated_powern_oversamplespower_iteration_normalizerrU   _parameter_constraintsTFr!   
   )r#   rX   rY   rZ   r[   r\   r]   rU   c                p    Xl         X l        X0l        X@l        XPl        X`l        Xpl        Xl        Xl        g NrV   )
selfrW   r#   rX   rY   rZ   r[   r\   r]   rU   s
             r>   __init__PCA.__init__  s6     )	$,**D'(r@   )prefer_skip_nested_validationc                 (    U R                  U5        U $ )a6  Fit the model with X.

Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
    Training data, where `n_samples` is the number of samples
    and `n_features` is the number of features.

y : Ignored
    Ignored.

Returns
-------
self : object
    Returns the instance itself.
)_fit)rb   Xys      r>   fitPCA.fit  s    $ 			!r@   c                    U R                  U5      u  p4pQpgUbY  USS2SU R                  24   nU R                  (       a   U[        UR                  S   S-
  5      -  nU$ X4SU R                   -  nU$ U R                  XUS9$ )a  Fit the model with X and apply the dimensionality reduction on X.

Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
    Training data, where `n_samples` is the number of samples
    and `n_features` is the number of features.

y : Ignored
    Ignored.

Returns
-------
X_new : ndarray of shape (n_samples, n_components)
    Transformed values.

Notes
-----
This method returns a Fortran-ordered array. To convert it to a
C-ordered array, use 'np.ascontiguousarray'.
Nr   r   )x_is_centered)rg   n_components_rX   r   r$   
_transform)rb   rh   ri   USr0   rm   r/   s           r>   fit_transformPCA.fit_transform  s    . )-		!%aM=!)t))))*A{{T!''!*q.))
 H +++,,H??1?FFr@   c           
         [        U5      u  p#[        U5      (       a)  U R                  S;  a  [        SU R                   S35      eU R                  S:X  a  U(       a  [	        S5      e[        U UUR                  UR                  /SSSSS	9nU R                  U l        U R                  S
:X  a  [        U5      (       a  SU l        U R                  c?  U R                  S:w  a  [        UR                  5      nO%[        UR                  5      S-
  nOU R                  nU R                  S
:X  a  UR                  S   S::  a+  UR                  S   SUR                  S   -  :  a  SU l        O\[        UR                  5      S::  d  US:X  a  SU l        O5SUs=::  a  S[        UR                  5      -  :  a  O  OSU l        OSU l        U R                  S;   a  U R                  XX#5      $ U R                  S;   a  U R                  XU5      $ g)z?Dispatch to the right submethod depending on the chosen solver.rM   rO   rQ   zWPCA only support sparse inputs with the "arpack" and "covariance_eigh" solvers, while "z:" was passed. See TruncatedSVD for a possible alternative.rO   zCPCA with svd_solver='arpack' is not supported for Array API inputs.T)csrcscF)dtypeforce_writeableaccept_sparse	ensure_2dr#   rM   Nr   i  r   r_   rQ   i  rK   rN   g?rP   )rN   rQ   )rO   rP   )r   r	   rY   	TypeErrorr%   r   float64float32_fit_svd_solverrW   minr$   r*   	_fit_full_fit_truncated)rb   rh   r/   is_array_api_compliantrW   s        r>   rg   PCA._fit  s   %21%5" A;;4??2WW66:oo5F G<< 
 ??h&+AU  ::rzz* (
  $6)hqkk#+D $##x/"177|"177|a/,,L6) wwqzU"qwwqzR!''!*_'D'8$QWW$(='-$l7S3qww<%77'3$ (.$ #>>>>!2NN!!%==&&q;; >r@   c           	          UR                   u  pVUS:X  a  XV:  a  [        S5      eO@SUs=::  a  [        XV5      ::  d*  O  [        SU S[        XV5       SU R                  < 35      eUR	                  USS9U l        UR                  UR                  U R
                  5      S5      U l        U R                  S	:X  a  U R                  (       a  UR                  US
S9OUnXpR
                  -  nU R                  (       + nU(       d  [        R                  " USS9u  pnOUR                  R                  USS9u  pnU
S-  US-
  -  nGOU R                  S:X  d   eSnUR                  U-  nUUUR                  U R
                  S5      -  UR                  U R
                  S5      -  -  nXS-
  -  nUR                  R                  U5      u  pUR                  UR                  U5      S5      nUR                  U5      nUR                  USS9nUR                  USS9nSXS:  '   UnUR                  XS-
  -  5      n
UR                  nSn	[        XSS9u  pUnUR!                  U5      nUU-  nUR                  U
S
S9nUS:X  a  [#        X5      nOHSUs=:  a  S:  a;  O  O8U(       a  [%        UUS9nOUn['        U5      n[(        R*                  " UUSS9S-   nU[        Xe5      :  a  UR	                  XS 5      U l        OSU l        XPl        X l        UR                  USU2SS24   S
S9U l        UR                  USU S
S9U l        UR                  USU S
S9U l        UR                  USU S
S9U l        XXX4$ )z)Fit the model by computing full SVD on X.rK   z?n_components='mle' is only supported if n_samples >= n_featuresr   n_components=z2 must be between 0 and min(n_samples, n_features)=z with svd_solver=axis)rN   Tr"   F)full_matricesr   r   rQ   )r   r   )r   r   r!   Nu_based_decisionr    )r/   right)side)r$   r%   r   r   meanmean_reshaper+   r#   r   svdTeighflipr   r   r)   rD   r   r   npsearchsortednoise_variance_
n_samples_rn   components_explained_variance_explained_variance_ratio_singular_values_)rb   rh   rW   r/   r   r.   r1   
X_centeredrm   rp   rq   Vtr   C	eigenvals	eigenvecsr   	total_varr   r   explained_variance_ratio_npratio_cumsums                         r>   r   PCA._fit_full   s    !	5 % U  & l@c)&@@~ ...1).H-I J"2257  WWQQW'
 ZZ

4:: 6>
6)59YYAD1AJ**$J $		MM) "::jFb99==5=Ib#$a4IM": ''+<<<<  "MaA**TZZ12**TZZ12A
 QA#%99>>!#4 I 

2::i#8%@I

9-I	2I	2I *-I#o&"+ 	]34ABA 7 FF./	$7)$C!::ad:3 5 +,?KL## & /@-"/+ /H+()DEL??<GTWXXL #j44#%77+>}+M#ND #&D #) ::k-<-2B&C$:O $&::.T $. $
  *,%m|44 *4 *
& !#

+;M\+JQU
 VRM--r@   c           
         UR                   u  pEU R                  n[        U[        5      (       a  [	        SU< SU< S35      eSUs=::  a  [        XE5      ::  d#  O  [	        SU< S[        XE5      < SU< S35      eUS:X  a0  U[        XE5      :X  a!  [	        SU< S[        XE5      < SU< S35      e[        U R                  5      nS	n[        U5      (       aC  [        US
S9u  U l
        n	U	R                  5       U-  US-
  -  n[        XR                  5      n
SnOWUR                  US
S9U l
        U R                  (       a  UR                  USS9OUn
XR                  -  n
U R                  (       + nUS:X  a]  [!        [        UR                   5      U5      n[#        XU R$                  US9u  pnUS	S	S2   n['        US	S	2S	S	S24   US	S	S2   SS9u  pOBUS:X  a<  [)        U
UU R*                  U R,                  U R.                  SUS9u  pn['        XSS9u  pX@l        WU l        X l        WS-  US-
  -  U l        Uc+  UR                   S
   S-
  nU
S-  n
UR                  U
5      U-  nU R6                  U-  U l        UR                  USS9U l        U R4                  [        XT5      :  aD  XR                  U R6                  5      -
  U l        U =R<                  [        XT5      U-
  -  sl        OSU l        WXXU4$ )zIFit the model by computing truncated SVD (by ARPACK or randomized)
on X.
r   z% cannot be a string with svd_solver=''r   z2 must be between 1 and min(n_samples, n_features)=z with svd_solver='rO   z7 must be strictly less than min(n_samples, n_features)=Nr   r   FTr"   )krZ   v0r   r   rP   )rW   r\   n_iterr]   	flip_signrU   r   r!   )r$   r   
isinstancestrr%   r   r   rU   r	   r   r   r)   r   r   r#   r+   r   r
   rZ   r   r   r\   r[   r]   r   r   rn   r   r   r   r   )rb   rh   rW   r/   r.   r1   rY   rU   r   varr   rm   r   rp   rq   r   Ns                    r>   r   PCA._fit_truncated  s    !"	))
lC((-  l@c)&@@  Y!;ZI  8#I8R(R  Y!;ZI  *$*;*;< 	A;;0;ODJ	I-Q?I0JJ?J!M+DJ59YYAD1AJ**$J $		MM! QWW|<BJDHHLHA" $B$AQq$B$wZDbDEJEAr<'&)"00**+/+J+J)HA" QU;EA#) %&qDY]#;  
QA1Jz*Q.I)-)A)AI)M& "

14
 8J ::#,vvd6N6N/O#OD   C
$>$MM #&D !2--r@   c                 d   [        U 5        [        U5      u  p#[        XUR                  UR                  /SS9nXR
                  -
  nUR                  S   nU R                  5       nSUR                  XDU-  -  SS9-  nUSU[        S[        R                  -  5      -  [        U5      -
  -  -  nU$ )an  Return the log-likelihood of each sample.

See. "Pattern Recognition and Machine Learning"
by C. Bishop, 12.2.1 p. 574
or http://www.miketipping.com/papers/met-mppca.pdf

Parameters
----------
X : array-like of shape (n_samples, n_features)
    The data.

Returns
-------
ll : ndarray of shape (n_samples,)
    Log-likelihood of each sample under the current model.
F)rx   resetr   g      r   g      ?r   )r   r   r   r}   r~   r   r$   get_precisionr)   r   r   r(   r   )rb   rh   r/   r0   Xrr1   	precisionlog_likes           r>   score_samplesPCA.score_samples  s    " 	a $"**bjj)AO^WWQZ
&&(	"&&I~!6Q&??C:C"%%K(88;y;QQRRr@   c                 n    [        U5      u  p4[        UR                  U R                  U5      5      5      $ )a  Return the average log-likelihood of all samples.

See. "Pattern Recognition and Machine Learning"
by C. Bishop, 12.2.1 p. 574
or http://www.miketipping.com/papers/met-mppca.pdf

Parameters
----------
X : array-like of shape (n_samples, n_features)
    The data.

y : Ignored
    Ignored.

Returns
-------
ll : float
    Average log-likelihood of the samples under the current model.
)r   floatr   r   )rb   rh   ri   r/   r0   s        r>   score	PCA.score9  s/    ( a RWWT//2344r@   c                    > [         TU ]  5       nSS/UR                  l        SUl        U R
                  S;   UR                  l        U$ )Nr}   r~   Tru   )super__sklearn_tags__transformer_tagspreserves_dtypearray_api_supportrY   
input_tagssparse)rb   tags	__class__s     r>   r   PCA.__sklearn_tags__P  sL    w')1:I0F-!%!% 5
 "

 r@   )r   r   r#   r   r   r[   r   rW   rn   r\   r   r   r]   rU   r   rY   rZ   rX   ra   )__name__
__module____qualname____firstlineno____doc__r   r   r   r   r   r^   dict__annotations__rc   r   rj   rr   rg   r   r   r   r   r   __static_attributes____classcell__)r   s   @r>   rF   rF   q   s>   ER Xq$v6ZAi8w	
 +RS
 q$v67x Xq$v6
 #8QVDE'12N'O&P'('$D 0 ) #)). 5 6( 5#G 6#GJ=<~^.@\.|65.	 	r@   rF   )-r   mathr   r   r   numbersr   r   numpyr   scipyr   scipy.sparser	   scipy.sparse.linalgr
   baser   utilsr   utils._arpackr   utils._array_apir   r   utils._param_validationr   r   r   utils.extmathr   r   r   r   utils.sparsefuncsr   r   utils.validationr   r   _baser   r?   rD   rF    r@   r>   <module>r      sZ    #
 # " "   ! $  & + ? F F Q Q K = GTh( hr@   