
    =pj                         S SK JrJrJrJrJr  S SKrSSKJ	r	  SSK
JrJr  SSKJr  SSKJr  S	S
KJr  \R&                  \	" S5       " S S\5      5       5       rg)    )AnyDictListOptionalUnionN   )pipeline_requires_extra   )	HPIConfigPaddlePredictorOption)TSClsResult)	benchmark   )BasePipelinetsc                      ^  \ rS rSrSrSrSSSSSSS.S\S\\   S	\\   S
\\\\	4      S\\
   S\S\\\\\	4   \4      SS4U 4S jjjrS\\\\   \R"                  \\R"                     4   S\4S jrSrU =r$ )TSClsPipeline   zTSClsPipeline Pipelinets_classificationNFdeviceengineengine_config	pp_optionuse_hpip
hpi_configconfigr   r   r   r   r   r   returnc          
      p   > [         T
U ]  " SUUUUUUS.UD6  US   S   n	U R                  U	5      U l        g)a  Initializes the time series classification pipeline.

Args:
    config (Dict): Configuration dictionary containing various settings.
    device (Optional[str], optional): The device to use for prediction. Defaults to `None`.
    engine (Optional[str], optional): Inference engine. Defaults to `None`.
    engine_config (Optional[Dict[str, Any]], optional): Engine-specific config. Defaults to `None`.
    pp_option (Optional[PaddlePredictorOption], optional): Paddle predictor options.
        Defaults to `None`.
    use_hpip (bool, optional): Whether to use HPIP. Defaults to `False`.
    hpi_config (Optional[Union[Dict[str, Any], HPIConfig]], optional):
        HPIP configuration. Defaults to `None`.
r   
SubModulesTSClassificationN )super__init__create_modelts_classification_model)selfr   r   r   r   r   r   r   kwargsts_classification_model_config	__class__s             r/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/paddlex/inference/pipelines/ts_classification/pipeline.pyr$   TSClsPipeline.__init__!   sZ    2 	 	
'!	
 	
 *0)=>P)Q&'+'8'89W'X$    inputc              +   B   #    U R                  U5       Sh  vN   g N7f)aU  Predicts time series classification results for the given input.

Args:
    input (Union[str, list[str], pd.DataFrame, list[pd.DataFrame]]): The input image(s) or path(s) to the images.
    **kwargs: Additional keyword arguments that can be passed to the function.

Returns:
    TSFcResult: The predicted time series classification results.
Nr&   )r'   r.   r(   s      r+   predictTSClsPipeline.predictG   s      //666s   r0   )__name__
__module____qualname____firstlineno____doc__entitiesr   r   strr   r   boolr   r   r$   r   pd	DataFramer   r1   __static_attributes____classcell__)r*   s   @r+   r   r      s     !"H !% $2659AE$Y$Y 	$Y
 $Y  S#X/$Y 12$Y $Y U4S>9#<=>$Y 
$Y $YL73S	2<<bll9KKL7	7 7r-   r   )typingr   r   r   r   r   pandasr;   
utils.depsr	   modelsr   r   models.ts_classification.resultr   utils.benchmarkr   baser   time_methodsr   r"   r-   r+   <module>rG      sM    4 3  2 6 : (  77L 77  77r-   