import{s as _o,o as xo,n as Ge}from"../chunks/scheduler.25b97de1.js";import{S as To,i as vo,g as c,s as r,r as m,A as bo,h as l,f as o,c as a,j as w,u as h,x as _,k as y,y as i,a as s,v as p,d as f,t as u,w as g}from"../chunks/index.d9030fc9.js";import{T as Ve}from"../chunks/Tip.baa67368.js";import{D as J}from"../chunks/Docstring.ffac8efa.js";import{C as go}from"../chunks/CodeBlock.e6cd0d95.js";import{E as Mo}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as z,E as $o}from"../chunks/EditOnGithub.91d95064.js";function Po(M){let n,x="Example:",d,T,S;return T=new go({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBhdGNoVFNNaXhlckNvbmZpZyUyQyUyMFBhdGNoVFNNaXhlck1vZGVsJTBBJTBBJTIzJTIwSW5pdGlhbGl6aW5nJTIwYSUyMGRlZmF1bHQlMjBQYXRjaFRTTWl4ZXIlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMFBhdGNoVFNNaXhlckNvbmZpZygpJTBBJTBBJTIzJTIwUmFuZG9tbHklMjBpbml0aWFsaXppbmclMjBhJTIwbW9kZWwlMjAod2l0aCUyMHJhbmRvbSUyMHdlaWdodHMpJTIwZnJvbSUyMHRoZSUyMGNvbmZpZ3VyYXRpb24lMEFtb2RlbCUyMCUzRCUyMFBhdGNoVFNNaXhlck1vZGVsKGNvbmZpZ3VyYXRpb24pJTBBJTBBJTIzJTIwQWNjZXNzaW5nJTIwdGhlJTIwbW9kZWwlMjBjb25maWd1cmF0aW9uJTBBY29uZmlndXJhdGlvbiUyMCUzRCUyMG1vZGVsLmNvbmZpZw==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PatchTSMixerConfig, PatchTSMixerModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Initializing a default PatchTSMixer configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = PatchTSMixerConfig()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Randomly initializing a model (with random weights) from the configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model = PatchTSMixerModel(configuration)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Accessing the model configuration</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>configuration = model.config`,wrap:!1}}),{c(){n=c("p"),n.textContent=x,d=r(),m(T.$$.fragment)},l(v){n=l(v,"P",{"data-svelte-h":!0}),_(n)!=="svelte-11lpom8"&&(n.textContent=x),d=a(v),h(T.$$.fragment,v)},m(v,F){s(v,n,F),s(v,d,F),p(T,v,F),S=!0},p:Ge,i(v){S||(f(T.$$.fragment,v),S=!0)},o(v){u(T.$$.fragment,v),S=!1},d(v){v&&(o(n),o(d)),g(T,v)}}}function wo(M){let n,x=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){n=c("p"),n.innerHTML=x},l(d){n=l(d,"P",{"data-svelte-h":!0}),_(n)!=="svelte-fincs2"&&(n.innerHTML=x)},m(d,T){s(d,n,T)},p:Ge,d(d){d&&o(n)}}}function yo(M){let n,x=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){n=c("p"),n.innerHTML=x},l(d){n=l(d,"P",{"data-svelte-h":!0}),_(n)!=="svelte-fincs2"&&(n.innerHTML=x)},m(d,T){s(d,n,T)},p:Ge,d(d){d&&o(n)}}}function So(M){let n,x=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){n=c("p"),n.innerHTML=x},l(d){n=l(d,"P",{"data-svelte-h":!0}),_(n)!=="svelte-fincs2"&&(n.innerHTML=x)},m(d,T){s(d,n,T)},p:Ge,d(d){d&&o(n)}}}function Fo(M){let n,x=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){n=c("p"),n.innerHTML=x},l(d){n=l(d,"P",{"data-svelte-h":!0}),_(n)!=="svelte-fincs2"&&(n.innerHTML=x)},m(d,T){s(d,n,T)},p:Ge,d(d){d&&o(n)}}}function Co(M){let n,x=`Although the recipe for forward pass needs to be defined within this function, one should call the <code>Module</code>
instance afterwards instead of this since the former takes care of running the pre and post processing steps while
the latter silently ignores them.`;return{c(){n=c("p"),n.innerHTML=x},l(d){n=l(d,"P",{"data-svelte-h":!0}),_(n)!=="svelte-fincs2"&&(n.innerHTML=x)},m(d,T){s(d,n,T)},p:Ge,d(d){d&&o(n)}}}function ko(M){let n,x,d,T,S,v,F,Xe,Y,qt='The PatchTSMixer model was proposed in <a href="https://arxiv.org/pdf/2306.09364.pdf" rel="nofollow">TSMixer: Lightweight MLP-Mixer Model for Multivariate Time Series Forecasting</a> by Vijay Ekambaram, Arindam Jati, Nam Nguyen, Phanwadee Sinthong and Jayant Kalagnanam.',Ae,Q,Vt="PatchTSMixer is a lightweight time-series modeling approach based on the MLP-Mixer architecture. In this HuggingFace implementation, we provide PatchTSMixer’s capabilities to effortlessly facilitate lightweight mixing across patches, channels, and hidden features for effective multivariate time-series modeling. It also supports various attention mechanisms starting from simple gated attention to more complex self-attention blocks that can be customized accordingly. The model can be pretrained and subsequently used for various downstream tasks such as forecasting, classification and regression.",Ye,K,Xt="The abstract from the paper is the following:",Qe,ee,At="<em>TSMixer is a lightweight neural architecture exclusively composed of multi-layer perceptron (MLP) modules designed for multivariate forecasting and representation learning on patched time series. Our model draws inspiration from the success of MLP-Mixer models in computer vision. We demonstrate the challenges involved in adapting Vision MLP-Mixer for time series and introduce empirically validated components to enhance accuracy. This includes a novel design paradigm of attaching online reconciliation heads to the MLP-Mixer backbone, for explicitly modeling the time-series properties such as hierarchy and channel-correlations. We also propose a Hybrid channel modeling approach to effectively handle noisy channel interactions and generalization across diverse datasets, a common challenge in existing patch channel-mixing methods. Additionally, a simple gated attention mechanism is introduced in the backbone to prioritize important features. By incorporating these lightweight components, we significantly enhance the learning capability of simple MLP structures, outperforming complex Transformer models with minimal computing usage. Moreover, TSMixer’s modular design enables compatibility with both supervised and masked self-supervised learning methods, making it a promising building block for time-series Foundation Models. TSMixer outperforms state-of-the-art MLP and Transformer models in forecasting by a considerable margin of 8-60%. It also outperforms the latest strong benchmarks of Patch-Transformer models (by 1-2%) with a significant reduction in memory and runtime (2-3X).</em>",Ke,te,Yt=`This model was contributed by <a href="https://huggingface.co/ajati" rel="nofollow">ajati</a>, <a href="https://huggingface.co/vijaye12" rel="nofollow">vijaye12</a>,
<a href="https://huggingface.co/gsinthong" rel="nofollow">gsinthong</a>, <a href="https://huggingface.co/namctin" rel="nofollow">namctin</a>,
<a href="https://huggingface.co/wmgifford" rel="nofollow">wmgifford</a>, <a href="https://huggingface.co/kashif" rel="nofollow">kashif</a>.`,et,oe,tt,ne,Qt='The code snippet below shows how to randomly initialize a PatchTSMixer model. The model is compatible with the <a href="../trainer.md">Trainer API</a>.',ot,re,nt,ae,rt,se,Kt='The model can also be used for time series classification and time series regression. See the respective <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerForTimeSeriesClassification">PatchTSMixerForTimeSeriesClassification</a> and <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerForRegression">PatchTSMixerForRegression</a> classes.',at,ie,st,ce,eo='<li>A blog post explaining PatchTSMixer in depth can be found <a href="https://huggingface.co/blog/patchtsmixer" rel="nofollow">here</a>. The blog can also be opened in Google Colab.</li>',it,le,ct,$,de,Mt,Se,to=`This is the configuration class to store the configuration of a <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerModel">PatchTSMixerModel</a>. It is used to instantiate a
PatchTSMixer model according to the specified arguments, defining the model architecture. Instantiating a
configuration with the defaults will yield a similar configuration to that of the PatchTSMixer
<a href="https://huggingface.co/ibm/patchtsmixer-etth1-pretrain" rel="nofollow">ibm/patchtsmixer-etth1-pretrain</a> architecture.`,$t,Fe,oo=`Configuration objects inherit from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> and can be used to control the model outputs. Read the
documentation from <a href="/docs/transformers/main/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,Pt,E,lt,me,dt,b,he,wt,Ce,no="The PatchTSMixer Model for time-series forecasting.",yt,ke,ro=`This model inherits from <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>. Check the superclass documentation for the generic methods the
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
etc.)`,St,Ne,ao=`This model is also a PyTorch <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module" rel="nofollow">torch.nn.Module</a> subclass.
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
and behavior.`,Ft,I,pe,Ct,Le,so='The <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerModel">PatchTSMixerModel</a> forward method, overrides the <code>__call__</code> special method.',kt,G,mt,fe,ht,C,ue,Nt,He,io="<code>PatchTSMixer</code> for forecasting application.",Lt,R,ge,Ht,Je,co='The <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerForPrediction">PatchTSMixerForPrediction</a> forward method, overrides the <code>__call__</code> special method.',Jt,q,pt,_e,ft,k,xe,zt,ze,lo="<code>PatchTSMixer</code> for classification application.",It,U,Te,Rt,Ie,mo='The <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerForTimeSeriesClassification">PatchTSMixerForTimeSeriesClassification</a> forward method, overrides the <code>__call__</code> special method.',Ut,V,ut,ve,gt,N,be,Wt,Re,ho="<code>PatchTSMixer</code> for mask pretraining.",Dt,W,Me,Bt,Ue,po='The <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerForPretraining">PatchTSMixerForPretraining</a> forward method, overrides the <code>__call__</code> special method.',Zt,X,_t,$e,xt,L,Pe,Ot,We,fo="<code>PatchTSMixer</code> for regression application.",jt,D,we,Et,De,uo='The <a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerForRegression">PatchTSMixerForRegression</a> forward method, overrides the <code>__call__</code> special method.',Gt,A,Tt,ye,vt,qe,bt;return S=new z({props:{title:"PatchTSMixer",local:"patchtsmixer",headingTag:"h1"}}),F=new z({props:{title:"Overview",local:"overview",headingTag:"h2"}}),oe=new z({props:{title:"Usage example",local:"usage-example",headingTag:"h2"}}),re=new go({props:{code:"JTBBZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFBhdGNoVFNNaXhlckNvbmZpZyUyQyUyMFBhdGNoVFNNaXhlckZvclByZWRpY3Rpb24lMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwVHJhaW5lciUyQyUyMFRyYWluaW5nQXJndW1lbnRzJTJDJTBBJTBBJTBBY29uZmlnJTIwJTNEJTIwUGF0Y2hUU01peGVyQ29uZmlnKGNvbnRleHRfbGVuZ3RoJTIwJTNEJTIwNTEyJTJDJTIwcHJlZGljdGlvbl9sZW5ndGglMjAlM0QlMjA5NiklMEFtb2RlbCUyMCUzRCUyMFBhdGNoVFNNaXhlckZvclByZWRpY3Rpb24oY29uZmlnKSUwQXRyYWluZXIlMjAlM0QlMjBUcmFpbmVyKG1vZGVsJTNEbW9kZWwlMkMlMjBhcmdzJTNEdHJhaW5pbmdfYXJncyUyQyUyMCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHRyYWluX2RhdGFzZXQlM0R0cmFpbl9kYXRhc2V0JTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZXZhbF9kYXRhc2V0JTNEdmFsaWRfZGF0YXNldCklMEF0cmFpbmVyLnRyYWluKCklMEFyZXN1bHRzJTIwJTNEJTIwdHJhaW5lci5ldmFsdWF0ZSh0ZXN0X2RhdGFzZXQp",highlighted:`
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> PatchTSMixerConfig, PatchTSMixerForPrediction
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> Trainer, TrainingArguments,


config = PatchTSMixerConfig(context_length = <span class="hljs-number">512</span>, prediction_length = <span class="hljs-number">96</span>)
model = PatchTSMixerForPrediction(config)
trainer = Trainer(model=model, args=training_args, 
            train_dataset=train_dataset,
            eval_dataset=valid_dataset)
trainer.train()
results = trainer.evaluate(test_dataset)`,wrap:!1}}),ae=new z({props:{title:"Usage tips",local:"usage-tips",headingTag:"h2"}}),ie=new z({props:{title:"Resources",local:"resources",headingTag:"h2"}}),le=new z({props:{title:"PatchTSMixerConfig",local:"transformers.PatchTSMixerConfig",headingTag:"h2"}}),de=new J({props:{name:"class transformers.PatchTSMixerConfig",anchor:"transformers.PatchTSMixerConfig",parameters:[{name:"context_length",val:": int = 32"},{name:"patch_length",val:": int = 8"},{name:"num_input_channels",val:": int = 1"},{name:"patch_stride",val:": int = 8"},{name:"num_parallel_samples",val:": int = 100"},{name:"d_model",val:": int = 8"},{name:"expansion_factor",val:": int = 2"},{name:"num_layers",val:": int = 3"},{name:"dropout",val:": float = 0.2"},{name:"mode",val:": str = 'common_channel'"},{name:"gated_attn",val:": bool = True"},{name:"norm_mlp",val:": str = 'LayerNorm'"},{name:"self_attn",val:": bool = False"},{name:"self_attn_heads",val:": int = 1"},{name:"use_positional_encoding",val:": bool = False"},{name:"positional_encoding_type",val:": str = 'sincos'"},{name:"scaling",val:": typing.Union[str, bool, NoneType] = 'std'"},{name:"loss",val:": str = 'mse'"},{name:"init_std",val:": float = 0.02"},{name:"post_init",val:": bool = False"},{name:"norm_eps",val:": float = 1e-05"},{name:"mask_type",val:": str = 'random'"},{name:"random_mask_ratio",val:": float = 0.5"},{name:"num_forecast_mask_patches",val:": typing.Union[typing.List[int], int, NoneType] = [2]"},{name:"mask_value",val:": int = 0"},{name:"masked_loss",val:": bool = True"},{name:"channel_consistent_masking",val:": bool = True"},{name:"unmasked_channel_indices",val:": typing.Optional[typing.List[int]] = None"},{name:"head_dropout",val:": float = 0.2"},{name:"distribution_output",val:": str = 'student_t'"},{name:"prediction_length",val:": int = 16"},{name:"prediction_channel_indices",val:": list = None"},{name:"num_targets",val:": int = 3"},{name:"output_range",val:": list = None"},{name:"head_aggregation",val:": str = 'max_pool'"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.PatchTSMixerConfig.context_length",description:`<strong>context_length</strong> (<code>int</code>, <em>optional</em>, defaults to 32) &#x2014;
The context/history length for the input sequence.`,name:"context_length"},{anchor:"transformers.PatchTSMixerConfig.patch_length",description:`<strong>patch_length</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The patch length for the input sequence.`,name:"patch_length"},{anchor:"transformers.PatchTSMixerConfig.num_input_channels",description:`<strong>num_input_channels</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of input variates. For Univariate, set it to 1.`,name:"num_input_channels"},{anchor:"transformers.PatchTSMixerConfig.patch_stride",description:`<strong>patch_stride</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Determines the overlap between two consecutive patches. Set it to patch_length (or greater), if we want
non-overlapping patches.`,name:"patch_stride"},{anchor:"transformers.PatchTSMixerConfig.num_parallel_samples",description:`<strong>num_parallel_samples</strong> (<code>int</code>, <em>optional</em>, defaults to 100) &#x2014;
The number of samples to generate in parallel for probabilistic forecast.`,name:"num_parallel_samples"},{anchor:"transformers.PatchTSMixerConfig.d_model",description:`<strong>d_model</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
Hidden dimension of the model. Recommended to set it as a multiple of patch_length (i.e. 2-5X of
patch_length). Larger value indicates more complex model.`,name:"d_model"},{anchor:"transformers.PatchTSMixerConfig.expansion_factor",description:`<strong>expansion_factor</strong> (<code>int</code>, <em>optional</em>, defaults to 2) &#x2014;
Expansion factor to use inside MLP. Recommended range is 2-5. Larger value indicates more complex model.`,name:"expansion_factor"},{anchor:"transformers.PatchTSMixerConfig.num_layers",description:`<strong>num_layers</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Number of layers to use. Recommended range is 3-15. Larger value indicates more complex model.`,name:"num_layers"},{anchor:"transformers.PatchTSMixerConfig.dropout",description:`<strong>dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.2) &#x2014;
The dropout probability the <code>PatchTSMixer</code> backbone. Recommended range is 0.2-0.7`,name:"dropout"},{anchor:"transformers.PatchTSMixerConfig.mode",description:`<strong>mode</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;common_channel&quot;</code>) &#x2014;
Mixer Mode. Determines how to process the channels. Allowed values: &#x201C;common_channel&#x201D;, &#x201C;mix_channel&#x201D;. In
&#x201C;common_channel&#x201D; mode, we follow Channel-independent modelling with no explicit channel-mixing. Channel
mixing happens in an implicit manner via shared weights across channels. (preferred first approach) In
&#x201C;mix_channel&#x201D; mode, we follow explicit channel-mixing in addition to patch and feature mixer. (preferred
approach when channel correlations are very important to model)`,name:"mode"},{anchor:"transformers.PatchTSMixerConfig.gated_attn",description:`<strong>gated_attn</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Enable Gated Attention.`,name:"gated_attn"},{anchor:"transformers.PatchTSMixerConfig.norm_mlp",description:`<strong>norm_mlp</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;LayerNorm&quot;</code>) &#x2014;
Normalization layer (BatchNorm or LayerNorm).`,name:"norm_mlp"},{anchor:"transformers.PatchTSMixerConfig.self_attn",description:`<strong>self_attn</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Enable Tiny self attention across patches. This can be enabled when the output of Vanilla PatchTSMixer with
gated attention is not satisfactory. Enabling this leads to explicit pair-wise attention and modelling
across patches.`,name:"self_attn"},{anchor:"transformers.PatchTSMixerConfig.self_attn_heads",description:`<strong>self_attn_heads</strong> (<code>int</code>, <em>optional</em>, defaults to 1) &#x2014;
Number of self-attention heads. Works only when <code>self_attn</code> is set to <code>True</code>.`,name:"self_attn_heads"},{anchor:"transformers.PatchTSMixerConfig.use_positional_encoding",description:`<strong>use_positional_encoding</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Enable the use of positional embedding for the tiny self-attention layers. Works only when <code>self_attn</code> is
set to <code>True</code>.`,name:"use_positional_encoding"},{anchor:"transformers.PatchTSMixerConfig.positional_encoding_type",description:`<strong>positional_encoding_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;sincos&quot;</code>) &#x2014;
Positional encodings. Options <code>&quot;random&quot;</code> and <code>&quot;sincos&quot;</code> are supported. Works only when
<code>use_positional_encoding</code> is set to <code>True</code>`,name:"positional_encoding_type"},{anchor:"transformers.PatchTSMixerConfig.scaling",description:`<strong>scaling</strong> (<code>string</code> or <code>bool</code>, <em>optional</em>, defaults to <code>&quot;std&quot;</code>) &#x2014;
Whether to scale the input targets via &#x201C;mean&#x201D; scaler, &#x201C;std&#x201D; scaler or no scaler if <code>None</code>. If <code>True</code>, the
scaler is set to &#x201C;mean&#x201D;.`,name:"scaling"},{anchor:"transformers.PatchTSMixerConfig.loss",description:`<strong>loss</strong> (<code>string</code>, <em>optional</em>, defaults to <code>&quot;mse&quot;</code>) &#x2014;
The loss function for the model corresponding to the <code>distribution_output</code> head. For parametric
distributions it is the negative log likelihood (&#x201C;nll&#x201D;) and for point estimates it is the mean squared
error &#x201C;mse&#x201D;.`,name:"loss"},{anchor:"transformers.PatchTSMixerConfig.init_std",description:`<strong>init_std</strong> (<code>float</code>, <em>optional</em>, defaults to 0.02) &#x2014;
The standard deviation of the truncated normal weight initialization distribution.`,name:"init_std"},{anchor:"transformers.PatchTSMixerConfig.post_init",description:`<strong>post_init</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use custom weight initialization from <code>transformers</code> library, or the default initialization in
<code>PyTorch</code>. Setting it to <code>False</code> performs <code>PyTorch</code> weight initialization.`,name:"post_init"},{anchor:"transformers.PatchTSMixerConfig.norm_eps",description:`<strong>norm_eps</strong> (<code>float</code>, <em>optional</em>, defaults to 1e-05) &#x2014;
A value added to the denominator for numerical stability of normalization.`,name:"norm_eps"},{anchor:"transformers.PatchTSMixerConfig.mask_type",description:`<strong>mask_type</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;random&quot;</code>) &#x2014;
Type of masking to use for Masked Pretraining mode. Allowed values are &#x201C;random&#x201D;, &#x201C;forecast&#x201D;. In Random
masking, points are masked randomly. In Forecast masking, points are masked towards the end.`,name:"mask_type"},{anchor:"transformers.PatchTSMixerConfig.random_mask_ratio",description:`<strong>random_mask_ratio</strong> (<code>float</code>, <em>optional</em>, defaults to 0.5) &#x2014;
Masking ratio to use when <code>mask_type</code> is <code>random</code>. Higher value indicates more masking.`,name:"random_mask_ratio"},{anchor:"transformers.PatchTSMixerConfig.num_forecast_mask_patches",description:`<strong>num_forecast_mask_patches</strong> (<code>int</code> or <code>list</code>, <em>optional</em>, defaults to <code>[2]</code>) &#x2014;
Number of patches to be masked at the end of each batch sample. If it is an integer, all the samples in the
batch will have the same number of masked patches. If it is a list, samples in the batch will be randomly
masked by numbers defined in the list. This argument is only used for forecast pretraining.`,name:"num_forecast_mask_patches"},{anchor:"transformers.PatchTSMixerConfig.mask_value",description:`<strong>mask_value</strong> (<code>float</code>, <em>optional</em>, defaults to <code>0.0</code>) &#x2014;
Mask value to use.`,name:"mask_value"},{anchor:"transformers.PatchTSMixerConfig.masked_loss",description:`<strong>masked_loss</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to compute pretraining loss only at the masked portions, or on the entire output.`,name:"masked_loss"},{anchor:"transformers.PatchTSMixerConfig.channel_consistent_masking",description:`<strong>channel_consistent_masking</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
When true, masking will be same across all channels of a timeseries. Otherwise, masking positions will vary
across channels.`,name:"channel_consistent_masking"},{anchor:"transformers.PatchTSMixerConfig.unmasked_channel_indices",description:`<strong>unmasked_channel_indices</strong> (<code>list</code>, <em>optional</em>) &#x2014;
Channels that are not masked during pretraining.`,name:"unmasked_channel_indices"},{anchor:"transformers.PatchTSMixerConfig.head_dropout",description:`<strong>head_dropout</strong> (<code>float</code>, <em>optional</em>, defaults to 0.2) &#x2014;
The dropout probability the <code>PatchTSMixer</code> head.`,name:"head_dropout"},{anchor:"transformers.PatchTSMixerConfig.distribution_output",description:`<strong>distribution_output</strong> (<code>string</code>, <em>optional</em>, defaults to <code>&quot;student_t&quot;</code>) &#x2014;
The distribution emission head for the model when loss is &#x201C;nll&#x201D;. Could be either &#x201C;student_t&#x201D;, &#x201C;normal&#x201D; or
&#x201C;negative_binomial&#x201D;.`,name:"distribution_output"},{anchor:"transformers.PatchTSMixerConfig.prediction_length",description:`<strong>prediction_length</strong> (<code>int</code>, <em>optional</em>, defaults to 16) &#x2014;
Number of time steps to forecast for a forecasting task. Also known as the Forecast Horizon.`,name:"prediction_length"},{anchor:"transformers.PatchTSMixerConfig.prediction_channel_indices",description:`<strong>prediction_channel_indices</strong> (<code>list</code>, <em>optional</em>) &#x2014;
List of channel indices to forecast. If None, forecast all channels. Target data is expected to have all
channels and we explicitly filter the channels in prediction and target before loss computation.`,name:"prediction_channel_indices"},{anchor:"transformers.PatchTSMixerConfig.num_targets",description:`<strong>num_targets</strong> (<code>int</code>, <em>optional</em>, defaults to 3) &#x2014;
Number of targets (dimensionality of the regressed variable) for a regression task.`,name:"num_targets"},{anchor:"transformers.PatchTSMixerConfig.output_range",description:`<strong>output_range</strong> (<code>list</code>, <em>optional</em>) &#x2014;
Output range to restrict for the regression task. Defaults to None.`,name:"output_range"},{anchor:"transformers.PatchTSMixerConfig.head_aggregation",description:`<strong>head_aggregation</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;max_pool&quot;</code>) &#x2014;
Aggregation mode to enable for classification or regression task. Allowed values are <code>None</code>, &#x201C;use_last&#x201D;,
&#x201C;max_pool&#x201D;, &#x201C;avg_pool&#x201D;.`,name:"head_aggregation"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/configuration_patchtsmixer.py#L26"}}),E=new Mo({props:{anchor:"transformers.PatchTSMixerConfig.example",$$slots:{default:[Po]},$$scope:{ctx:M}}}),me=new z({props:{title:"PatchTSMixerModel",local:"transformers.PatchTSMixerModel",headingTag:"h2"}}),he=new J({props:{name:"class transformers.PatchTSMixerModel",anchor:"transformers.PatchTSMixerModel",parameters:[{name:"config",val:": PatchTSMixerConfig"},{name:"mask_input",val:": bool = False"}],parametersDescription:[{anchor:"transformers.PatchTSMixerModel.config",description:`<strong>config</strong> (<a href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerConfig">PatchTSMixerConfig</a>) &#x2014;
Model configuration class with all the parameters of the model. Initializing with a config file does not
load the weights associated with the model, only the configuration. Check out the
<a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a> method to load the model weights.`,name:"config"},{anchor:"transformers.PatchTSMixerModel.mask_input",description:`<strong>mask_input</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If True, Masking will be enabled. False otherwise.`,name:"mask_input"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1294"}}),pe=new J({props:{name:"forward",anchor:"transformers.PatchTSMixerModel.forward",parameters:[{name:"past_values",val:": Tensor"},{name:"observed_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = False"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PatchTSMixerModel.forward.past_values",description:`<strong>past_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_length, num_input_channels)</code>) &#x2014;
Context values of the time series. For a pretraining task, this denotes the input time series to predict
the masked portion. For a forecasting task, this denotes the history/past time series values. Similarly,
for classification or regression tasks, it denotes the appropriate context values of the time series.</p>
<p>For univariate time series, <code>num_input_channels</code> dimension should be 1. For multivariate time series, it is
greater than 1.`,name:"past_values"},{anchor:"transformers.PatchTSMixerModel.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers.`,name:"output_hidden_states"},{anchor:"transformers.PatchTSMixerModel.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PatchTSMixerModel.forward.observed_mask",description:`<strong>observed_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, num_input_channels)</code>, <em>optional</em>) &#x2014;
Boolean mask to indicate which <code>past_values</code> were observed and which were missing. Mask values selected
in <code>[0, 1]</code>:</p>
<ul>
<li>1 for values that are <strong>observed</strong>,</li>
<li>0 for values that are <strong>missing</strong> (i.e. NaNs that were replaced by zeros).</li>
</ul>`,name:"observed_mask"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1322",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerModelOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerConfig"
>PatchTSMixerConfig</a>) and inputs.</p>
<ul>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code>  of shape <code>(batch_size, num_channels, num_patches, d_model)</code>) — Hidden-state at the output of the last layer of the model.</li>
<li><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>) — Hidden-states of the model at the output of each layer.</li>
<li><strong>patch_input</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, num_patches, patch_length)</code>) — Patched input data to the model.</li>
<li><strong>mask:</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_channels, num_patches)</code>,<em>optional</em>) — Bool Tensor indicating True in masked patches and False otherwise.</li>
<li><strong>loc:</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, 1, num_channels)</code>,<em>optional</em>) — Gives the mean of the context window per channel. Used for revin denorm outside the model, if revin
enabled.</li>
<li><strong>scale:</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, 1, num_channels)</code>,<em>optional</em>) — Gives the std dev of the context window per channel. Used for revin denorm outside the model, if revin
enabled.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerModelOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),G=new Ve({props:{$$slots:{default:[wo]},$$scope:{ctx:M}}}),fe=new z({props:{title:"PatchTSMixerForPrediction",local:"transformers.PatchTSMixerForPrediction",headingTag:"h2"}}),ue=new J({props:{name:"class transformers.PatchTSMixerForPrediction",anchor:"transformers.PatchTSMixerForPrediction",parameters:[{name:"config",val:": PatchTSMixerConfig"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForPrediction.config",description:`<strong>config</strong> (<code>PatchTSMixerConfig</code>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1592",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),ge=new J({props:{name:"forward",anchor:"transformers.PatchTSMixerForPrediction.forward",parameters:[{name:"past_values",val:": Tensor"},{name:"observed_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"future_values",val:": typing.Optional[torch.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = False"},{name:"return_loss",val:": bool = True"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForPrediction.forward.past_values",description:`<strong>past_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_length, num_input_channels)</code>) &#x2014;
Context values of the time series. For a pretraining task, this denotes the input time series to predict
the masked portion. For a forecasting task, this denotes the history/past time series values. Similarly,
for classification or regression tasks, it denotes the appropriate context values of the time series.</p>
<p>For univariate time series, <code>num_input_channels</code> dimension should be 1. For multivariate time series, it is
greater than 1.`,name:"past_values"},{anchor:"transformers.PatchTSMixerForPrediction.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers.`,name:"output_hidden_states"},{anchor:"transformers.PatchTSMixerForPrediction.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PatchTSMixerForPrediction.forward.observed_mask",description:`<strong>observed_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, num_input_channels)</code>, <em>optional</em>) &#x2014;
Boolean mask to indicate which <code>past_values</code> were observed and which were missing. Mask values selected
in <code>[0, 1]</code>:</p>
<ul>
<li>1 for values that are <strong>observed</strong>,</li>
<li>0 for values that are <strong>missing</strong> (i.e. NaNs that were replaced by zeros).</li>
</ul>`,name:"observed_mask"},{anchor:"transformers.PatchTSMixerForPrediction.forward.future_values",description:`<strong>future_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, target_len, num_input_channels)</code> for forecasting, &#x2014;
<code>(batch_size, num_targets)</code> for regression, or <code>(batch_size,)</code> for classification, <em>optional</em>): Target
values of the time series, that serve as labels for the model. The <code>future_values</code> is what the
Transformer needs during training to learn to output, given the <code>past_values</code>. Note that, this is NOT
required for a pretraining task.</p>
<p>For a forecasting task, the shape is be <code>(batch_size, target_len, num_input_channels)</code>. Even if we want
to forecast only specific channels by setting the indices in <code>prediction_channel_indices</code> parameter,
pass the target data with all channels, as channel Filtering for both prediction and target will be
manually applied before the loss computation.`,name:"future_values"},{anchor:"transformers.PatchTSMixerForPrediction.forward.return_loss",description:`<strong>return_loss</strong> (<code>bool</code>,  <em>optional</em>) &#x2014;
Whether to return the loss in the <code>forward</code> call.`,name:"return_loss"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1636",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForPredictionOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerConfig"
>PatchTSMixerConfig</a>) and inputs.</p>
<ul>
<li><strong>prediction_outputs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, prediction_length, num_input_channels)</code>) — Prediction output from the forecast head.</li>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_input_channels, num_patches, d_model)</code>) — Backbone embeddings before passing through the head.</li>
<li><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>) — Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</li>
<li><strong>loss</strong> (<em>optional</em>, returned when <code>y</code> is provided, <code>torch.FloatTensor</code> of shape <code>()</code>) — Total loss.</li>
<li><strong>loc</strong> (<code>torch.FloatTensor</code>, <em>optional</em> of shape <code>(batch_size, 1, num_input_channels)</code>) — Input mean</li>
<li><strong>scale</strong> (<code>torch.FloatTensor</code>, <em>optional</em> of shape <code>(batch_size, 1, num_input_channels)</code>) — Input std dev</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForPredictionOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),q=new Ve({props:{$$slots:{default:[yo]},$$scope:{ctx:M}}}),_e=new z({props:{title:"PatchTSMixerForTimeSeriesClassification",local:"transformers.PatchTSMixerForTimeSeriesClassification",headingTag:"h2"}}),xe=new J({props:{name:"class transformers.PatchTSMixerForTimeSeriesClassification",anchor:"transformers.PatchTSMixerForTimeSeriesClassification",parameters:[{name:"config",val:": PatchTSMixerConfig"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForTimeSeriesClassification.config",description:`<strong>config</strong> (<code>PatchTSMixerConfig</code>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1825",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),Te=new J({props:{name:"forward",anchor:"transformers.PatchTSMixerForTimeSeriesClassification.forward",parameters:[{name:"past_values",val:": Tensor"},{name:"target_values",val:": Tensor = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = False"},{name:"return_loss",val:": bool = True"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForTimeSeriesClassification.forward.past_values",description:`<strong>past_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_length, num_input_channels)</code>) &#x2014;
Context values of the time series. For a pretraining task, this denotes the input time series to predict
the masked portion. For a forecasting task, this denotes the history/past time series values. Similarly,
for classification or regression tasks, it denotes the appropriate context values of the time series.</p>
<p>For univariate time series, <code>num_input_channels</code> dimension should be 1. For multivariate time series, it is
greater than 1.`,name:"past_values"},{anchor:"transformers.PatchTSMixerForTimeSeriesClassification.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers.`,name:"output_hidden_states"},{anchor:"transformers.PatchTSMixerForTimeSeriesClassification.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PatchTSMixerForTimeSeriesClassification.forward.target_values",description:`<strong>target_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, target_len, num_input_channels)</code> for forecasting, &#x2014;
<code>(batch_size, num_targets)</code> for regression, or <code>(batch_size,)</code> for classification, <em>optional</em>): Target
values of the time series, that serve as labels for the model. The <code>target_values</code> is what the
Transformer needs during training to learn to output, given the <code>past_values</code>. Note that, this is NOT
required for a pretraining task.</p>
<p>For a forecasting task, the shape is be <code>(batch_size, target_len, num_input_channels)</code>. Even if we want
to forecast only specific channels by setting the indices in <code>prediction_channel_indices</code> parameter,
pass the target data with all channels, as channel Filtering for both prediction and target will be
manually applied before the loss computation.</p>
<p>For a classification task, it has a shape of <code>(batch_size,)</code>.</p>
<p>For a regression task, it has a shape of <code>(batch_size, num_targets)</code>.`,name:"target_values"},{anchor:"transformers.PatchTSMixerForTimeSeriesClassification.forward.return_loss",description:`<strong>return_loss</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return the loss in the <code>forward</code> call.`,name:"return_loss"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1854",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForTimeSeriesClassificationOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerConfig"
>PatchTSMixerConfig</a>) and inputs.</p>
<ul>
<li><strong>prediction_outputs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_labels)</code>) — Prediction output from the classfication head.</li>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_input_channels, num_patches, d_model)</code>) — Backbone embeddings before passing through the head.</li>
<li><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>) — Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</li>
<li><strong>loss</strong> (<em>optional</em>, returned when <code>y</code> is provided, <code>torch.FloatTensor</code> of shape <code>()</code>) — Total loss.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForTimeSeriesClassificationOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),V=new Ve({props:{$$slots:{default:[So]},$$scope:{ctx:M}}}),ve=new z({props:{title:"PatchTSMixerForPretraining",local:"transformers.PatchTSMixerForPretraining",headingTag:"h2"}}),be=new J({props:{name:"class transformers.PatchTSMixerForPretraining",anchor:"transformers.PatchTSMixerForPretraining",parameters:[{name:"config",val:": PatchTSMixerConfig"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForPretraining.config",description:`<strong>config</strong> (<code>PatchTSMixerConfig</code>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1410",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),Me=new J({props:{name:"forward",anchor:"transformers.PatchTSMixerForPretraining.forward",parameters:[{name:"past_values",val:": Tensor"},{name:"observed_mask",val:": typing.Optional[torch.Tensor] = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = False"},{name:"return_loss",val:": bool = True"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForPretraining.forward.past_values",description:`<strong>past_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_length, num_input_channels)</code>) &#x2014;
Context values of the time series. For a pretraining task, this denotes the input time series to predict
the masked portion. For a forecasting task, this denotes the history/past time series values. Similarly,
for classification or regression tasks, it denotes the appropriate context values of the time series.</p>
<p>For univariate time series, <code>num_input_channels</code> dimension should be 1. For multivariate time series, it is
greater than 1.`,name:"past_values"},{anchor:"transformers.PatchTSMixerForPretraining.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers.`,name:"output_hidden_states"},{anchor:"transformers.PatchTSMixerForPretraining.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PatchTSMixerForPretraining.forward.observed_mask",description:`<strong>observed_mask</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, num_input_channels)</code>, <em>optional</em>) &#x2014;
Boolean mask to indicate which <code>past_values</code> were observed and which were missing. Mask values selected
in <code>[0, 1]</code>:</p>
<ul>
<li>1 for values that are <strong>observed</strong>,</li>
<li>0 for values that are <strong>missing</strong> (i.e. NaNs that were replaced by zeros).</li>
</ul>`,name:"observed_mask"},{anchor:"transformers.PatchTSMixerForPretraining.forward.return_loss",description:`<strong>return_loss</strong> (<code>bool</code>,  <em>optional</em>) &#x2014;
Whether to return the loss in the <code>forward</code> call.`,name:"return_loss"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1433",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForPreTrainingOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerConfig"
>PatchTSMixerConfig</a>) and inputs.</p>
<ul>
<li><strong>prediction_outputs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_input_channels, num_patches, patch_length)</code>) — Prediction output from the pretrain head.</li>
<li><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>) — Hidden-states of the model at the output of each layer.</li>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_input_channels, num_patches, d_model)</code>) — Backbone embeddings before passing through the head.</li>
<li><strong>loss</strong> (<em>optional</em>, returned when <code>y</code> is provided, <code>torch.FloatTensor</code> of shape <code>()</code>) — Total loss</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForPreTrainingOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),X=new Ve({props:{$$slots:{default:[Fo]},$$scope:{ctx:M}}}),$e=new z({props:{title:"PatchTSMixerForRegression",local:"transformers.PatchTSMixerForRegression",headingTag:"h2"}}),Pe=new J({props:{name:"class transformers.PatchTSMixerForRegression",anchor:"transformers.PatchTSMixerForRegression",parameters:[{name:"config",val:": PatchTSMixerConfig"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForRegression.config",description:`<strong>config</strong> (<code>PatchTSMixerConfig</code>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1996",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),we=new J({props:{name:"forward",anchor:"transformers.PatchTSMixerForRegression.forward",parameters:[{name:"past_values",val:": Tensor"},{name:"target_values",val:": Tensor = None"},{name:"output_hidden_states",val:": typing.Optional[bool] = False"},{name:"return_loss",val:": bool = True"},{name:"return_dict",val:": typing.Optional[bool] = None"}],parametersDescription:[{anchor:"transformers.PatchTSMixerForRegression.forward.past_values",description:`<strong>past_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, seq_length, num_input_channels)</code>) &#x2014;
Context values of the time series. For a pretraining task, this denotes the input time series to predict
the masked portion. For a forecasting task, this denotes the history/past time series values. Similarly,
for classification or regression tasks, it denotes the appropriate context values of the time series.</p>
<p>For univariate time series, <code>num_input_channels</code> dimension should be 1. For multivariate time series, it is
greater than 1.`,name:"past_values"},{anchor:"transformers.PatchTSMixerForRegression.forward.output_hidden_states",description:`<strong>output_hidden_states</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return the hidden states of all layers.`,name:"output_hidden_states"},{anchor:"transformers.PatchTSMixerForRegression.forward.return_dict",description:`<strong>return_dict</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to return a <a href="/docs/transformers/main/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.`,name:"return_dict"},{anchor:"transformers.PatchTSMixerForRegression.forward.target_values",description:`<strong>target_values</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, target_len, num_input_channels)</code> for forecasting, &#x2014;
<code>(batch_size, num_targets)</code> for regression, or <code>(batch_size,)</code> for classification, <em>optional</em>): Target
values of the time series, that serve as labels for the model. The <code>target_values</code> is what the
Transformer needs during training to learn to output, given the <code>past_values</code>. Note that, this is NOT
required for a pretraining task.</p>
<p>For a forecasting task, the shape is be <code>(batch_size, target_len, num_input_channels)</code>. Even if we want
to forecast only specific channels by setting the indices in <code>prediction_channel_indices</code> parameter,
pass the target data with all channels, as channel Filtering for both prediction and target will be
manually applied before the loss computation.</p>
<p>For a classification task, it has a shape of <code>(batch_size,)</code>.</p>
<p>For a regression task, it has a shape of <code>(batch_size, num_targets)</code>.`,name:"target_values"},{anchor:"transformers.PatchTSMixerForRegression.forward.return_loss",description:`<strong>return_loss</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to return the loss in the <code>forward</code> call.`,name:"return_loss"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L2047",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A <code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForRegressionOutput</code> or a tuple of
<code>torch.FloatTensor</code> (if <code>return_dict=False</code> is passed or when <code>config.return_dict=False</code>) comprising various
elements depending on the configuration (<a
  href="/docs/transformers/main/en/model_doc/patchtsmixer#transformers.PatchTSMixerConfig"
>PatchTSMixerConfig</a>) and inputs.</p>
<ul>
<li><strong>regression_outputs</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_targets)</code>) — Prediction output from the regression head.</li>
<li><strong>last_hidden_state</strong> (<code>torch.FloatTensor</code> of shape <code>(batch_size, num_input_channels, num_patches, d_model)</code>) — Backbone embeddings before passing through the head.</li>
<li><strong>hidden_states</strong> (<code>tuple(torch.FloatTensor)</code>, <em>optional</em>) — Hidden-states of the model at the output of each layer plus the optional initial embedding outputs.</li>
<li><strong>loss</strong> (<em>optional</em>, returned when <code>y</code> is provided, <code>torch.FloatTensor</code> of shape <code>()</code>) — Total loss.</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>transformers.models.patchtsmixer.modeling_patchtsmixer.PatchTSMixerForRegressionOutput</code> or <code>tuple(torch.FloatTensor)</code></p>
`}}),A=new Ve({props:{$$slots:{default:[Co]},$$scope:{ctx:M}}}),ye=new $o({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/patchtsmixer.md"}}),{c(){n=c("meta"),x=r(),d=c("p"),T=r(),m(S.$$.fragment),v=r(),m(F.$$.fragment),Xe=r(),Y=c("p"),Y.innerHTML=qt,Ae=r(),Q=c("p"),Q.textContent=Vt,Ye=r(),K=c("p"),K.textContent=Xt,Qe=r(),ee=c("p"),ee.innerHTML=At,Ke=r(),te=c("p"),te.innerHTML=Yt,et=r(),m(oe.$$.fragment),tt=r(),ne=c("p"),ne.innerHTML=Qt,ot=r(),m(re.$$.fragment),nt=r(),m(ae.$$.fragment),rt=r(),se=c("p"),se.innerHTML=Kt,at=r(),m(ie.$$.fragment),st=r(),ce=c("ul"),ce.innerHTML=eo,it=r(),m(le.$$.fragment),ct=r(),$=c("div"),m(de.$$.fragment),Mt=r(),Se=c("p"),Se.innerHTML=to,$t=r(),Fe=c("p"),Fe.innerHTML=oo,Pt=r(),m(E.$$.fragment),lt=r(),m(me.$$.fragment),dt=r(),b=c("div"),m(he.$$.fragment),wt=r(),Ce=c("p"),Ce.textContent=no,yt=r(),ke=c("p"),ke.innerHTML=ro,St=r(),Ne=c("p"),Ne.innerHTML=ao,Ft=r(),I=c("div"),m(pe.$$.fragment),Ct=r(),Le=c("p"),Le.innerHTML=so,kt=r(),m(G.$$.fragment),mt=r(),m(fe.$$.fragment),ht=r(),C=c("div"),m(ue.$$.fragment),Nt=r(),He=c("p"),He.innerHTML=io,Lt=r(),R=c("div"),m(ge.$$.fragment),Ht=r(),Je=c("p"),Je.innerHTML=co,Jt=r(),m(q.$$.fragment),pt=r(),m(_e.$$.fragment),ft=r(),k=c("div"),m(xe.$$.fragment),zt=r(),ze=c("p"),ze.innerHTML=lo,It=r(),U=c("div"),m(Te.$$.fragment),Rt=r(),Ie=c("p"),Ie.innerHTML=mo,Ut=r(),m(V.$$.fragment),ut=r(),m(ve.$$.fragment),gt=r(),N=c("div"),m(be.$$.fragment),Wt=r(),Re=c("p"),Re.innerHTML=ho,Dt=r(),W=c("div"),m(Me.$$.fragment),Bt=r(),Ue=c("p"),Ue.innerHTML=po,Zt=r(),m(X.$$.fragment),_t=r(),m($e.$$.fragment),xt=r(),L=c("div"),m(Pe.$$.fragment),Ot=r(),We=c("p"),We.innerHTML=fo,jt=r(),D=c("div"),m(we.$$.fragment),Et=r(),De=c("p"),De.innerHTML=uo,Gt=r(),m(A.$$.fragment),Tt=r(),m(ye.$$.fragment),vt=r(),qe=c("p"),this.h()},l(e){const t=bo("svelte-u9bgzb",document.head);n=l(t,"META",{name:!0,content:!0}),t.forEach(o),x=a(e),d=l(e,"P",{}),w(d).forEach(o),T=a(e),h(S.$$.fragment,e),v=a(e),h(F.$$.fragment,e),Xe=a(e),Y=l(e,"P",{"data-svelte-h":!0}),_(Y)!=="svelte-1f99jzv"&&(Y.innerHTML=qt),Ae=a(e),Q=l(e,"P",{"data-svelte-h":!0}),_(Q)!=="svelte-11flhn7"&&(Q.textContent=Vt),Ye=a(e),K=l(e,"P",{"data-svelte-h":!0}),_(K)!=="svelte-vfdo9a"&&(K.textContent=Xt),Qe=a(e),ee=l(e,"P",{"data-svelte-h":!0}),_(ee)!=="svelte-ih5i3b"&&(ee.innerHTML=At),Ke=a(e),te=l(e,"P",{"data-svelte-h":!0}),_(te)!=="svelte-39frtq"&&(te.innerHTML=Yt),et=a(e),h(oe.$$.fragment,e),tt=a(e),ne=l(e,"P",{"data-svelte-h":!0}),_(ne)!=="svelte-164esox"&&(ne.innerHTML=Qt),ot=a(e),h(re.$$.fragment,e),nt=a(e),h(ae.$$.fragment,e),rt=a(e),se=l(e,"P",{"data-svelte-h":!0}),_(se)!=="svelte-g6bt87"&&(se.innerHTML=Kt),at=a(e),h(ie.$$.fragment,e),st=a(e),ce=l(e,"UL",{"data-svelte-h":!0}),_(ce)!=="svelte-118wbg1"&&(ce.innerHTML=eo),it=a(e),h(le.$$.fragment,e),ct=a(e),$=l(e,"DIV",{class:!0});var H=w($);h(de.$$.fragment,H),Mt=a(H),Se=l(H,"P",{"data-svelte-h":!0}),_(Se)!=="svelte-jvslfp"&&(Se.innerHTML=to),$t=a(H),Fe=l(H,"P",{"data-svelte-h":!0}),_(Fe)!=="svelte-o55m63"&&(Fe.innerHTML=oo),Pt=a(H),h(E.$$.fragment,H),H.forEach(o),lt=a(e),h(me.$$.fragment,e),dt=a(e),b=l(e,"DIV",{class:!0});var P=w(b);h(he.$$.fragment,P),wt=a(P),Ce=l(P,"P",{"data-svelte-h":!0}),_(Ce)!=="svelte-vx4bol"&&(Ce.textContent=no),yt=a(P),ke=l(P,"P",{"data-svelte-h":!0}),_(ke)!=="svelte-6pahdo"&&(ke.innerHTML=ro),St=a(P),Ne=l(P,"P",{"data-svelte-h":!0}),_(Ne)!=="svelte-hswkmf"&&(Ne.innerHTML=ao),Ft=a(P),I=l(P,"DIV",{class:!0});var B=w(I);h(pe.$$.fragment,B),Ct=a(B),Le=l(B,"P",{"data-svelte-h":!0}),_(Le)!=="svelte-1w23flr"&&(Le.innerHTML=so),kt=a(B),h(G.$$.fragment,B),B.forEach(o),P.forEach(o),mt=a(e),h(fe.$$.fragment,e),ht=a(e),C=l(e,"DIV",{class:!0});var Z=w(C);h(ue.$$.fragment,Z),Nt=a(Z),He=l(Z,"P",{"data-svelte-h":!0}),_(He)!=="svelte-xt1t9t"&&(He.innerHTML=io),Lt=a(Z),R=l(Z,"DIV",{class:!0});var O=w(R);h(ge.$$.fragment,O),Ht=a(O),Je=l(O,"P",{"data-svelte-h":!0}),_(Je)!=="svelte-18ml2xj"&&(Je.innerHTML=co),Jt=a(O),h(q.$$.fragment,O),O.forEach(o),Z.forEach(o),pt=a(e),h(_e.$$.fragment,e),ft=a(e),k=l(e,"DIV",{class:!0});var j=w(k);h(xe.$$.fragment,j),zt=a(j),ze=l(j,"P",{"data-svelte-h":!0}),_(ze)!=="svelte-dtnn1m"&&(ze.innerHTML=lo),It=a(j),U=l(j,"DIV",{class:!0});var Be=w(U);h(Te.$$.fragment,Be),Rt=a(Be),Ie=l(Be,"P",{"data-svelte-h":!0}),_(Ie)!=="svelte-kaucen"&&(Ie.innerHTML=mo),Ut=a(Be),h(V.$$.fragment,Be),Be.forEach(o),j.forEach(o),ut=a(e),h(ve.$$.fragment,e),gt=a(e),N=l(e,"DIV",{class:!0});var Ze=w(N);h(be.$$.fragment,Ze),Wt=a(Ze),Re=l(Ze,"P",{"data-svelte-h":!0}),_(Re)!=="svelte-9xefdl"&&(Re.innerHTML=ho),Dt=a(Ze),W=l(Ze,"DIV",{class:!0});var Oe=w(W);h(Me.$$.fragment,Oe),Bt=a(Oe),Ue=l(Oe,"P",{"data-svelte-h":!0}),_(Ue)!=="svelte-i45907"&&(Ue.innerHTML=po),Zt=a(Oe),h(X.$$.fragment,Oe),Oe.forEach(o),Ze.forEach(o),_t=a(e),h($e.$$.fragment,e),xt=a(e),L=l(e,"DIV",{class:!0});var je=w(L);h(Pe.$$.fragment,je),Ot=a(je),We=l(je,"P",{"data-svelte-h":!0}),_(We)!=="svelte-1m09nil"&&(We.innerHTML=fo),jt=a(je),D=l(je,"DIV",{class:!0});var Ee=w(D);h(we.$$.fragment,Ee),Et=a(Ee),De=l(Ee,"P",{"data-svelte-h":!0}),_(De)!=="svelte-s3elmv"&&(De.innerHTML=uo),Gt=a(Ee),h(A.$$.fragment,Ee),Ee.forEach(o),je.forEach(o),Tt=a(e),h(ye.$$.fragment,e),vt=a(e),qe=l(e,"P",{}),w(qe).forEach(o),this.h()},h(){y(n,"name","hf:doc:metadata"),y(n,"content",No),y($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){i(document.head,n),s(e,x,t),s(e,d,t),s(e,T,t),p(S,e,t),s(e,v,t),p(F,e,t),s(e,Xe,t),s(e,Y,t),s(e,Ae,t),s(e,Q,t),s(e,Ye,t),s(e,K,t),s(e,Qe,t),s(e,ee,t),s(e,Ke,t),s(e,te,t),s(e,et,t),p(oe,e,t),s(e,tt,t),s(e,ne,t),s(e,ot,t),p(re,e,t),s(e,nt,t),p(ae,e,t),s(e,rt,t),s(e,se,t),s(e,at,t),p(ie,e,t),s(e,st,t),s(e,ce,t),s(e,it,t),p(le,e,t),s(e,ct,t),s(e,$,t),p(de,$,null),i($,Mt),i($,Se),i($,$t),i($,Fe),i($,Pt),p(E,$,null),s(e,lt,t),p(me,e,t),s(e,dt,t),s(e,b,t),p(he,b,null),i(b,wt),i(b,Ce),i(b,yt),i(b,ke),i(b,St),i(b,Ne),i(b,Ft),i(b,I),p(pe,I,null),i(I,Ct),i(I,Le),i(I,kt),p(G,I,null),s(e,mt,t),p(fe,e,t),s(e,ht,t),s(e,C,t),p(ue,C,null),i(C,Nt),i(C,He),i(C,Lt),i(C,R),p(ge,R,null),i(R,Ht),i(R,Je),i(R,Jt),p(q,R,null),s(e,pt,t),p(_e,e,t),s(e,ft,t),s(e,k,t),p(xe,k,null),i(k,zt),i(k,ze),i(k,It),i(k,U),p(Te,U,null),i(U,Rt),i(U,Ie),i(U,Ut),p(V,U,null),s(e,ut,t),p(ve,e,t),s(e,gt,t),s(e,N,t),p(be,N,null),i(N,Wt),i(N,Re),i(N,Dt),i(N,W),p(Me,W,null),i(W,Bt),i(W,Ue),i(W,Zt),p(X,W,null),s(e,_t,t),p($e,e,t),s(e,xt,t),s(e,L,t),p(Pe,L,null),i(L,Ot),i(L,We),i(L,jt),i(L,D),p(we,D,null),i(D,Et),i(D,De),i(D,Gt),p(A,D,null),s(e,Tt,t),p(ye,e,t),s(e,vt,t),s(e,qe,t),bt=!0},p(e,[t]){const H={};t&2&&(H.$$scope={dirty:t,ctx:e}),E.$set(H);const P={};t&2&&(P.$$scope={dirty:t,ctx:e}),G.$set(P);const B={};t&2&&(B.$$scope={dirty:t,ctx:e}),q.$set(B);const Z={};t&2&&(Z.$$scope={dirty:t,ctx:e}),V.$set(Z);const O={};t&2&&(O.$$scope={dirty:t,ctx:e}),X.$set(O);const j={};t&2&&(j.$$scope={dirty:t,ctx:e}),A.$set(j)},i(e){bt||(f(S.$$.fragment,e),f(F.$$.fragment,e),f(oe.$$.fragment,e),f(re.$$.fragment,e),f(ae.$$.fragment,e),f(ie.$$.fragment,e),f(le.$$.fragment,e),f(de.$$.fragment,e),f(E.$$.fragment,e),f(me.$$.fragment,e),f(he.$$.fragment,e),f(pe.$$.fragment,e),f(G.$$.fragment,e),f(fe.$$.fragment,e),f(ue.$$.fragment,e),f(ge.$$.fragment,e),f(q.$$.fragment,e),f(_e.$$.fragment,e),f(xe.$$.fragment,e),f(Te.$$.fragment,e),f(V.$$.fragment,e),f(ve.$$.fragment,e),f(be.$$.fragment,e),f(Me.$$.fragment,e),f(X.$$.fragment,e),f($e.$$.fragment,e),f(Pe.$$.fragment,e),f(we.$$.fragment,e),f(A.$$.fragment,e),f(ye.$$.fragment,e),bt=!0)},o(e){u(S.$$.fragment,e),u(F.$$.fragment,e),u(oe.$$.fragment,e),u(re.$$.fragment,e),u(ae.$$.fragment,e),u(ie.$$.fragment,e),u(le.$$.fragment,e),u(de.$$.fragment,e),u(E.$$.fragment,e),u(me.$$.fragment,e),u(he.$$.fragment,e),u(pe.$$.fragment,e),u(G.$$.fragment,e),u(fe.$$.fragment,e),u(ue.$$.fragment,e),u(ge.$$.fragment,e),u(q.$$.fragment,e),u(_e.$$.fragment,e),u(xe.$$.fragment,e),u(Te.$$.fragment,e),u(V.$$.fragment,e),u(ve.$$.fragment,e),u(be.$$.fragment,e),u(Me.$$.fragment,e),u(X.$$.fragment,e),u($e.$$.fragment,e),u(Pe.$$.fragment,e),u(we.$$.fragment,e),u(A.$$.fragment,e),u(ye.$$.fragment,e),bt=!1},d(e){e&&(o(x),o(d),o(T),o(v),o(Xe),o(Y),o(Ae),o(Q),o(Ye),o(K),o(Qe),o(ee),o(Ke),o(te),o(et),o(tt),o(ne),o(ot),o(nt),o(rt),o(se),o(at),o(st),o(ce),o(it),o(ct),o($),o(lt),o(dt),o(b),o(mt),o(ht),o(C),o(pt),o(ft),o(k),o(ut),o(gt),o(N),o(_t),o(xt),o(L),o(Tt),o(vt),o(qe)),o(n),g(S,e),g(F,e),g(oe,e),g(re,e),g(ae,e),g(ie,e),g(le,e),g(de),g(E),g(me,e),g(he),g(pe),g(G),g(fe,e),g(ue),g(ge),g(q),g(_e,e),g(xe),g(Te),g(V),g(ve,e),g(be),g(Me),g(X),g($e,e),g(Pe),g(we),g(A),g(ye,e)}}}const No='{"title":"PatchTSMixer","local":"patchtsmixer","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Usage example","local":"usage-example","sections":[],"depth":2},{"title":"Usage tips","local":"usage-tips","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2},{"title":"PatchTSMixerConfig","local":"transformers.PatchTSMixerConfig","sections":[],"depth":2},{"title":"PatchTSMixerModel","local":"transformers.PatchTSMixerModel","sections":[],"depth":2},{"title":"PatchTSMixerForPrediction","local":"transformers.PatchTSMixerForPrediction","sections":[],"depth":2},{"title":"PatchTSMixerForTimeSeriesClassification","local":"transformers.PatchTSMixerForTimeSeriesClassification","sections":[],"depth":2},{"title":"PatchTSMixerForPretraining","local":"transformers.PatchTSMixerForPretraining","sections":[],"depth":2},{"title":"PatchTSMixerForRegression","local":"transformers.PatchTSMixerForRegression","sections":[],"depth":2}],"depth":1}';function Lo(M){return xo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Do extends To{constructor(n){super(),vo(this,n,Lo,ko,_o,{})}}export{Do as component};
