ó
    ¦ñ:ir ã                   óž  • S r SSK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Jr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  SSKJ r   SSK!J"r"  SSK#J$r$  SSK%J&r&J'r'J(r(J)r)J*r*  SSK+J,r,J-r-  SSK.J/r/J0r0  SSK1J2r2J3r3  / SQr4S r5 " S S\,5      r6S r7SSS.S jr8S%S jr9 S&S jr:S&S  jr; " S! S"\\,5      r<SSS#.S$ jr=g)'zQUtilities to build a composite estimator as a chain of transforms and estimators.é    )ÚCounterÚdefaultdict)ÚchainÚisliceN)Úsparseé   )ÚTransformerMixinÚ_fit_contextÚclone)ÚNotFittedError)ÚFunctionTransformer)ÚBunch)Ú_VisualBlock)ÚMETHODS)Ú
HasMethodsÚHidden)Ú_get_container_adapterÚ_safe_set_output)Ú
_safe_tags)Ú_print_elapsed_time)Ú"_deprecate_Xt_in_inverse_transform)ÚMetadataRouterÚMethodMappingÚ_raise_for_paramsÚ_routing_enabledÚprocess_routing)Ú_BaseCompositionÚavailable_if)ÚParallelÚdelayed)Úcheck_is_fittedÚcheck_memory)ÚPipelineÚFeatureUnionÚmake_pipelineÚ
make_unionc                 ó   ^ • U 4S jnU$ )zXCheck that final_estimator has `attr`.

Used together with `available_if` in `Pipeline`.c                 ó2   >• [        U R                  T5        g©NT)ÚgetattrÚ_final_estimator)ÚselfÚattrs    €ÚS/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/sklearn/pipeline.pyÚcheckÚ#_final_estimator_has.<locals>.check1   s   ø€ ä�×%Ñ% tÔ,Øó    © )r-   r/   s   ` r.   Ú_final_estimator_hasr3   ,   s   ø€ õ
ð
 €Lr1   c                   ó  • \ rS rSr% SrS/r\\" \5      /S\	\
" S/5      /S/S.r\\S'   SS	S
.S jrSS.S jrS:S jrS rS rS;S jrS rS r\S 5       r\S 5       r\S 5       rS rS rS<S jr\" S	S9S=S j5       rS r\ " \5      \" S	S9S=S j5       5       r!\ " \"" S5      5      S 5       r#\ " \"" S 5      5      \" S	S9S=S! j5       5       r$\ " \"" S"5      5      S# 5       r%\ " \"" S$5      5      S% 5       r&\ " \"" S&5      5      S' 5       r'\ " \"" S(5      5      S) 5       r(S* r)\ " \)5      S+ 5       r*S, r+\ " \+5      S=SS-.S. jj5       r,\ " \"" S/5      5      S<S0 j5       r-\S1 5       r.S2 r/S=S3 jr0\S4 5       r1\S5 5       r2S6 r3S7 r4S8 r5S9r6g)>r#   é9   aY  
A sequence of data transformers with an optional final predictor.

`Pipeline` allows you to sequentially apply a list of transformers to
preprocess the data and, if desired, conclude the sequence with a final
:term:`predictor` for predictive modeling.

Intermediate steps of the pipeline must be 'transforms', that is, they
must implement `fit` and `transform` methods.
The final :term:`estimator` only needs to implement `fit`.
The transformers in the pipeline can be cached using ``memory`` argument.

The purpose of the pipeline is to assemble several steps that can be
cross-validated together while setting different parameters. For this, it
enables setting parameters of the various steps using their names and the
parameter name separated by a `'__'`, as in the example below. A step's
estimator may be replaced entirely by setting the parameter with its name
to another estimator, or a transformer removed by setting it to
`'passthrough'` or `None`.

For an example use case of `Pipeline` combined with
:class:`~sklearn.model_selection.GridSearchCV`, refer to
:ref:`sphx_glr_auto_examples_compose_plot_compare_reduction.py`. The
example :ref:`sphx_glr_auto_examples_compose_plot_digits_pipe.py` shows how
to grid search on a pipeline using `'__'` as a separator in the parameter names.

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

.. versionadded:: 0.5

Parameters
----------
steps : list of tuples
    List of (name of step, estimator) tuples that are to be chained in
    sequential order. To be compatible with the scikit-learn API, all steps
    must define `fit`. All non-last steps must also define `transform`. See
    :ref:`Combining Estimators <combining_estimators>` for more details.

memory : str or object with the joblib.Memory interface, default=None
    Used to cache the fitted transformers of the pipeline. The last step
    will never be cached, even if it is a transformer. By default, no
    caching is performed. If a string is given, it is the path to the
    caching directory. Enabling caching triggers a clone of the transformers
    before fitting. Therefore, the transformer instance given to the
    pipeline cannot be inspected directly. Use the attribute ``named_steps``
    or ``steps`` to inspect estimators within the pipeline. Caching the
    transformers is advantageous when fitting is time consuming.

verbose : bool, default=False
    If True, the time elapsed while fitting each step will be printed as it
    is completed.

Attributes
----------
named_steps : :class:`~sklearn.utils.Bunch`
    Dictionary-like object, with the following attributes.
    Read-only attribute to access any step parameter by user given name.
    Keys are step names and values are steps parameters.

classes_ : ndarray of shape (n_classes,)
    The classes labels. Only exist if the last step of the pipeline is a
    classifier.

n_features_in_ : int
    Number of features seen during :term:`fit`. Only defined if the
    underlying first estimator in `steps` exposes such an attribute
    when fit.

    .. versionadded:: 0.24

feature_names_in_ : ndarray of shape (`n_features_in_`,)
    Names of features seen during :term:`fit`. Only defined if the
    underlying estimator exposes such an attribute when fit.

    .. versionadded:: 1.0

See Also
--------
make_pipeline : Convenience function for simplified pipeline construction.

Examples
--------
>>> from sklearn.svm import SVC
>>> from sklearn.preprocessing import StandardScaler
>>> from sklearn.datasets import make_classification
>>> from sklearn.model_selection import train_test_split
>>> from sklearn.pipeline import Pipeline
>>> X, y = make_classification(random_state=0)
>>> X_train, X_test, y_train, y_test = train_test_split(X, y,
...                                                     random_state=0)
>>> pipe = Pipeline([('scaler', StandardScaler()), ('svc', SVC())])
>>> # The pipeline can be used as any other estimator
>>> # and avoids leaking the test set into the train set
>>> pipe.fit(X_train, y_train).score(X_test, y_test)
0.88
>>> # An estimator's parameter can be set using '__' syntax
>>> pipe.set_params(svc__C=10).fit(X_train, y_train).score(X_test, y_test)
0.76
ÚstepsNÚcacheÚboolean©r6   ÚmemoryÚverboseÚ_parameter_constraintsF©r:   r;   c                ó(   • Xl         X l        X0l        g ©Nr9   )r,   r6   r:   r;   s       r.   Ú__init__ÚPipeline.__init__§   s   € ØŒ
ØŒØ�r1   ©Ú	transformc                óL   • U R                  5        H  u    p#[        X1S9  M     U $ )aT  Set the output container when `"transform"` and `"fit_transform"` are called.

Calling `set_output` will set the output of all estimators in `steps`.

Parameters
----------
transform : {"default", "pandas", "polars"}, default=None
    Configure output of `transform` and `fit_transform`.

    - `"default"`: Default output format of a transformer
    - `"pandas"`: DataFrame output
    - `"polars"`: Polars output
    - `None`: Transform configuration is unchanged

    .. versionadded:: 1.4
        `"polars"` option was added.

Returns
-------
self : estimator instance
    Estimator instance.
rB   )Ú_iterr   )r,   rC   Ú_Ústeps       r.   Ú
set_outputÚPipeline.set_output¬   s%   € ð. Ÿ*™*ž,‰JˆAˆqÜ˜TÔ7ñ 'àˆr1   c                 ó"   • U R                  SUS9$ )a›  Get parameters for this estimator.

Returns the parameters given in the constructor as well as the
estimators contained within the `steps` of the `Pipeline`.

Parameters
----------
deep : bool, default=True
    If True, will return the parameters for this estimator and
    contained subobjects that are estimators.

Returns
-------
params : mapping of string to any
    Parameter names mapped to their values.
r6   ©Údeep©Ú_get_params©r,   rL   s     r.   Ú
get_paramsÚPipeline.get_paramsÇ   s   € ð" ×Ñ ¨dÐÐ3Ð3r1   c                 ó*   • U R                   " S0 UD6  U $ )aÓ  Set the parameters of this estimator.

Valid parameter keys can be listed with ``get_params()``. Note that
you can directly set the parameters of the estimators contained in
`steps`.

Parameters
----------
**kwargs : dict
    Parameters of this estimator or parameters of estimators contained
    in `steps`. Parameters of the steps may be set using its name and
    the parameter name separated by a '__'.

Returns
-------
self : object
    Pipeline class instance.
)r6   ©Ú_set_params©r,   Úkwargss     r.   Ú
set_paramsÚPipeline.set_paramsÚ   s   € ð& 	×ÒÑ+ FÒ+Øˆr1   c           	      óœ  • [        U R                  6 u  pU R                  U5        US S nUS   nU H^  nUb  US:X  a  M  [        US5      (       d  [        US5      (       a  [        US5      (       a  MC  [	        SU< S[        U5      < S35      e   Ub6  US:w  a/  [        US5      (       d  [	        S	U< S[        U5      < S35      eg g g )
NéÿÿÿÿÚpassthroughÚfitÚfit_transformrC   znAll intermediate steps should be transformers and implement fit and transform or be the string 'passthrough' 'ú' (type ú	) doesn'tzLLast step of Pipeline should implement fit or be the string 'passthrough'. ')Úzipr6   Ú_validate_namesÚhasattrÚ	TypeErrorÚtype)r,   ÚnamesÚ
estimatorsÚtransformersÚ	estimatorÚts         r.   Ú_validate_stepsÚPipeline._validate_stepsð   sç   € Ü §¡Ð,Ñˆð 	×Ñ˜UÔ#ð " # 2�ˆØ˜r‘Nˆ	ãˆAØ‰y˜A Ó.ÙÜ˜A˜u×%Ñ%¬°°O×)DÑ)DÌWØ�;÷Nó Nõ  ó 12´4¸¶7ð<óð ñ ð Ñ!Ø˜]Ó*Ü˜I u×-Ñ-åó -6´t¸I¶ðHóð ð .ð +ð "r1   c              #   óê   #   • [        U R                  5      nU(       d  US-  n[        [        U R                  SU5      5       H*  u  nu  pVU(       d  XEU4v •  M  Uc  M  US:w  d  M$  XEU4v •  M,     g7f)zŽ
Generate (idx, (name, trans)) tuples from self.steps

When filter_passthrough is True, 'passthrough' and None transformers
are filtered out.
r   r   Nr[   )Úlenr6   Ú	enumerater   )r,   Ú
with_finalÚfilter_passthroughÚstopÚidxÚnameÚtranss          r.   rE   ÚPipeline._iter  sj   é € ô �4—:‘:‹ˆÞØ�A‰IˆDä"+¬F°4·:±:¸qÀ$Ó,GÖ"HÑˆC‘�$Þ%Ø Ð&Ô&ØÓ" u°Õ'=Ø Ð&Ô&ò	 #Iùs   ‚AA3Á A3Á(A3c                 ó,   • [        U R                  5      $ )z$
Returns the length of the Pipeline
)rm   r6   ©r,   s    r.   Ú__len__ÚPipeline.__len__$  s   € ô �4—:‘:‹Ðr1   c                 ó,  • [        U[        5      (       aM  UR                  S;  a  [        S5      eU R	                  U R
                  U   U R                  U R                  S9$  U R
                  U   u  p#U$ ! [         a    U R                  U   s $ f = f)a�  Returns a sub-pipeline or a single estimator in the pipeline

Indexing with an integer will return an estimator; using a slice
returns another Pipeline instance which copies a slice of this
Pipeline. This copy is shallow: modifying (or fitting) estimators in
the sub-pipeline will affect the larger pipeline and vice-versa.
However, replacing a value in `step` will not affect a copy.
)r   Nz*Pipeline slicing only supports a step of 1r=   )
Ú
isinstanceÚslicerG   Ú
ValueErrorÚ	__class__r6   r:   r;   rc   Únamed_steps)r,   Úindrs   Úests       r.   Ú__getitem__ÚPipeline.__getitem__*  s“   € ô �cœ5×!Ñ!Ø�x‰x˜yÓ(Ü Ð!MÓNÐNØ—>‘>Ø—
‘
˜3‘¨¯©¸T¿\¹\ð "ð ð ð	)ØŸ
™
 3™‰IˆDð ˆ
øô ó 	)à×#Ñ# CÑ(Ò(ð	)ús   Á$A7 Á7BÂBc                 ó:   • U R                   S   S   R                  $ )NrZ   r   )r6   Ú_estimator_typerw   s    r.   r…   ÚPipeline._estimator_type@  s   € à�z‰z˜"‰~˜aÑ ×0Ñ0Ð0r1   c                 ó>   • [        S0 [        U R                  5      D6$ )z‡Access the steps by name.

Read-only attribute to access any step by given name.
Keys are steps names and values are the steps objects.r2   )r   Údictr6   rw   s    r.   r   ÚPipeline.named_stepsD  s   € ô Ñ(”t˜DŸJ™JÓ'Ñ(Ð(r1   c                 ól   •  U R                   S   S   nUc  S$ U$ ! [        [        [        4 a     g f = f)NrZ   r   r[   )r6   r}   ÚAttributeErrorrc   )r,   rh   s     r.   r+   ÚPipeline._final_estimatorM  sD   € ð	ØŸ
™
 2™ qÑ)ˆIØ$-Ñ$5�=ÐD¸9ÐDøÜœN¬IÐ6ó 	ñ
 ð	ús   ‚ ™ ›3²3c                 ó„   • U R                   (       d  g U R                  U   u  p#SUS-   [        U R                  5      U4-  $ )Nú(step %d of %d) Processing %sr   )r;   r6   rm   )r,   Ústep_idxrs   rF   s       r.   Ú_log_messageÚPipeline._log_messageY  s;   € Ø�|�|ØØ—*‘*˜XÑ&‰ˆà.°(¸Q±,ÄÀDÇJÁJÃÐQUÐ1VÑVÐVr1   c                 óÒ  • [        5       (       a  [        X40 UDUD6nU$ [        S0 U R                   VVVs0 s H+  u  pVUc  M
  U[        S0 [         Vs0 s H  o0 _M     snD6_M-     snnnD6nUR                  5        HW  u  p‰SU;  a  [        SR                  U5      5      eUR                  SS5      u  pjX—U   S   U
'   X—U   S   U
'   X—U   S   U
'   MY     U$ s  snf s  snnnf )NÚ__zÛPipeline.fit does not accept the {} parameter. You can pass parameters to specific steps of your pipeline using the stepname__parameter format, e.g. `Pipeline.fit(X, y, logisticregression__sample_weight=sample_weight)`.r   r\   r]   Úfit_predictr2   )	r   r   r   r6   r   Úitemsr}   ÚformatÚsplit)r,   ÚmethodÚpropsrV   Úrouted_paramsrs   rG   Úfit_params_stepsÚpnameÚpvalÚparams              r.   Ú_check_method_paramsÚPipeline._check_method_params`  s  € Ü×ÑÜ+¨DÑL¸EÐLÀVÑLˆMØ Ð ä$ñ  ð '+§j¢jõâ&0™
˜Øó F�Dœ%ÑE½GÓ"DºG°&¨2¢:¹GÑ"DÑEÒEÙ&0óñ Ðð  %Ÿ{™{ž}‘�Ø˜uÓ$Ü$ð,÷ -3©F°5«Móð ð $Ÿk™k¨$°Ó2‘�Ø7; Ñ& uÑ-¨eÑ4ð BF Ñ& Ñ7¸Ñ>Ø?C Ñ& }Ñ5°eÓ<ñ  -ð $Ð#ùò) #Eùôs   ·	C"ÁC"ÁC Á 	C"ÃC"c                 ó  • [        U R                  5      U l        U R                  5         [        U R                  5      nUR                  [        5      nU R                  SSS9 H‘  u  pgnUb  US:X  a'  [        SU R                  U5      5          S S S 5        M6  [        US5      (       a  UR                  c  Un	O[        U5      n	U" U	UUS SU R                  U5      X7   S9u  pXz4U R                  U'   M“     U$ ! , (       d  f       No= f)NF©ro   rp   r[   r#   Úlocation©Úmessage_clsnameÚmessageÚparams)Úlistr6   rj   r"   r:   r7   Ú_fit_transform_onerE   r   r�   rb   r£   r   )r,   ÚXÚyrš   r:   Úfit_transform_one_cachedr�   rs   ÚtransformerÚcloned_transformerÚfitted_transformers              r.   Ú_fitÚPipeline._fit  s  € ä˜$Ÿ*™*Ó%ˆŒ
Ø×ÑÔä˜dŸk™kÓ*ˆà#)§<¡<Ô0BÓ#CÐ à+/¯:©:Ø°ð ,6ó ,
Ñ'ˆH˜Kð Ñ" k°]Ó&BÜ(¨°T×5FÑ5FÀxÓ5PÕQØ÷ RÑQô �v˜z×*Ñ*¨v¯©Ñ/Fð &1Ñ"ä%*¨;Ó%7Ð"á$<Ø"ØØØØ *Ø×)Ñ)¨(Ó3Ø$Ñ*ñ%Ñ!ˆAð %)Ð#=ˆD�J‰J�xÓ ñ5,
ð6 ˆ÷/ RÕQús   ÂC<Ã<
D
	)Úprefer_skip_nested_validationc                 ój  • U R                  SUS9nU R                  XU5      n[        SU R                  [	        U R
                  5      S-
  5      5         U R                  S:w  a4  X@R
                  S   S      nU R                  R                  " XR40 US   D6  SSS5        U $ ! , (       d  f       U $ = f)	aæ  Fit the model.

Fit all the transformers one after the other and sequentially transform the
data. Finally, fit the transformed data using the final estimator.

Parameters
----------
X : iterable
    Training data. Must fulfill input requirements of first step of the
    pipeline.

y : iterable, default=None
    Training targets. Must fulfill label requirements for all steps of
    the pipeline.

**params : dict of str -> object
    - If `enable_metadata_routing=False` (default):

        Parameters passed to the ``fit`` method of each step, where
        each parameter name is prefixed such that parameter ``p`` for step
        ``s`` has key ``s__p``.

    - If `enable_metadata_routing=True`:

        Parameters requested and accepted by steps. Each step must have
        requested certain metadata for these parameters to be forwarded to
        them.

    .. versionchanged:: 1.4
        Parameters are now passed to the ``transform`` method of the
        intermediate steps as well, if requested, and if
        `enable_metadata_routing=True` is set via
        :func:`~sklearn.set_config`.

    See :ref:`Metadata Routing User Guide <metadata_routing>` for more
    details.

Returns
-------
self : object
    Pipeline with fitted steps.
r\   ©r˜   r™   r#   r   r[   rZ   r   N)rŸ   r°   r   r�   rm   r6   r+   r\   )r,   rª   r«   r§   rš   ÚXtÚlast_step_paramss          r.   r\   ÚPipeline.fit¥  s®   € ð^ ×1Ñ1¸ÀfÐ1ÐMˆØ�Y‰Y�q˜]Ó+ˆÜ  ¨T×->Ñ->¼sÀ4Ç:Á:»ÐQRÑ?RÓ-SÕTØ×$Ñ$¨Ó5Ø#0·±¸B±ÀÑ1BÑ#CÐ Ø×%Ñ%×)Ò)¨"ÑKÐ3CÀEÑ3JÒK÷ Uð
 ˆ÷ UÔTð
 ˆús   ÁAB#Â#
B2c                 ó”   • U R                   S:H  =(       d3    [        U R                   S5      =(       d    [        U R                   S5      $ )Nr[   rC   r]   ©r+   rb   rw   s    r.   Ú_can_fit_transformÚPipeline._can_fit_transformÝ  s?   € à×!Ñ! ]Ñ2÷ ?Ü�t×,Ñ,¨kÓ:÷?ä�t×,Ñ,¨oÓ>ð	
r1   c                 óô  • U R                  SUS9nU R                  XU5      nU R                  n[        SU R	                  [        U R                  5      S-
  5      5         US:X  a  UsSSS5        $ X@R                  S   S      n[        US5      (       a  UR                  " XR40 US   D6sSSS5        $ UR                  " XR40 US	   D6R                  " U40 US
   D6sSSS5        $ ! , (       d  f       g= f)a$  Fit the model and transform with the final estimator.

Fit all the transformers one after the other and sequentially transform
the data. Only valid if the final estimator either implements
`fit_transform` or `fit` and `transform`.

Parameters
----------
X : iterable
    Training data. Must fulfill input requirements of first step of the
    pipeline.

y : iterable, default=None
    Training targets. Must fulfill label requirements for all steps of
    the pipeline.

**params : dict of str -> object
    - If `enable_metadata_routing=False` (default):

        Parameters passed to the ``fit`` method of each step, where
        each parameter name is prefixed such that parameter ``p`` for step
        ``s`` has key ``s__p``.

    - If `enable_metadata_routing=True`:

        Parameters requested and accepted by steps. Each step must have
        requested certain metadata for these parameters to be forwarded to
        them.

    .. versionchanged:: 1.4
        Parameters are now passed to the ``transform`` method of the
        intermediate steps as well, if requested, and if
        `enable_metadata_routing=True`.

    See :ref:`Metadata Routing User Guide <metadata_routing>` for more
    details.

Returns
-------
Xt : ndarray of shape (n_samples, n_transformed_features)
    Transformed samples.
r]   r´   r#   r   r[   NrZ   r   r\   rC   )rŸ   r°   r+   r   r�   rm   r6   rb   r]   r\   rC   )r,   rª   r«   r§   rš   rµ   Ú	last_stepr¶   s           r.   r]   ÚPipeline.fit_transformä  sú   € ð` ×1Ñ1¸ÐPVÐ1ÐWˆØ�Y‰Y�q˜]Ó+ˆà×)Ñ)ˆ	Ü  ¨T×->Ñ->¼sÀ4Ç:Á:»ÐQRÑ?RÓ-SÕTØ˜MÓ)Ø÷ UÑTð  -¯Z©Z¸©^¸AÑ->Ñ?ÐÜ�y /×2Ñ2Ø ×.Ò.ØñØ-¨oÑ>ñ÷ UÑTð !—}’} RÑFÐ.>¸uÑ.EÑF×PÒPØñØ*¨;Ñ7ñ÷ U×T×Tús   Á C)Á2:C)Â6)C)Ã)
C7Úpredictc                 óÆ  • Un[        5       (       dM  U R                  SS9 H  u  pEnUR                  U5      nM     U R                  S   S   R                  " U40 UD6$ [        U S40 UD6nU R                  SS9 H%  u  pEnUR                  " U40 Xu   R                  D6nM'     U R                  S   S   R                  " U40 XpR                  S   S      R                  D6$ )aÉ  Transform the data, and apply `predict` with the final estimator.

Call `transform` of each transformer in the pipeline. The transformed
data are finally passed to the final estimator that calls `predict`
method. Only valid if the final estimator implements `predict`.

Parameters
----------
X : iterable
    Data to predict on. Must fulfill input requirements of first step
    of the pipeline.

**params : dict of str -> object
    - If `enable_metadata_routing=False` (default):

        Parameters to the ``predict`` called at the end of all
        transformations in the pipeline.

    - If `enable_metadata_routing=True`:

        Parameters requested and accepted by steps. Each step must have
        requested certain metadata for these parameters to be forwarded to
        them.

    .. versionadded:: 0.20

    .. versionchanged:: 1.4
        Parameters are now passed to the ``transform`` method of the
        intermediate steps as well, if requested, and if
        `enable_metadata_routing=True` is set via
        :func:`~sklearn.set_config`.

    See :ref:`Metadata Routing User Guide <metadata_routing>` for more
    details.

    Note that while this may be used to return uncertainties from some
    models with ``return_std`` or ``return_cov``, uncertainties that are
    generated by the transformations in the pipeline are not propagated
    to the final estimator.

Returns
-------
y_pred : ndarray
    Result of calling `predict` on the final estimator.
F©ro   rZ   r   r¿   r   )r   rE   rC   r6   r¿   r   ©r,   rª   r§   rµ   rF   rs   rC   rš   s           r.   r¿   ÚPipeline.predict%  så   € ð^ ˆä×!Ñ!Ø&*§j¡j¸E jÓ&BÑ"�˜Ø×(Ñ(¨Ó,’ñ 'Cà—:‘:˜b‘> !Ñ$×,Ò,¨RÑ:°6Ñ:Ð:ô (¨¨iÑB¸6ÑBˆØ"&§*¡*¸ *Ó">ÑˆA�YØ×$Ò$ RÑI¨=Ñ+>×+HÑ+HÑIŠBñ #?à�z‰z˜"‰~˜aÑ ×(Ò(¨ÑX¨}¿Z¹ZÈ¹^ÈAÑ=NÑ/O×/WÑ/WÑXÐXr1   r”   c           	      óp  • U R                  SUS9nU R                  XU5      nX@R                  S   S      n[        SU R	                  [        U R                  5      S-
  5      5         U R                  S   S   R                  " XR40 UR                  S0 5      D6nSSS5        U$ ! , (       d  f       W$ = f)a  Transform the data, and apply `fit_predict` with the final estimator.

Call `fit_transform` of each transformer in the pipeline. The
transformed data are finally passed to the final estimator that calls
`fit_predict` method. Only valid if the final estimator implements
`fit_predict`.

Parameters
----------
X : iterable
    Training data. Must fulfill input requirements of first step of
    the pipeline.

y : iterable, default=None
    Training targets. Must fulfill label requirements for all steps
    of the pipeline.

**params : dict of str -> object
    - If `enable_metadata_routing=False` (default):

        Parameters to the ``predict`` called at the end of all
        transformations in the pipeline.

    - If `enable_metadata_routing=True`:

        Parameters requested and accepted by steps. Each step must have
        requested certain metadata for these parameters to be forwarded to
        them.

    .. versionadded:: 0.20

    .. versionchanged:: 1.4
        Parameters are now passed to the ``transform`` method of the
        intermediate steps as well, if requested, and if
        `enable_metadata_routing=True`.

    See :ref:`Metadata Routing User Guide <metadata_routing>` for more
    details.

    Note that while this may be used to return uncertainties from some
    models with ``return_std`` or ``return_cov``, uncertainties that are
    generated by the transformations in the pipeline are not propagated
    to the final estimator.

Returns
-------
y_pred : ndarray
    Result of calling `fit_predict` on the final estimator.
r”   r´   rZ   r   r#   r   N)rŸ   r°   r6   r   r�   rm   r”   Úget)r,   rª   r«   r§   rš   rµ   Úparams_last_stepÚy_preds           r.   r”   ÚPipeline.fit_predicta  s¶   € ðn ×1Ñ1¸ÈfÐ1ÐUˆØ�Y‰Y�q˜]Ó+ˆà(¯©°B©¸Ñ):Ñ;ÐÜ  ¨T×->Ñ->¼sÀ4Ç:Á:»ÐQRÑ?RÓ-SÕTØ—Z‘Z ‘^ AÑ&×2Ò2ØñØ)×-Ñ-¨m¸RÓ@ñˆF÷ Uð ˆ÷	 UÔTð ˆús   Á(4B&Â&
B5Úpredict_probac                 óÆ  • Un[        5       (       dM  U R                  SS9 H  u  pEnUR                  U5      nM     U R                  S   S   R                  " U40 UD6$ [        U S40 UD6nU R                  SS9 H%  u  pEnUR                  " U40 Xu   R                  D6nM'     U R                  S   S   R                  " U40 XpR                  S   S      R                  D6$ )aâ  Transform the data, and apply `predict_proba` with the final estimator.

Call `transform` of each transformer in the pipeline. The transformed
data are finally passed to the final estimator that calls
`predict_proba` method. Only valid if the final estimator implements
`predict_proba`.

Parameters
----------
X : iterable
    Data to predict on. Must fulfill input requirements of first step
    of the pipeline.

**params : dict of str -> object
    - If `enable_metadata_routing=False` (default):

        Parameters to the `predict_proba` called at the end of all
        transformations in the pipeline.

    - If `enable_metadata_routing=True`:

        Parameters requested and accepted by steps. Each step must have
        requested certain metadata for these parameters to be forwarded to
        them.

    .. versionadded:: 0.20

    .. versionchanged:: 1.4
        Parameters are now passed to the ``transform`` method of the
        intermediate steps as well, if requested, and if
        `enable_metadata_routing=True`.

    See :ref:`Metadata Routing User Guide <metadata_routing>` for more
    details.

Returns
-------
y_proba : ndarray of shape (n_samples, n_classes)
    Result of calling `predict_proba` on the final estimator.
FrÁ   rZ   r   rÉ   r   )r   rE   rC   r6   rÉ   r   rÂ   s           r.   rÉ   ÚPipeline.predict_proba¢  sí   € ðT ˆä×!Ñ!Ø&*§j¡j¸E jÓ&BÑ"�˜Ø×(Ñ(¨Ó,’ñ 'Cà—:‘:˜b‘> !Ñ$×2Ò2°2Ñ@¸Ñ@Ð@ô (¨¨oÑHÀÑHˆØ"&§*¡*¸ *Ó">ÑˆA�YØ×$Ò$ RÑI¨=Ñ+>×+HÑ+HÑIŠBñ #?à�z‰z˜"‰~˜aÑ ×.Ò.Øñ
Ø§
¡
¨2¡¨qÑ 1Ñ2×@Ñ@ñ
ð 	
r1   Údecision_functionc           	      óv  • [        X S5        [        U S40 UD6nUnU R                  SS9 H9  u  pVnUR                  " U40 UR	                  U0 5      R	                  S0 5      D6nM;     U R
                  S   S   R                  " U40 UR	                  U R
                  S   S   0 5      R	                  S0 5      D6$ )aš  Transform the data, and apply `decision_function` with the final estimator.

Call `transform` of each transformer in the pipeline. The transformed
data are finally passed to the final estimator that calls
`decision_function` method. Only valid if the final estimator
implements `decision_function`.

Parameters
----------
X : iterable
    Data to predict on. Must fulfill input requirements of first step
    of the pipeline.

**params : dict of string -> object
    Parameters requested and accepted by steps. Each step must have
    requested certain metadata for these parameters to be forwarded to
    them.

    .. versionadded:: 1.4
        Only available if `enable_metadata_routing=True`. See
        :ref:`Metadata Routing User Guide <metadata_routing>` for more
        details.

Returns
-------
y_score : ndarray of shape (n_samples, n_classes)
    Result of calling `decision_function` on the final estimator.
rÌ   FrÁ   rC   rZ   r   r   )r   r   rE   rC   rÅ   r6   rÌ   ©r,   rª   r§   rš   rµ   rF   rs   rC   s           r.   rÌ   ÚPipeline.decision_functionÛ  sÍ   € ô< 	˜&Ð(;Ô<ô (¨Ð.AÑLÀVÑLˆàˆØ"&§*¡*¸ *Ó">ÑˆA�YØ×$Ò$ØñØ#×'Ñ'¨¨bÓ1×5Ñ5°kÀ2ÓFñŠBñ #?ð �z‰z˜"‰~˜aÑ ×2Ò2Øñ
Ø×#Ñ# D§J¡J¨r¡N°1Ñ$5°rÓ:×>Ñ>Ð?RÐTVÓWñ
ð 	
r1   Úscore_samplesc                 óœ   • UnU R                  SS9 H  u    p4UR                  U5      nM     U R                  S   S   R                  U5      $ )a  Transform the data, and apply `score_samples` with the final estimator.

Call `transform` of each transformer in the pipeline. The transformed
data are finally passed to the final estimator that calls
`score_samples` method. Only valid if the final estimator implements
`score_samples`.

Parameters
----------
X : iterable
    Data to predict on. Must fulfill input requirements of first step
    of the pipeline.

Returns
-------
y_score : ndarray of shape (n_samples,)
    Result of calling `score_samples` on the final estimator.
FrÁ   rZ   r   )rE   rC   r6   rÐ   )r,   rª   rµ   rF   r­   s        r.   rÐ   ÚPipeline.score_samples  sQ   € ð( ˆØ!%§¡°u Ó!=ÑˆAˆqØ×&Ñ& rÓ*ŠBñ ">à�z‰z˜"‰~˜aÑ ×.Ñ.¨rÓ2Ð2r1   Úpredict_log_probac                 óÆ  • Un[        5       (       dM  U R                  SS9 H  u  pEnUR                  U5      nM     U R                  S   S   R                  " U40 UD6$ [        U S40 UD6nU R                  SS9 H%  u  pEnUR                  " U40 Xu   R                  D6nM'     U R                  S   S   R                  " U40 XpR                  S   S      R                  D6$ )aú  Transform the data, and apply `predict_log_proba` with the final estimator.

Call `transform` of each transformer in the pipeline. The transformed
data are finally passed to the final estimator that calls
`predict_log_proba` method. Only valid if the final estimator
implements `predict_log_proba`.

Parameters
----------
X : iterable
    Data to predict on. Must fulfill input requirements of first step
    of the pipeline.

**params : dict of str -> object
    - If `enable_metadata_routing=False` (default):

        Parameters to the `predict_log_proba` called at the end of all
        transformations in the pipeline.

    - If `enable_metadata_routing=True`:

        Parameters requested and accepted by steps. Each step must have
        requested certain metadata for these parameters to be forwarded to
        them.

    .. versionadded:: 0.20

    .. versionchanged:: 1.4
        Parameters are now passed to the ``transform`` method of the
        intermediate steps as well, if requested, and if
        `enable_metadata_routing=True`.

    See :ref:`Metadata Routing User Guide <metadata_routing>` for more
    details.

Returns
-------
y_log_proba : ndarray of shape (n_samples, n_classes)
    Result of calling `predict_log_proba` on the final estimator.
FrÁ   rZ   r   rÓ   r   )r   rE   rC   r6   rÓ   r   rÂ   s           r.   rÓ   ÚPipeline.predict_log_proba!  sî   € ðT ˆä×!Ñ!Ø&*§j¡j¸E jÓ&BÑ"�˜Ø×(Ñ(¨Ó,’ñ 'Cà—:‘:˜b‘> !Ñ$×6Ò6°rÑD¸VÑDÐDô (¨Ð.AÑLÀVÑLˆØ"&§*¡*¸ *Ó">ÑˆA�YØ×$Ò$ RÑI¨=Ñ+>×+HÑ+HÑIŠBñ #?à�z‰z˜"‰~˜aÑ ×2Ò2Øñ
Ø§
¡
¨2¡¨qÑ 1Ñ2×DÑDñ
ð 	
r1   c                 óZ   • U R                   S:H  =(       d    [        U R                   S5      $ )Nr[   rC   r¹   rw   s    r.   Ú_can_transformÚPipeline._can_transformZ  s,   € Ø×$Ñ$¨Ñ5÷ 
¼Ø×!Ñ! ;ó:
ð 	
r1   c                 ó®   • [        X S5        [        U S40 UD6nUnU R                  5        H%  u  pVnUR                  " U40 X6   R                  D6nM'     U$ )aÀ  Transform the data, and apply `transform` with the final estimator.

Call `transform` of each transformer in the pipeline. The transformed
data are finally passed to the final estimator that calls
`transform` method. Only valid if the final estimator
implements `transform`.

This also works where final estimator is `None` in which case all prior
transformations are applied.

Parameters
----------
X : iterable
    Data to transform. Must fulfill input requirements of first step
    of the pipeline.

**params : dict of str -> object
    Parameters requested and accepted by steps. Each step must have
    requested certain metadata for these parameters to be forwarded to
    them.

    .. versionadded:: 1.4
        Only available if `enable_metadata_routing=True`. See
        :ref:`Metadata Routing User Guide <metadata_routing>` for more
        details.

Returns
-------
Xt : ndarray of shape (n_samples, n_transformed_features)
    Transformed data.
rC   )r   r   rE   rC   rÎ   s           r.   rC   ÚPipeline.transform_  s_   € ôB 	˜&¨Ô4ô (¨¨kÑD¸VÑDˆØˆØ"&§*¡*¦,ÑˆA�YØ×$Ò$ RÑI¨=Ñ+>×+HÑ+HÑIŠBñ #/àˆ	r1   c                 óB   • [        S U R                  5        5       5      $ )Nc              3   ó@   #   • U  H  u    p[        US 5      v •  M     g7f)Úinverse_transformN)rb   )Ú.0rF   ri   s      r.   Ú	<genexpr>Ú2Pipeline._can_inverse_transform.<locals>.<genexpr>‹  s   é € ÐOÂ,±w°q¸!”7˜1Ð1×2Ð2Â,ùs   ‚)ÚallrE   rw   s    r.   Ú_can_inverse_transformÚPipeline._can_inverse_transformŠ  s   € ÜÑOÀ$Ç*Á*Ä,ÓOÓOÐOr1   )rµ   c                óè   • [        X0S5        [        X5      n[        U S40 UD6n[        [	        U R                  5       5      5      nU H%  u  pgnUR                  " U40 XG   R                  D6nM'     U$ )a  Apply `inverse_transform` for each step in a reverse order.

All estimators in the pipeline must support `inverse_transform`.

Parameters
----------
X : array-like of shape (n_samples, n_transformed_features)
    Data samples, where ``n_samples`` is the number of samples and
    ``n_features`` is the number of features. Must fulfill
    input requirements of last step of pipeline's
    ``inverse_transform`` method.

Xt : array-like of shape (n_samples, n_transformed_features)
    Data samples, where ``n_samples`` is the number of samples and
    ``n_features`` is the number of features. Must fulfill
    input requirements of last step of pipeline's
    ``inverse_transform`` method.

    .. deprecated:: 1.5
        `Xt` was deprecated in 1.5 and will be removed in 1.7. Use `X` instead.

**params : dict of str -> object
    Parameters requested and accepted by steps. Each step must have
    requested certain metadata for these parameters to be forwarded to
    them.

    .. versionadded:: 1.4
        Only available if `enable_metadata_routing=True`. See
        :ref:`Metadata Routing User Guide <metadata_routing>` for more
        details.

Returns
-------
Xt : ndarray of shape (n_samples, n_features)
    Inverse transformed data, that is, data in the original feature
    space.
rÝ   )r   r   r   Úreversedr¨   rE   rÝ   )	r,   rª   rµ   r§   rš   Úreverse_iterrF   rs   rC   s	            r.   rÝ   ÚPipeline.inverse_transform�  su   € ôN 	˜&Ð(;Ô<ä.¨qÓ5ˆô (¨Ð.AÑLÀVÑLˆÜ¤ T§Z¡Z£\Ó 2Ó3ˆÛ".ÑˆA�YØ×+Ò+¨AÑW°Ñ1D×1VÑ1VÑWŠAñ #/àˆr1   Úscorec                 óà  • Un[        5       (       dV  U R                  SS9 H  u  pgnUR                  U5      nM     0 n	Ub  X9S'   U R                  S   S   R                  " XR40 U	D6$ [        U S4SU0UD6n
UnU R                  SS9 H%  u  pgnUR                  " U40 X§   R                  D6nM'     U R                  S   S   R                  " XR40 X R                  S   S      R                  D6$ )am  Transform the data, and apply `score` with the final estimator.

Call `transform` of each transformer in the pipeline. The transformed
data are finally passed to the final estimator that calls
`score` method. Only valid if the final estimator implements `score`.

Parameters
----------
X : iterable
    Data to predict on. Must fulfill input requirements of first step
    of the pipeline.

y : iterable, default=None
    Targets used for scoring. Must fulfill label requirements for all
    steps of the pipeline.

sample_weight : array-like, default=None
    If not None, this argument is passed as ``sample_weight`` keyword
    argument to the ``score`` method of the final estimator.

**params : dict of str -> object
    Parameters requested and accepted by steps. Each step must have
    requested certain metadata for these parameters to be forwarded to
    them.

    .. versionadded:: 1.4
        Only available if `enable_metadata_routing=True`. See
        :ref:`Metadata Routing User Guide <metadata_routing>` for more
        details.

Returns
-------
score : float
    Result of calling `score` on the final estimator.
FrÁ   Úsample_weightrZ   r   rè   r   )r   rE   rC   r6   rè   r   )r,   rª   r«   rê   r§   rµ   rF   rs   rC   Úscore_paramsrš   s              r.   rè   ÚPipeline.scoreÀ  s  € ðJ ˆÜ×!Ñ!Ø&*§j¡j¸E jÓ&BÑ"�˜Ø×(Ñ(¨Ó,’ñ 'CàˆLØÑ(Ø0=˜_Ñ-Ø—:‘:˜b‘> !Ñ$×*Ò*¨2ÑA°LÑAÐAô (Ø�'ñ
Ø)6ð
Ø:@ñ
ˆð ˆØ"&§*¡*¸ *Ó">ÑˆA�YØ×$Ò$ RÑI¨=Ñ+>×+HÑ+HÑIŠBñ #?à�z‰z˜"‰~˜aÑ ×&Ò& rÑW°¿j¹jÈ¹nÈQÑ>OÑ0P×0VÑ0VÑWÐWr1   c                 ó:   • U R                   S   S   R                  $ )z@The classes labels. Only exist if the last step is a classifier.rZ   r   )r6   Úclasses_rw   s    r.   rî   ÚPipeline.classes_ø  s   € ð �z‰z˜"‰~˜aÑ ×)Ñ)Ð)r1   c                 ó  • SSSS.0n [        U R                  S   S   S5      US'    [        U R                  S   S   S5      US'   U$ ! [        [        [        4 a     N9f = f! [        [        [        4 a     U$ f = f)	NÚ_xfail_checkszkPipeline changes the `steps` parameter, which it shouldn't.Therefore this test is x-fail until we fix this.)Úcheck_dont_overwrite_parametersÚ!check_estimators_overwrite_paramsr   r   ÚpairwiserZ   Úmultioutput)r   r6   r}   r‹   rc   )r,   Útagss     r.   Ú
_more_tagsÚPipeline._more_tagsý  s¨   € àðGðGñ	ð
ˆð	Ü)¨$¯*©*°Q©-¸Ñ*:¸JÓGˆD�Ñð	Ü",¨T¯Z©Z¸©^¸AÑ->ÀÓ"NˆD�Ñð ˆøô œN¬IÐ6ó 	ñ ð	ûô œN¬IÐ6ó 	ð àˆð	ús"   ‰A
 ©A% Á
A"Á!A"Á%A>Á=A>c                 ó¶   • UnU R                  5        HB  u  p4n[        US5      (       d  [        SR                  U5      5      eUR	                  U5      nMD     U$ )a  Get output feature names for transformation.

Transform input features using the pipeline.

Parameters
----------
input_features : array-like of str or None, default=None
    Input features.

Returns
-------
feature_names_out : ndarray of str objects
    Transformed feature names.
Úget_feature_names_outzpEstimator {} does not provide get_feature_names_out. Did you mean to call pipeline[:-1].get_feature_names_out()?)rE   rb   r‹   r–   rú   )r,   Úinput_featuresÚfeature_names_outrF   rs   rC   s         r.   rú   ÚPipeline.get_feature_names_out  sd   € ð +ÐØ"&§*¡*¦,ÑˆA�YÜ˜9Ð&=×>Ñ>Ü$ðç ™& ›,óð ð
 !*× ?Ñ ?Ð@QÓ RÒñ #/ð !Ð r1   c                 ó:   • U R                   S   S   R                  $ )z7Number of features seen during first step `fit` method.r   r   )r6   Ún_features_in_rw   s    r.   rÿ   ÚPipeline.n_features_in_5  s   € ð �z‰z˜!‰}˜QÑ×.Ñ.Ð.r1   c                 ó:   • U R                   S   S   R                  $ )z6Names of features seen during first step `fit` method.r   r   )r6   Úfeature_names_in_rw   s    r.   r  ÚPipeline.feature_names_in_;  s   € ð �z‰z˜!‰}˜QÑ×1Ñ1Ð1r1   c                 ó\   •  [        U R                  S   S   5        g! [         a     gf = f)z'Indicate whether pipeline has been fit.rZ   r   TF)r!   r6   r   rw   s    r.   Ú__sklearn_is_fitted__ÚPipeline.__sklearn_is_fitted__A  s3   € ð	ô
 ˜DŸJ™J r™N¨1Ñ-Ô.ØøÜó 	Ùð	ús   ‚ ž
+ª+c                 óâ   • [        U R                  6 u  pS nU R                   VVs/ s H  u  pEU" XE5      PM     nnnU Vs/ s H  n[        U5      PM     nn[        SUUUSS9$ s  snnf s  snf )Nc                 óT   • Ub  US:X  a  U  S3$ U  SUR                   R                   3$ )Nr[   z: passthroughz: )r~   Ú__name__)rs   r�   s     r.   Ú	_get_nameÚ-Pipeline._sk_visual_block_.<locals>._get_nameP  s7   € Ø‰{˜c ]Ó2Ø˜˜}Ð-Ð-à�V˜2˜cŸm™m×4Ñ4Ð5Ð6Ð6r1   ÚserialF)re   Úname_detailsÚdash_wrapped)r`   r6   Ústrr   )r,   rF   rf   r
  rs   r�   re   r  s           r.   Ú_sk_visual_block_ÚPipeline._sk_visual_block_M  su   € Ü˜TŸZ™ZÐ(‰ˆò	7ð 8<·z²zÔB²z©)¨$‘˜4Ö%±zˆÑBÙ,6Ó7ªJ Sœ˜Cž©JˆÐ7ÜØØØØ%Øñ
ð 	
ùó CùÚ7s   §A&ÁA,c                 ó¸  • [        U R                  R                  S9nU R                  SSS9 GH,  u  p#n[	        5       n[        US5      (       a-  UR                  SSS9R                  SSS9R                  SSS9  OVUR                  SSS9R                  SS	S9R                  SSS9R                  SS	S9R                  SSS9R                  SS	S9  UR                  S
S	S9R                  S
S	S9R                  SS	S9R                  SS	S9R                  SS	S9R                  S	S	S9R                  SSS9R                  SS	S9  UR                  " SSU0X40D6  GM/     U R                  S   u  pgUb  US:X  a  U$ [	        5       n[        US5      (       a  UR                  SSS9  OUR                  SSS9R                  SS	S9  UR                  SSS9R                  S
S
S9R                  SSS9R                  SSS9R                  SSS9R                  SSS9R                  S	S	S9R                  SSS9R                  SSS9  UR                  " SSU0Xg0D6  U$ )a  Get metadata routing of this object.

Please check :ref:`User Guide <metadata_routing>` on how the routing
mechanism works.

Returns
-------
routing : MetadataRouter
    A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsulating
    routing information.
©ÚownerFTr¢   r]   r\   ©ÚcallerÚcalleer”   rC   r¿   rÉ   rÌ   rÓ   rÝ   rè   Úmethod_mappingrZ   r[   r2   )r   r~   r	  rE   r   rb   Úaddr6   )r,   ÚrouterrF   rs   rt   r  Ú
final_nameÚ	final_ests           r.   Úget_metadata_routingÚPipeline.get_metadata_routing`  sˆ  € ô   d§n¡n×&=Ñ&=Ñ>ˆð #Ÿj™j°EÈd˜jÔS‰NˆA�UÜ*›_ˆNô �u˜o×.Ñ.à"×&Ñ&¨e¸OÐ&ÐLß‘S ¸�SÐHß‘S °o�SÒFð #×&Ñ&¨e¸EÐ&ÐBß‘S ¨k�SÐ:ß‘S ¸�SÐ>ß‘S ¸�SÐDß‘S °e�SÐ<ß‘S °k�SÑBð ×"Ñ"¨)¸KÐ"ÐHß‘˜I¨k�Ð:ß‘˜O°K�Ð@ß‘Ð/¸�ÐDß‘Ð/¸�ÐDß‘˜K°�Ð<ß‘Ð/Ð8K�ÐLß‘˜G¨K�Ñ8ð �JŠJÑF nÐF¸¸ÕFñ? TðB !%§
¡
¨2¡Ñˆ
ØÑ 	¨]Ó :ØˆMô '›ˆÜ�9˜o×.Ñ.Ø×Ñ o¸oÐÒNà×Ñ e°EÐÐ:×>Ñ>Ø [ð ?ñ ð ×Ñ e°EÐÐ:ß‰S˜	¨)ˆSÐ4ß‰S˜¨mˆSÐ<ß‰S˜°ˆSÐ@ß‰SÐ+Ð4GˆSÐHß‰SÐ+Ð4GˆSÐHß‰S˜¨KˆSÐ8ß‰SÐ+Ð4GˆSÐHß‰S˜¨ˆSÑ0ð 	�
Š
ÑL .ÐL°ZÐ4KÒLØˆr1   )r:   r6   r;   ©T)TT)NNr?   )7r	  Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú_required_parametersr¨   r   Útupler  r   r<   rˆ   Ú__annotations__r@   rH   rP   rW   rj   rE   rx   r‚   Úpropertyr…   r   r+   r�   rŸ   r°   r
   r\   rº   r   r]   r3   r¿   r”   rÉ   rÌ   rÐ   rÓ   r×   rC   râ   rÝ   rè   rî   r÷   rú   rÿ   r  r  r  r  Ú__static_attributes__r2   r1   r.   r#   r#   9   s§  ‡ ñbðJ $˜9Ðð ™˜u›Ð&Ø˜™j¨'¨Ó3Ð4Ø�;ñ$Ð˜Dó ð )-°eõ ð
 '+õ ô64ò&ò,!ôF'ò"òð, ñ1ó ð1ð ñ)ó ð)ð ñ	ó ð	òWò$ô>$ñL à&+ñó2ó	ð2òh
ñ Ð$Ó%Ùà&+ñó:ó	ó &ð
:ñx Ñ& yÓ1Ó2ñ9Yó 3ð9Yñv Ñ& }Ó5Ó6Ùà&+ñó:ó	ó 7ð
:ñx Ñ& Ó7Ó8ñ6
ó 9ð6
ñp Ñ&Ð':Ó;Ó<ñ*
ó =ð*
ñX Ñ& Ó7Ó8ñ3ó 9ð3ñ0 Ñ&Ð':Ó;Ó<ñ6
ó =ð6
òp
ñ
 �.Ó!ñ(ó "ð(òTPñ Ð(Ó)ð0¨dõ 0ó *ð0ñd Ñ& wÓ/Ó0ó5Xó 1ð5Xðn ñ*ó ð*òô<!ð4 ñ/ó ð/ð
 ñ2ó ð2ò

ò
õ&Ir1   r#   c                 ó  • U  Vs/ s H=  n[        U[        5      (       a  UO"[        U5      R                  R	                  5       PM?     nn[        [        5      n[        X5       H  u  pEX5==   S-  ss'   M     [        UR                  5       5       H  u  pgUS:X  d  M  X6	 M     [        [        [        U 5      5      5       H+  nX(   nXS;   d  M  X(==   SX5   -  -  ss'   X5==   S-  ss'   M-     [        [        X 5      5      $ s  snf )zGenerate names for estimators.r   z-%d)r{   r  rd   r	  Úlowerr   Úintr`   r¨   r•   rå   Úrangerm   )	rf   rh   re   Ú	namecountr�   rs   ÚkÚvÚis	            r.   Ú_name_estimatorsr1  ¬  sô   € ñ
 $óâ#ˆIô   	¬3×/Ñ/‰	´T¸)³_×5MÑ5M×5SÑ5SÓ5UÒUÙ#ð 
ð ô œCÓ €IÜ˜Ö+‰	ˆØ‹˜1Ñ�ñ ,ô �Y—_‘_Ó&Ö'‰ˆØ��6Ø’ñ (ô ”eœC 
›OÓ,Ö-ˆØ‰xˆØÕØ‹H˜ 	¡Ñ/Ñ/‹HØ‹O˜qÑ �Oñ	 .ô ”�EÓ&Ó'Ð'ùò%s   …ADFr=   c                 ó(   • [        [        U5      XS9$ )a…  Construct a :class:`Pipeline` from the given estimators.

This is a shorthand for the :class:`Pipeline` constructor; it does not
require, and does not permit, naming the estimators. Instead, their names
will be set to the lowercase of their types automatically.

Parameters
----------
*steps : list of Estimator objects
    List of the scikit-learn estimators that are chained together.

memory : str or object with the joblib.Memory interface, default=None
    Used to cache the fitted transformers of the pipeline. The last step
    will never be cached, even if it is a transformer. By default, no
    caching is performed. If a string is given, it is the path to the
    caching directory. Enabling caching triggers a clone of the transformers
    before fitting. Therefore, the transformer instance given to the
    pipeline cannot be inspected directly. Use the attribute ``named_steps``
    or ``steps`` to inspect estimators within the pipeline. Caching the
    transformers is advantageous when fitting is time consuming.

verbose : bool, default=False
    If True, the time elapsed while fitting each step will be printed as it
    is completed.

Returns
-------
p : Pipeline
    Returns a scikit-learn :class:`Pipeline` object.

See Also
--------
Pipeline : Class for creating a pipeline of transforms with a final
    estimator.

Examples
--------
>>> from sklearn.naive_bayes import GaussianNB
>>> from sklearn.preprocessing import StandardScaler
>>> from sklearn.pipeline import make_pipeline
>>> make_pipeline(StandardScaler(), GaussianNB(priors=None))
Pipeline(steps=[('standardscaler', StandardScaler()),
                ('gaussiannb', GaussianNB())])
r=   )r#   r1  )r:   r;   r6   s      r.   r%   r%   Ä  s   € ôZ Ô$ UÓ+°FÑLÐLr1   c                 óN   • U R                   " U40 UR                   D6nUc  U$ XS-  $ )a  Call transform and apply weight to output.

Parameters
----------
transformer : estimator
    Estimator to be used for transformation.

X : {array-like, sparse matrix} of shape (n_samples, n_features)
    Input data to be transformed.

y : ndarray of shape (n_samples,)
    Ignored.

weight : float
    Weight to be applied to the output of the transformation.

params : dict
    Parameters to be passed to the transformer's ``transform`` method.

    This should be of the form ``process_routing()["step_name"]``.
rB   )r­   rª   r«   Úweightr§   Úress         r.   Ú_transform_oner6  ô  s1   € ð, ×
Ò
 Ñ
6 V×%5Ñ%5Ñ
6€Cà�~Øˆ
Ø‰<Ðr1   c           	      óp  • U=(       d    0 n[        XE5         [        U S5      (       a$  U R                  " X40 UR                  S0 5      D6nODU R                  " X40 UR                  S0 5      D6R
                  " U40 UR                  S0 5      D6nSSS5        Uc  WU 4$ WU-  U 4$ ! , (       d  f       N= f)zþ
Fits ``transformer`` to ``X`` and ``y``. The transformed result is returned
with the fitted transformer. If ``weight`` is not ``None``, the result will
be multiplied by ``weight``.

``params`` needs to be of the form ``process_routing()["step_name"]``.
r]   r\   rC   N)r   rb   r]   rÅ   r\   rC   )r­   rª   r«   r4  r¥   r¦   r§   r5  s           r.   r©   r©     s±   € ð �\�r€FÜ	˜_Õ	6Ü�; ×0Ñ0Ø×+Ò+¨AÑT°F·J±J¸ÐPRÓ4SÑT‰Cà—/’/ !Ñ@¨&¯*©*°U¸BÓ*?Ñ@×JÒJØñØ—Z‘Z ¨RÓ0ñˆC÷	 
7ð �~Ø�KÐÐØ�‰<˜Ð$Ð$÷ 
7Õ	6ús   —A:B'Â'
B5c                 óz   • [        XE5         U R                  " X40 US   D6sSSS5        $ ! , (       d  f       g= f)z*
Fits ``transformer`` to ``X`` and ``y``.
r\   N)r   r\   )r­   rª   r«   r4  r¥   r¦   r§   s          r.   Ú_fit_oner9  )  s-   € ô 
˜_Õ	6Ø�Š˜qÑ5 v¨e¡}Ñ5÷ 
7×	6×	6ús   Œ,¬
:c                   óú   ^ • \ rS rSrSrS/rSSSSS.S jrSS	.U 4S
 jjr\S 5       r	S!S jr
S rS rS rS rS"S jrS rS"S jrS"S jrS rS rS rS rS r\S 5       r\S 5       rS rS rS rS rS rU =r$ )#r$   i1  a4  Concatenates results of multiple transformer objects.

This estimator applies a list of transformer objects in parallel to the
input data, then concatenates the results. This is useful to combine
several feature extraction mechanisms into a single transformer.

Parameters of the transformers may be set using its name and the parameter
name separated by a '__'. A transformer may be replaced entirely by
setting the parameter with its name to another transformer, removed by
setting to 'drop' or disabled by setting to 'passthrough' (features are
passed without transformation).

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

.. versionadded:: 0.13

Parameters
----------
transformer_list : list of (str, transformer) tuples
    List of transformer objects to be applied to the data. The first
    half of each tuple is the name of the transformer. The transformer can
    be 'drop' for it to be ignored or can be 'passthrough' for features to
    be passed unchanged.

    .. versionadded:: 1.1
       Added the option `"passthrough"`.

    .. versionchanged:: 0.22
       Deprecated `None` as a transformer in favor of 'drop'.

n_jobs : int, default=None
    Number of jobs to run in parallel.
    ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
    ``-1`` means using all processors. See :term:`Glossary <n_jobs>`
    for more details.

    .. versionchanged:: v0.20
       `n_jobs` default changed from 1 to None

transformer_weights : dict, default=None
    Multiplicative weights for features per transformer.
    Keys are transformer names, values the weights.
    Raises ValueError if key not present in ``transformer_list``.

verbose : bool, default=False
    If True, the time elapsed while fitting each transformer will be
    printed as it is completed.

verbose_feature_names_out : bool, default=True
    If True, :meth:`get_feature_names_out` will prefix all feature names
    with the name of the transformer that generated that feature.
    If False, :meth:`get_feature_names_out` will not prefix any feature
    names and will error if feature names are not unique.

    .. versionadded:: 1.5

Attributes
----------
named_transformers : :class:`~sklearn.utils.Bunch`
    Dictionary-like object, with the following attributes.
    Read-only attribute to access any transformer parameter by user
    given name. Keys are transformer names and values are
    transformer parameters.

    .. versionadded:: 1.2

n_features_in_ : int
    Number of features seen during :term:`fit`. Only defined if the
    underlying first transformer in `transformer_list` exposes such an
    attribute when 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.3

See Also
--------
make_union : Convenience function for simplified feature union
    construction.

Examples
--------
>>> from sklearn.pipeline import FeatureUnion
>>> from sklearn.decomposition import PCA, TruncatedSVD
>>> union = FeatureUnion([("pca", PCA(n_components=1)),
...                       ("svd", TruncatedSVD(n_components=2))])
>>> X = [[0., 1., 3], [2., 2., 5]]
>>> union.fit_transform(X)
array([[-1.5       ,  3.0..., -0.8...],
       [ 1.5       ,  5.7...,  0.4...]])
>>> # An estimator's parameter can be set using '__' syntax
>>> union.set_params(svd__n_components=1).fit_transform(X)
array([[-1.5       ,  3.0...],
       [ 1.5       ,  5.7...]])

For a more detailed example of usage, see
:ref:`sphx_glr_auto_examples_compose_plot_feature_union.py`.
Útransformer_listNFT)Ún_jobsÚtransformer_weightsr;   Úverbose_feature_names_outc                ó@   • Xl         X l        X0l        X@l        XPl        g r?   )r;  r<  r=  r;   r>  )r,   r;  r<  r=  r;   r>  s         r.   r@   ÚFeatureUnion.__init__›  s    € ð !1ÔØŒØ#6Ô ØŒØ)BÕ&r1   rB   c                óh   >• [         TU ]  US9  U R                  5        H  u  p#n[        X1S9  M     U $ )a  Set the output container when `"transform"` and `"fit_transform"` are called.

`set_output` will set the output of all estimators in `transformer_list`.

Parameters
----------
transform : {"default", "pandas", "polars"}, default=None
    Configure output of `transform` and `fit_transform`.

    - `"default"`: Default output format of a transformer
    - `"pandas"`: DataFrame output
    - `"polars"`: Polars output
    - `None`: Transform configuration is unchanged

Returns
-------
self : estimator instance
    Estimator instance.
rB   )ÚsuperrH   rE   r   )r,   rC   rF   rG   r~   s       €r.   rH   ÚFeatureUnion.set_outputª  s6   ø€ ô( 	‰Ñ YÐÑ/ØŸ*™*ž,‰JˆA�QÜ˜TÔ7ñ 'àˆr1   c                 ó>   • [        S0 [        U R                  5      D6$ )Nr2   )r   rˆ   r;  rw   s    r.   Únamed_transformersÚFeatureUnion.named_transformersÃ  s   € ô Ñ3”t˜D×1Ñ1Ó2Ñ3Ð3r1   c                 ó"   • U R                  SUS9$ )aª  Get parameters for this estimator.

Returns the parameters given in the constructor as well as the
estimators contained within the `transformer_list` of the
`FeatureUnion`.

Parameters
----------
deep : bool, default=True
    If True, will return the parameters for this estimator and
    contained subobjects that are estimators.

Returns
-------
params : mapping of string to any
    Parameter names mapped to their values.
r;  rK   rM   rO   s     r.   rP   ÚFeatureUnion.get_paramsÈ  s   € ð$ ×ÑÐ 2¸ÐÐ>Ð>r1   c                 ó*   • U R                   " S0 UD6  U $ )aò  Set the parameters of this estimator.

Valid parameter keys can be listed with ``get_params()``. Note that
you can directly set the parameters of the estimators contained in
`transformer_list`.

Parameters
----------
**kwargs : dict
    Parameters of this estimator or parameters of estimators contained
    in `transform_list`. Parameters of the transformers may be set
    using its name and the parameter name separated by a '__'.

Returns
-------
self : object
    FeatureUnion class instance.
)r;  rS   rU   s     r.   rW   ÚFeatureUnion.set_paramsÜ  s   € ð& 	×ÒÑ6¨vÒ6Øˆr1   c           	      ó  • [        U R                  6 u  pU R                  U5        U H[  nUS;   a  M  [        US5      (       d  [        US5      (       a  [        US5      (       a  M@  [	        SU< S[        U5      < S35      e   g )N)Údropr[   r\   r]   rC   z4All estimators should implement fit and transform. 'r^   r_   )r`   r;  ra   rb   rc   rd   )r,   re   rg   ri   s       r.   Ú_validate_transformersÚ#FeatureUnion._validate_transformersò  s‡   € Ü! 4×#8Ñ#8Ð9Ñˆð 	×Ñ˜UÔ#ó ˆAØÐ+Ó+ÙÜ˜A˜u×%Ñ%¬°°O×)DÑ)DÌWØ�;÷Nó Nõ  ã;<¼dÀ1¾gðGóð ò r1   c                 ó®   • U R                   (       d  g [        S U R                   5       5      nU R                    H  nX!;  d  M
  [        SU S35      e   g )Nc              3   ó*   #   • U  H	  u  pUv •  M     g 7fr?   r2   )rÞ   rs   rF   s      r.   rß   Ú=FeatureUnion._validate_transformer_weights.<locals>.<genexpr>  s   é € ÐJÒ4I©¨¥Ò4Iùó   ‚z"Attempting to weight transformer "z-", but it is not present in transformer_list.)r=  Úsetr;  r}   )r,   Útransformer_namesrs   s      r.   Ú_validate_transformer_weightsÚ*FeatureUnion._validate_transformer_weights  s[   € Ø×'×'ØäÑJ°D×4IÒ4IÓJÓJÐØ×,Ô,ˆDØÕ,Ü Ø8¸¸ð ?Að Aóð ò -r1   c              #   óº   #   • U R                   =(       d    0 R                  nU R                   H(  u  p#US:X  a  M  US:X  a	  [        SS9nX#U" U5      4v •  M*     g7f)zO
Generate (name, trans, weight) tuples excluding None and
'drop' transformers.
rL  r[   z
one-to-one)rü   N)r=  rÅ   r;  r   )r,   Ú
get_weightrs   rt   s       r.   rE   ÚFeatureUnion._iter  s[   é € ð ×.Ñ.×4°"×9Ñ9ˆ
à×0Ô0‰KˆDØ˜‹ÙØ˜Ó%Ü+¸lÑK�Ø¡
¨4Ó 0Ð1Ô1ò 1ùs   ‚AAc           	      ó$  • / nU R                  5        Hj  u  p4n[        US5      (       d0  [        S[        U5      < S[	        U5      R
                  < S35      eUR                  U5      nUR                  X645        Ml     U R                  U5      $ )zìGet output feature names for transformation.

Parameters
----------
input_features : array-like of str or None, default=None
    Input features.

Returns
-------
feature_names_out : ndarray of str objects
    Transformed feature names.
rú   zTransformer z (type z)) does not provide get_feature_names_out.)	rE   rb   r‹   r  rd   r	  rú   ÚappendÚ!_add_prefix_for_feature_names_out)r,   rû   Ú"transformer_with_feature_names_outrs   rt   rF   rü   s          r.   rú   Ú"FeatureUnion.get_feature_names_out  s�   € ð .0Ð*Ø"Ÿj™jžl‰NˆD˜Ü˜5Ð"9×:Ñ:Ý$ä˜4–y¤$ u£+×"6Ô"6ð8óð ð !&× ;Ñ ;¸NÓ KÐØ.×5Ñ5°tÐ6OÖPñ +ð ×5Ñ5Ø.ó
ð 	
r1   c                 ó`  • U R                   (       a?  [        [        R                  " S U 5       5      5      n[        R
                  " U[        S9$ [        [        R                  " S U 5       5      5      nUR                  S5       VVs/ s H  u  pEUS:”  d  M  UPM     nnnUR                  5         U(       a>  [        U5      S:X  a  [        USS 5      SS S	-   nO[        U5      n[        S
U S35      e[        R                  " U VVs/ s H  u  p„UPM	     snn5      $ s  snnf s  snnf )ai  Add prefix for feature names out that includes the transformer names.

Parameters
----------
transformer_with_feature_names_out : list of tuples of (str, array-like of str)
    The tuple consistent of the transformer's name and its feature names out.

Returns
-------
feature_names_out : ndarray of shape (n_features,), dtype=str
    Transformed feature names.
c              3   óB   ^#   • U  H  u  mnU4S  jU 5       v •  M     g7f)c              3   ó2   >#   • U  H  nT S U 3v •  M     g7f)r“   Nr2   )rÞ   r0  rs   s     €r.   rß   ÚKFeatureUnion._add_prefix_for_feature_names_out.<locals>.<genexpr>.<genexpr>L  s   øé € Ð?Ò->¨˜�v˜R ˜s•^Ò->ùs   ƒNr2   )rÞ   rü   rs   s     @r.   rß   ÚAFeatureUnion._add_prefix_for_feature_names_out.<locals>.<genexpr>K  s(   øé € ð $â3UÑ/˜Ð/ô @Ñ->×?Ð?Ú3Uùs   ƒ)Údtypec              3   ó*   #   • U  H	  u  pUv •  M     g 7fr?   r2   )rÞ   rF   Úss      r.   rß   rc  U  s   é € ÐQÒ.P¡d a¥Ò.PùrR  é   r   Né   rZ   z, ...]zOutput feature names: z[ are not unique. Please set verbose_feature_names_out=True to add prefixes to feature names)r>  r¨   r   Úfrom_iterableÚnpÚasarrayÚobjectr   Úmost_commonÚsortrm   r  r}   Úconcatenate)	r,   r]  re   Úfeature_names_countrs   ÚcountÚtop_6_overlapÚ
names_reprrF   s	            r.   r\  Ú.FeatureUnion._add_prefix_for_feature_names_out;  s5  € ð ×)×)äÜ×#Ò#ñ $á3Uó$ó óˆEô —:’:˜e¬6Ñ2Ð2ô &Ü×ÒÑQÑ.PÓQÓQó
Ðð %8×$CÑ$CÀAÔ$Fô
Ú$F‘[�TÈ%ÐRSÉ)�DÑ$Fð 	ñ 
ð 	×ÑÔÞÜ�=Ó! QÓ&ô ! ¨r°Ð!2Ó3°C°RÐ8¸8ÑC‘
ä  Ó/�
ÜØ(¨¨ð 5Rð Róð ô
 �~Š~Ù!CÔDÒ!C‘g�a‹TÑ!CÒDó
ð 	
ùó!
ùó" Es   ÂD$ÂD$ÄD*
c                 ó  • [        5       (       a  [        U S40 UD6nO3[        5       nU R                   H  u  pV[        0 S9XE'   X4U   l        M     U R                  X[        U5      nU(       d  U $ U R                  U5        U $ )a  Fit all transformers using X.

Parameters
----------
X : iterable or array-like, depending on transformers
    Input data, used to fit transformers.

y : array-like of shape (n_samples, n_outputs), default=None
    Targets for supervised learning.

**fit_params : dict, default=None
    - If `enable_metadata_routing=False` (default):
      Parameters directly passed to the `fit` methods of the
      sub-transformers.

    - If `enable_metadata_routing=True`:
      Parameters safely routed to the `fit` methods of the
      sub-transformers. See :ref:`Metadata Routing User Guide
      <metadata_routing>` for more details.

    .. versionchanged:: 1.5
        `**fit_params` can be routed via metadata routing API.

Returns
-------
self : object
    FeatureUnion class instance.
r\   ©r\   )r   r   r   r;  r\   Ú_parallel_funcr9  Ú_update_transformer_list)r,   rª   r«   Ú
fit_paramsrš   rs   rF   rg   s           r.   r\   ÚFeatureUnion.fitk  s�   € ô: ×ÑÜ+¨D°%ÑF¸:ÑF‰Mô "›GˆMØ×0Ô0‘�Ü&+°¡m�Ñ#Ø*4˜dÑ#Ö'ñ 1ð ×*Ñ*¨1´¸=ÓIˆæàˆKà×%Ñ% lÔ3Øˆr1   c                 óä  • [        5       (       a  [        U S40 UD6nOe[        5       nU R                   HK  u  pV[	        US5      (       a  [        0 S9XE'   X4U   l        M,  [        0 S9XE'   [        0 S9XE'   X4U   l        MM     U R                  X[        U5      nU(       d%  [        R                  " UR                  S   S45      $ [        U6 u  p‰U R                  U	5        U R                  U5      $ )aØ  Fit all transformers, transform the data and concatenate results.

Parameters
----------
X : iterable or array-like, depending on transformers
    Input data to be transformed.

y : array-like of shape (n_samples, n_outputs), default=None
    Targets for supervised learning.

**params : dict, default=None
    - If `enable_metadata_routing=False` (default):
      Parameters directly passed to the `fit` methods of the
      sub-transformers.

    - If `enable_metadata_routing=True`:
      Parameters safely routed to the `fit` methods of the
      sub-transformers. See :ref:`Metadata Routing User Guide
      <metadata_routing>` for more details.

    .. versionchanged:: 1.5
        `**params` can now be routed via metadata routing API.

Returns
-------
X_t : array-like or sparse matrix of                 shape (n_samples, sum_n_components)
    The `hstack` of results of transformers. `sum_n_components` is the
    sum of `n_components` (output dimension) over transformers.
r]   )r]   rv  rB   r   )r   r   r   r;  rb   r]   r\   rw  r©   rj  ÚzerosÚshaper`   rx  Ú_hstack)
r,   rª   r«   r§   rš   rs   ÚobjÚresultsÚXsrg   s
             r.   r]   ÚFeatureUnion.fit_transformš  sà   € ô> ×ÑÜ+¨D°/ÑLÀVÑL‰Mô "›GˆMØ!×2Ô2‘	�Ü˜3 ×0Ñ0Ü*/¸bÑ*A�MÑ'Ø8> $Ñ'Ö5ä*/°B©-�MÑ'Ü*/¸"Ñ*=�MÑ'Ø.4 $Ñ'Ö+ñ 3ð ×%Ñ% aÔ,>ÀÓNˆÞä—8’8˜QŸW™W Q™Z¨˜OÓ,Ð,ä ˜=ÑˆØ×%Ñ% lÔ3à�|‰|˜BÓÐr1   c                 ó4   • U R                   (       d  g SX#U4-  $ )NrŽ   )r;   )r,   rs   rr   Útotals       r.   r�   ÚFeatureUnion._log_messageÑ  s   € Ø�|�|ØØ.°#¸dÐ1CÑCÐCr1   c                 ó  ^ ^^^^^• [        T R                  5      T l        T R                  5         T R                  5         [        T R	                  5       5      m[        T R                  S9" UUUU UU4S j[        TS5       5       5      $ )z Runs func in parallel on X and y©r<  c              3   ó’   >#   • U  H<  u  nu  p#n[        T5      " UTT
US TR                  X![        T	5      5      TU   S9v •  M>     g7f)r$   r¤   N)r    r�   rm   )rÞ   rr   rs   r­   r4  rª   Úfuncrš   r,   rg   r«   s        €€€€€€r.   rß   Ú.FeatureUnion._parallel_func.<locals>.<genexpr>Ý  s]   øé € ð ,
ò 5OÑ0�Ñ0�d¨ô �DŒMØØØØØ .Ø×)Ñ)¨$´S¸Ó5FÓGØ$ TÑ*öò 5Oùs   ƒAAr   )r¨   r;  rM  rU  rE   r   r<  rn   )r,   rª   r«   r‰  rš   rg   s   `````@r.   rw  ÚFeatureUnion._parallel_funcÖ  so   ý€ ä $ T×%:Ñ%:Ó ;ˆÔØ×#Ñ#Ô%Ø×*Ñ*Ô,Ü˜DŸJ™J›LÓ)ˆä˜tŸ{™{Ò+÷ ,
ñ ,
ô 5>¸lÈAÔ4Nó,
ó 
ð 	
r1   c                 óŒ  ^^• [        X S5        [        5       (       a  [        U S40 UD6mO+[        5       mU R                   H  u  p4[        0 S9TU'   M     [        U R                  S9" UU4S jU R                  5        5       5      nU(       d%  [        R                  " TR                  S   S45      $ U R                  U5      $ )a†  Transform X separately by each transformer, concatenate results.

Parameters
----------
X : iterable or array-like, depending on transformers
    Input data to be transformed.

**params : dict, default=None

    Parameters routed to the `transform` method of the sub-transformers via the
    metadata routing API. See :ref:`Metadata Routing User Guide
    <metadata_routing>` for more details.

    .. versionadded:: 1.5

Returns
-------
X_t : array-like or sparse matrix of shape (n_samples, sum_n_components)
    The `hstack` of results of transformers. `sum_n_components` is the
    sum of `n_components` (output dimension) over transformers.
rC   rB   r‡  c           	   3   ó^   >#   • U  H"  u  pn[        [        5      " UTS UTU   S9v •  M$     g 7f)N)r§   )r    r6  )rÞ   rs   rt   r4  rª   rš   s       €€r.   rß   Ú)FeatureUnion.transform.<locals>.<genexpr>
  s5   øé € ð *
â'3Ñ#�˜Vô ”NÔ# E¨1¨d°FÀ=ÐQUÑCVÖWÚ'3ùs   ƒ*-r   )r   r   r   r   r;  r   r<  rE   rj  r|  r}  r~  )r,   rª   r§   rs   rF   r�  rš   s    `    @r.   rC   ÚFeatureUnion.transformê  sª   ù€ ô, 	˜&¨Ô4ä×ÑÜ+¨D°+ÑHÀÑH‰Mô "›GˆMØ×0Ô0‘�Ü&+°bÑ&9�˜dÓ#ñ 1ô ˜TŸ[™[Ò)õ *
à'+§z¡z¤|ó*
ó 
ˆö ä—8’8˜QŸW™W Q™Z¨˜OÓ,Ð,à�|‰|˜BÓÐr1   c                 ó*  ^• [        SU 5      mT(       a+  [        U4S jU 5       5      (       a  TR                  U5      $ [        S U 5       5      (       a&  [        R                  " U5      R                  5       nU$ [        R                  " U5      nU$ )NrC   c              3   óF   >#   • U  H  nTR                  U5      v •  M     g 7fr?   )Úis_supported_container)rÞ   rª   Úadapters     €r.   rß   Ú'FeatureUnion._hstack.<locals>.<genexpr>  s   øé € ÐIÂbÀ˜7×9Ñ9¸!×<Ð<Âbùs   ƒ!c              3   óN   #   • U  H  n[         R                  " U5      v •  M     g 7fr?   )r   Úissparse)rÞ   Úfs     r.   rß   r”    s   é € Ð.ª2 aŒv�Š˜q×!Ð!ª2ùs   ‚#%)r   rá   ÚhstackÚanyr   Útocsrrj  )r,   r�  r“  s     @r.   r~  ÚFeatureUnion._hstack  st   ø€ Ü(¨°dÓ;ˆÞ”sÔIÁbÓI×IÑIØ—>‘> "Ó%Ð%äÑ.©2Ó.×.Ñ.Ü—’˜rÓ"×(Ñ(Ó*ˆBð ˆ	ô —’˜2“ˆBØˆ	r1   c                 ó¦   • [        U5      nU R                   VVs/ s H  u  p#X#S:X  a  UO
[        U5      4PM     snnU R                  S S & g s  snnf )NrL  )Úiterr;  Únext)r,   rg   rs   Úolds       r.   rx  Ú%FeatureUnion._update_transformer_list  sS   € Ü˜LÓ)ˆð "×2Ò2ô$
â2‘	�ð  ›-‘3¬T°,Ó-?Ó@Ù2ò$
ˆ×Ñ™aÑ ùó $
s   › Ac                 ó:   • U R                   S   S   R                  $ )z+Number of features seen during :term:`fit`.r   r   )r;  rÿ   rw   s    r.   rÿ   ÚFeatureUnion.n_features_in_&  s    € ð
 ×$Ñ$ QÑ'¨Ñ*×9Ñ9Ð9r1   c                 ó:   • U R                   S   S   R                  $ )z*Names of features seen during :term:`fit`.r   r   )r;  r  rw   s    r.   r  ÚFeatureUnion.feature_names_in_-  s    € ð ×$Ñ$ QÑ'¨Ñ*×<Ñ<Ð<r1   c                 óN   • U R                  5        H  u  pn[        U5        M     gr)   )rE   r!   )r,   rF   r­   s      r.   r  Ú"FeatureUnion.__sklearn_is_fitted__3  s"   € à!%§¡¦ÑˆA˜AÜ˜KÖ(ñ ".àr1   c                 ó>   • [        U R                  6 u  p[        SX!S9$ )NÚparallel)re   )r`   r;  r   )r,   re   rg   s      r.   r  ÚFeatureUnion._sk_visual_block_9  s"   € Ü! 4×#8Ñ#8Ð9ÑˆÜ˜J¨ÑBÐBr1   c                 ó`   • [        U[        5      (       d  [        S5      eU R                  U   $ )zReturn transformer with name.zOnly string keys are supported)r{   r  ÚKeyErrorrE  )r,   rs   s     r.   r‚   ÚFeatureUnion.__getitem__=  s,   € ä˜$¤×$Ñ$ÜÐ;Ó<Ð<Ø×&Ñ& tÑ,Ð,r1   c                 ó4  • [        U R                  R                  S9nU R                   Hj  u  p#UR                  " S0 X#0DS[        5       R	                  SSS9R	                  SSS9R	                  SSS9R	                  SSS9R	                  SSS90D6  Ml     U$ )a"  Get metadata routing of this object.

Please check :ref:`User Guide <metadata_routing>` on how the routing
mechanism works.

.. versionadded:: 1.5

Returns
-------
routing : MetadataRouter
    A :class:`~sklearn.utils.metadata_routing.MetadataRouter` encapsulating
    routing information.
r  r  r\   r  r]   rC   r2   )r   r~   r	  r;  r  r   )r,   r  rs   r­   s       r.   r  Ú!FeatureUnion.get_metadata_routingC  s™   € ô   d§n¡n×&=Ñ&=Ñ>ˆà!%×!6Ô!6ÑˆDØ�JŠJñ ØÐ%ñä,›ß‘˜E¨%�Ð0ß‘˜O°O�ÐDß‘˜O°E�Ð:ß‘˜O°K�Ð@ß‘˜K°�Ð<õñ "7ð ˆr1   )r<  r;  r=  r;   r>  r  r?   ) r	  r   r!  r"  r#  r$  r@   rH   r'  rE  rP   rW   rM  rU  rE   rú   r\  r\   r]   r�   rw  rC   r~  rx  rÿ   r  r  r  r‚   r  r(  Ú__classcell__)r~   s   @r.   r$   r$   1  sÙ   ø† ñeðN /Ð/Ðð Ø ØØ"&õCð '+÷ ð ð2 ñ4ó ð4ô?ò(ò,ò$
ò2ô
ò8.
ô`-ô^5 ònDò

ò(( òT	ò
ð ñ:ó ð:ð ñ=ó ð=ò
òCò-÷ð r1   r$   ©r<  r;   c                 ó(   • [        [        U5      XS9$ )a<  Construct a :class:`FeatureUnion` from the given transformers.

This is a shorthand for the :class:`FeatureUnion` constructor; it does not
require, and does not permit, naming the transformers. Instead, they will
be given names automatically based on their types. It also does not allow
weighting.

Parameters
----------
*transformers : list of estimators
    One or more estimators.

n_jobs : int, default=None
    Number of jobs to run in parallel.
    ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
    ``-1`` means using all processors. See :term:`Glossary <n_jobs>`
    for more details.

    .. versionchanged:: v0.20
       `n_jobs` default changed from 1 to None.

verbose : bool, default=False
    If True, the time elapsed while fitting each transformer will be
    printed as it is completed.

Returns
-------
f : FeatureUnion
    A :class:`FeatureUnion` object for concatenating the results of multiple
    transformer objects.

See Also
--------
FeatureUnion : Class for concatenating the results of multiple transformer
    objects.

Examples
--------
>>> from sklearn.decomposition import PCA, TruncatedSVD
>>> from sklearn.pipeline import make_union
>>> make_union(PCA(), TruncatedSVD())
 FeatureUnion(transformer_list=[('pca', PCA()),
                               ('truncatedsvd', TruncatedSVD())])
r°  )r$   r1  )r<  r;   rg   s      r.   r&   r&   a  s   € ôZ Ô(¨Ó6¸vÑWÐWr1   r?   )Ú NN)>r#  Úcollectionsr   r   Ú	itertoolsr   r   Únumpyrj  Úscipyr   Úbaser	   r
   r   Ú
exceptionsr   Úpreprocessingr   Úutilsr   Úutils._estimator_html_reprr   Úutils._metadata_requestsr   Úutils._param_validationr   r   Úutils._set_outputr   r   Úutils._tagsr   Úutils._user_interfacer   Úutils.deprecationr   Úutils.metadata_routingr   r   r   r   r   Úutils.metaestimatorsr   r   Úutils.parallelr   r    Úutils.validationr!   r"   Ú__all__r3   r#   r1  r%   r6  r©   r9  r$   r&   r2   r1   r.   Ú<module>rÇ     s·   ðÙ W÷ -ß #ã Ý ç 7Ñ 7Ý &Ý .Ý Ý 4Ý -ß 7÷õ $Ý 6Ý A÷õ ÷ Aß -ß ;â
E€ò
ôpÐô pòf#(ð0 "&¨uõ -Mô`ð< IMô%ô06ômÐ#Ð%5ô mð` &*°5ö -Xr1   