import{s as sn,o as ln,n as je}from"../chunks/scheduler.9bc65507.js";import{S as cn,i as dn,g as c,s as r,r as m,A as mn,h as d,f as n,c as a,j as P,u as h,x as _,k as F,y as i,a as s,v as p,d as f,t as u,w as g}from"../chunks/index.707bf1b6.js";import{T as Ge}from"../chunks/Tip.c2ecdbf4.js";import{D as L}from"../chunks/Docstring.17db21ae.js";import{C as an}from"../chunks/CodeBlock.54a9f38d.js";import{E as hn}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H as W}from"../chunks/Heading.342b1fa6.js";function pn(M){let o,T="Example:",l,v,y;return v=new an({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(){o=c("p"),o.textContent=T,l=r(),m(v.$$.fragment)},l(x){o=d(x,"P",{"data-svelte-h":!0}),_(o)!=="svelte-11lpom8"&&(o.textContent=T),l=a(x),h(v.$$.fragment,x)},m(x,S){s(x,o,S),s(x,l,S),p(v,x,S),y=!0},p:je,i(x){y||(f(v.$$.fragment,x),y=!0)},o(x){u(v.$$.fragment,x),y=!1},d(x){x&&(n(o),n(l)),g(v,x)}}}function fn(M){let o,T=`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(){o=c("p"),o.innerHTML=T},l(l){o=d(l,"P",{"data-svelte-h":!0}),_(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(l,v){s(l,o,v)},p:je,d(l){l&&n(o)}}}function un(M){let o,T=`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(){o=c("p"),o.innerHTML=T},l(l){o=d(l,"P",{"data-svelte-h":!0}),_(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(l,v){s(l,o,v)},p:je,d(l){l&&n(o)}}}function gn(M){let o,T=`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(){o=c("p"),o.innerHTML=T},l(l){o=d(l,"P",{"data-svelte-h":!0}),_(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(l,v){s(l,o,v)},p:je,d(l){l&&n(o)}}}function _n(M){let o,T=`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(){o=c("p"),o.innerHTML=T},l(l){o=d(l,"P",{"data-svelte-h":!0}),_(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(l,v){s(l,o,v)},p:je,d(l){l&&n(o)}}}function Tn(M){let o,T=`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(){o=c("p"),o.innerHTML=T},l(l){o=d(l,"P",{"data-svelte-h":!0}),_(o)!=="svelte-fincs2"&&(o.innerHTML=T)},m(l,v){s(l,o,v)},p:je,d(l){l&&n(o)}}}function vn(M){let o,T,l,v,y,x,S,De,A,Bt='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.',Ve,Q,Wt="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.",Ee,K,Zt="The abstract from the paper is the following:",Xe,ee,jt="<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>",qe,te,Ot=`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>.`,Ye,ne,Ae,oe,Qe,re,Ke,ae,Gt='The model can also be used for time series classification and time series regression. See the respective <a href="/docs/transformers/v4.36.0/en/model_doc/patchtsmixer#transformers.PatchTSMixerForTimeSeriesClassification">PatchTSMixerForTimeSeriesClassification</a> and <a href="/docs/transformers/v4.36.0/en/model_doc/patchtsmixer#transformers.PatchTSMixerForRegression">PatchTSMixerForRegression</a> classes.',et,se,tt,$,ie,ft,$e,Dt=`This is the configuration class to store the configuration of a <a href="/docs/transformers/v4.36.0/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.`,ut,we,Vt=`Configuration objects inherit from <a href="/docs/transformers/v4.36.0/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/v4.36.0/en/main_classes/configuration#transformers.PretrainedConfig">PretrainedConfig</a> for more information.`,gt,D,nt,le,ot,b,ce,_t,Pe,Et="The PatchTSMixer Model for time-series forecasting.",Tt,Fe,Xt=`This model inherits from <a href="/docs/transformers/v4.36.0/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.)`,vt,ye,qt=`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.`,xt,z,de,bt,Se,Yt='The <a href="/docs/transformers/v4.36.0/en/model_doc/patchtsmixer#transformers.PatchTSMixerModel">PatchTSMixerModel</a> forward method, overrides the <code>__call__</code> special method.',Mt,V,rt,me,at,C,he,$t,Ce,At="<code>PatchTSMixer</code> for forecasting application.",wt,U,pe,Pt,ke,Qt='The <a href="/docs/transformers/v4.36.0/en/model_doc/patchtsmixer#transformers.PatchTSMixerForPrediction">PatchTSMixerForPrediction</a> forward method, overrides the <code>__call__</code> special method.',Ft,E,st,fe,it,k,ue,yt,Ne,Kt="<code>PatchTSMixer</code> for classification application.",St,I,ge,Ct,Je,en='The <a href="/docs/transformers/v4.36.0/en/model_doc/patchtsmixer#transformers.PatchTSMixerForTimeSeriesClassification">PatchTSMixerForTimeSeriesClassification</a> forward method, overrides the <code>__call__</code> special method.',kt,X,lt,_e,ct,N,Te,Nt,He,tn="<code>PatchTSMixer</code> for mask pretraining.",Jt,R,ve,Ht,Le,nn='The <a href="/docs/transformers/v4.36.0/en/model_doc/patchtsmixer#transformers.PatchTSMixerForPretraining">PatchTSMixerForPretraining</a> forward method, overrides the <code>__call__</code> special method.',Lt,q,dt,xe,mt,J,be,zt,ze,on="<code>PatchTSMixer</code> for regression application.",Ut,B,Me,It,Ue,rn='The <a href="/docs/transformers/v4.36.0/en/model_doc/patchtsmixer#transformers.PatchTSMixerForRegression">PatchTSMixerForRegression</a> forward method, overrides the <code>__call__</code> special method.',Rt,Y,ht,Oe,pt;return y=new W({props:{title:"PatchTSMixer",local:"patchtsmixer",headingTag:"h1"}}),S=new W({props:{title:"Overview",local:"overview",headingTag:"h2"}}),ne=new W({props:{title:"Sample usage",local:"sample-usage",headingTag:"h2"}}),oe=new an({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}}),re=new W({props:{title:"Usage tips",local:"usage-tips",headingTag:"h2"}}),se=new W({props:{title:"PatchTSMixerConfig",local:"transformers.PatchTSMixerConfig",headingTag:"h2"}}),ie=new L({props:{name:"class transformers.PatchTSMixerConfig",anchor:"transformers.PatchTSMixerConfig",parameters:[{name:"context_length",val:": int = 32"},{name:"patch_len",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_len",description:`<strong>patch_len</strong> (<code>int</code>, <em>optional</em>, defaults to 8) &#x2014;
The patch length for the input sequence.`,name:"patch_len"},{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"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/configuration_patchtsmixer.py#L30"}}),D=new hn({props:{anchor:"transformers.PatchTSMixerConfig.example",$$slots:{default:[pn]},$$scope:{ctx:M}}}),le=new W({props:{title:"PatchTSMixerModel",local:"transformers.PatchTSMixerModel",headingTag:"h2"}}),ce=new L({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/v4.36.0/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/v4.36.0/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/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1303"}}),de=new L({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/v4.36.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.</p>
<p>observed_mask (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, num_input_channels)</code>, <em>optional</em>):
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:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1327",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/v4.36.0/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>
`}}),V=new Ge({props:{$$slots:{default:[fn]},$$scope:{ctx:M}}}),me=new W({props:{title:"PatchTSMixerForPrediction",local:"transformers.PatchTSMixerForPrediction",headingTag:"h2"}}),he=new L({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>, <em>required</em>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1597",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),pe=new L({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/v4.36.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.</p>
<p>observed_mask (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, num_input_channels)</code>, <em>optional</em>):
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).
future_values (<code>torch.FloatTensor</code> of shape <code>(batch_size, target_len, num_input_channels)</code> for forecasting,:
<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.</li>
</ul>
<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>return_loss (<code>bool</code>,  <em>optional</em>):
Whether to return the loss in the <code>forward</code> call.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1641",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/v4.36.0/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>
`}}),E=new Ge({props:{$$slots:{default:[un]},$$scope:{ctx:M}}}),fe=new W({props:{title:"PatchTSMixerForTimeSeriesClassification",local:"transformers.PatchTSMixerForTimeSeriesClassification",headingTag:"h2"}}),ue=new L({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>, <em>required</em>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1831",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),ge=new L({props:{name:"forward",anchor:"transformers.PatchTSMixerForTimeSeriesClassification.forward",parameters:[{name:"past_values",val:": Tensor"},{name:"future_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/v4.36.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.</p>
<p>future_values (<code>torch.FloatTensor</code> of shape <code>(batch_size, target_len, num_input_channels)</code> for forecasting,
<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.</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>.
return_loss (<code>bool</code>, <em>optional</em>):
Whether to return the loss in the <code>forward</code> call.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1860",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/v4.36.0/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>
`}}),X=new Ge({props:{$$slots:{default:[gn]},$$scope:{ctx:M}}}),_e=new W({props:{title:"PatchTSMixerForPretraining",local:"transformers.PatchTSMixerForPretraining",headingTag:"h2"}}),Te=new L({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>, <em>required</em>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1415",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),ve=new L({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/v4.36.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.</p>
<p>observed_mask (<code>torch.FloatTensor</code> of shape <code>(batch_size, sequence_length, num_input_channels)</code>, <em>optional</em>):
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).
return_loss (<code>bool</code>,  <em>optional</em>):
Whether to return the loss in the <code>forward</code> call.</li>
</ul>`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L1438",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/v4.36.0/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>
`}}),q=new Ge({props:{$$slots:{default:[_n]},$$scope:{ctx:M}}}),xe=new W({props:{title:"PatchTSMixerForRegression",local:"transformers.PatchTSMixerForRegression",headingTag:"h2"}}),be=new L({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>, <em>required</em>) &#x2014;
Configuration.`,name:"config"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L2002",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>None</code>.</p>
`}}),Me=new L({props:{name:"forward",anchor:"transformers.PatchTSMixerForRegression.forward",parameters:[{name:"past_values",val:": Tensor"},{name:"future_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/v4.36.0/en/main_classes/output#transformers.utils.ModelOutput">ModelOutput</a> instead of a plain tuple.</p>
<p>future_values (<code>torch.FloatTensor</code> of shape <code>(batch_size, target_len, num_input_channels)</code> for forecasting,
<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.</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>.
return_loss (<code>bool</code>, <em>optional</em>):
Whether to return the loss in the <code>forward</code> call.`,name:"return_dict"}],source:"https://github.com/huggingface/transformers/blob/v4.36.0/src/transformers/models/patchtsmixer/modeling_patchtsmixer.py#L2053",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/v4.36.0/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_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>
`}}),Y=new Ge({props:{$$slots:{default:[Tn]},$$scope:{ctx:M}}}),{c(){o=c("meta"),T=r(),l=c("p"),v=r(),m(y.$$.fragment),x=r(),m(S.$$.fragment),De=r(),A=c("p"),A.innerHTML=Bt,Ve=r(),Q=c("p"),Q.textContent=Wt,Ee=r(),K=c("p"),K.textContent=Zt,Xe=r(),ee=c("p"),ee.innerHTML=jt,qe=r(),te=c("p"),te.innerHTML=Ot,Ye=r(),m(ne.$$.fragment),Ae=r(),m(oe.$$.fragment),Qe=r(),m(re.$$.fragment),Ke=r(),ae=c("p"),ae.innerHTML=Gt,et=r(),m(se.$$.fragment),tt=r(),$=c("div"),m(ie.$$.fragment),ft=r(),$e=c("p"),$e.innerHTML=Dt,ut=r(),we=c("p"),we.innerHTML=Vt,gt=r(),m(D.$$.fragment),nt=r(),m(le.$$.fragment),ot=r(),b=c("div"),m(ce.$$.fragment),_t=r(),Pe=c("p"),Pe.textContent=Et,Tt=r(),Fe=c("p"),Fe.innerHTML=Xt,vt=r(),ye=c("p"),ye.innerHTML=qt,xt=r(),z=c("div"),m(de.$$.fragment),bt=r(),Se=c("p"),Se.innerHTML=Yt,Mt=r(),m(V.$$.fragment),rt=r(),m(me.$$.fragment),at=r(),C=c("div"),m(he.$$.fragment),$t=r(),Ce=c("p"),Ce.innerHTML=At,wt=r(),U=c("div"),m(pe.$$.fragment),Pt=r(),ke=c("p"),ke.innerHTML=Qt,Ft=r(),m(E.$$.fragment),st=r(),m(fe.$$.fragment),it=r(),k=c("div"),m(ue.$$.fragment),yt=r(),Ne=c("p"),Ne.innerHTML=Kt,St=r(),I=c("div"),m(ge.$$.fragment),Ct=r(),Je=c("p"),Je.innerHTML=en,kt=r(),m(X.$$.fragment),lt=r(),m(_e.$$.fragment),ct=r(),N=c("div"),m(Te.$$.fragment),Nt=r(),He=c("p"),He.innerHTML=tn,Jt=r(),R=c("div"),m(ve.$$.fragment),Ht=r(),Le=c("p"),Le.innerHTML=nn,Lt=r(),m(q.$$.fragment),dt=r(),m(xe.$$.fragment),mt=r(),J=c("div"),m(be.$$.fragment),zt=r(),ze=c("p"),ze.innerHTML=on,Ut=r(),B=c("div"),m(Me.$$.fragment),It=r(),Ue=c("p"),Ue.innerHTML=rn,Rt=r(),m(Y.$$.fragment),ht=r(),Oe=c("p"),this.h()},l(e){const t=mn("svelte-u9bgzb",document.head);o=d(t,"META",{name:!0,content:!0}),t.forEach(n),T=a(e),l=d(e,"P",{}),P(l).forEach(n),v=a(e),h(y.$$.fragment,e),x=a(e),h(S.$$.fragment,e),De=a(e),A=d(e,"P",{"data-svelte-h":!0}),_(A)!=="svelte-1f99jzv"&&(A.innerHTML=Bt),Ve=a(e),Q=d(e,"P",{"data-svelte-h":!0}),_(Q)!=="svelte-11flhn7"&&(Q.textContent=Wt),Ee=a(e),K=d(e,"P",{"data-svelte-h":!0}),_(K)!=="svelte-vfdo9a"&&(K.textContent=Zt),Xe=a(e),ee=d(e,"P",{"data-svelte-h":!0}),_(ee)!=="svelte-ih5i3b"&&(ee.innerHTML=jt),qe=a(e),te=d(e,"P",{"data-svelte-h":!0}),_(te)!=="svelte-39frtq"&&(te.innerHTML=Ot),Ye=a(e),h(ne.$$.fragment,e),Ae=a(e),h(oe.$$.fragment,e),Qe=a(e),h(re.$$.fragment,e),Ke=a(e),ae=d(e,"P",{"data-svelte-h":!0}),_(ae)!=="svelte-1k30vkb"&&(ae.innerHTML=Gt),et=a(e),h(se.$$.fragment,e),tt=a(e),$=d(e,"DIV",{class:!0});var H=P($);h(ie.$$.fragment,H),ft=a(H),$e=d(H,"P",{"data-svelte-h":!0}),_($e)!=="svelte-15av10v"&&($e.innerHTML=Dt),ut=a(H),we=d(H,"P",{"data-svelte-h":!0}),_(we)!=="svelte-1qljms5"&&(we.innerHTML=Vt),gt=a(H),h(D.$$.fragment,H),H.forEach(n),nt=a(e),h(le.$$.fragment,e),ot=a(e),b=d(e,"DIV",{class:!0});var w=P(b);h(ce.$$.fragment,w),_t=a(w),Pe=d(w,"P",{"data-svelte-h":!0}),_(Pe)!=="svelte-vx4bol"&&(Pe.textContent=Et),Tt=a(w),Fe=d(w,"P",{"data-svelte-h":!0}),_(Fe)!=="svelte-11ko49a"&&(Fe.innerHTML=Xt),vt=a(w),ye=d(w,"P",{"data-svelte-h":!0}),_(ye)!=="svelte-hswkmf"&&(ye.innerHTML=qt),xt=a(w),z=d(w,"DIV",{class:!0});var Z=P(z);h(de.$$.fragment,Z),bt=a(Z),Se=d(Z,"P",{"data-svelte-h":!0}),_(Se)!=="svelte-889otn"&&(Se.innerHTML=Yt),Mt=a(Z),h(V.$$.fragment,Z),Z.forEach(n),w.forEach(n),rt=a(e),h(me.$$.fragment,e),at=a(e),C=d(e,"DIV",{class:!0});var j=P(C);h(he.$$.fragment,j),$t=a(j),Ce=d(j,"P",{"data-svelte-h":!0}),_(Ce)!=="svelte-xt1t9t"&&(Ce.innerHTML=At),wt=a(j),U=d(j,"DIV",{class:!0});var O=P(U);h(pe.$$.fragment,O),Pt=a(O),ke=d(O,"P",{"data-svelte-h":!0}),_(ke)!=="svelte-1ek2pmr"&&(ke.innerHTML=Qt),Ft=a(O),h(E.$$.fragment,O),O.forEach(n),j.forEach(n),st=a(e),h(fe.$$.fragment,e),it=a(e),k=d(e,"DIV",{class:!0});var G=P(k);h(ue.$$.fragment,G),yt=a(G),Ne=d(G,"P",{"data-svelte-h":!0}),_(Ne)!=="svelte-dtnn1m"&&(Ne.innerHTML=Kt),St=a(G),I=d(G,"DIV",{class:!0});var Ie=P(I);h(ge.$$.fragment,Ie),Ct=a(Ie),Je=d(Ie,"P",{"data-svelte-h":!0}),_(Je)!=="svelte-o2o1tn"&&(Je.innerHTML=en),kt=a(Ie),h(X.$$.fragment,Ie),Ie.forEach(n),G.forEach(n),lt=a(e),h(_e.$$.fragment,e),ct=a(e),N=d(e,"DIV",{class:!0});var Re=P(N);h(Te.$$.fragment,Re),Nt=a(Re),He=d(Re,"P",{"data-svelte-h":!0}),_(He)!=="svelte-9xefdl"&&(He.innerHTML=tn),Jt=a(Re),R=d(Re,"DIV",{class:!0});var Be=P(R);h(ve.$$.fragment,Be),Ht=a(Be),Le=d(Be,"P",{"data-svelte-h":!0}),_(Le)!=="svelte-2iatxf"&&(Le.innerHTML=nn),Lt=a(Be),h(q.$$.fragment,Be),Be.forEach(n),Re.forEach(n),dt=a(e),h(xe.$$.fragment,e),mt=a(e),J=d(e,"DIV",{class:!0});var We=P(J);h(be.$$.fragment,We),zt=a(We),ze=d(We,"P",{"data-svelte-h":!0}),_(ze)!=="svelte-1m09nil"&&(ze.innerHTML=on),Ut=a(We),B=d(We,"DIV",{class:!0});var Ze=P(B);h(Me.$$.fragment,Ze),It=a(Ze),Ue=d(Ze,"P",{"data-svelte-h":!0}),_(Ue)!=="svelte-qpzstv"&&(Ue.innerHTML=rn),Rt=a(Ze),h(Y.$$.fragment,Ze),Ze.forEach(n),We.forEach(n),ht=a(e),Oe=d(e,"P",{}),P(Oe).forEach(n),this.h()},h(){F(o,"name","hf:doc:metadata"),F(o,"content",xn),F($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),F(J,"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,o),s(e,T,t),s(e,l,t),s(e,v,t),p(y,e,t),s(e,x,t),p(S,e,t),s(e,De,t),s(e,A,t),s(e,Ve,t),s(e,Q,t),s(e,Ee,t),s(e,K,t),s(e,Xe,t),s(e,ee,t),s(e,qe,t),s(e,te,t),s(e,Ye,t),p(ne,e,t),s(e,Ae,t),p(oe,e,t),s(e,Qe,t),p(re,e,t),s(e,Ke,t),s(e,ae,t),s(e,et,t),p(se,e,t),s(e,tt,t),s(e,$,t),p(ie,$,null),i($,ft),i($,$e),i($,ut),i($,we),i($,gt),p(D,$,null),s(e,nt,t),p(le,e,t),s(e,ot,t),s(e,b,t),p(ce,b,null),i(b,_t),i(b,Pe),i(b,Tt),i(b,Fe),i(b,vt),i(b,ye),i(b,xt),i(b,z),p(de,z,null),i(z,bt),i(z,Se),i(z,Mt),p(V,z,null),s(e,rt,t),p(me,e,t),s(e,at,t),s(e,C,t),p(he,C,null),i(C,$t),i(C,Ce),i(C,wt),i(C,U),p(pe,U,null),i(U,Pt),i(U,ke),i(U,Ft),p(E,U,null),s(e,st,t),p(fe,e,t),s(e,it,t),s(e,k,t),p(ue,k,null),i(k,yt),i(k,Ne),i(k,St),i(k,I),p(ge,I,null),i(I,Ct),i(I,Je),i(I,kt),p(X,I,null),s(e,lt,t),p(_e,e,t),s(e,ct,t),s(e,N,t),p(Te,N,null),i(N,Nt),i(N,He),i(N,Jt),i(N,R),p(ve,R,null),i(R,Ht),i(R,Le),i(R,Lt),p(q,R,null),s(e,dt,t),p(xe,e,t),s(e,mt,t),s(e,J,t),p(be,J,null),i(J,zt),i(J,ze),i(J,Ut),i(J,B),p(Me,B,null),i(B,It),i(B,Ue),i(B,Rt),p(Y,B,null),s(e,ht,t),s(e,Oe,t),pt=!0},p(e,[t]){const H={};t&2&&(H.$$scope={dirty:t,ctx:e}),D.$set(H);const w={};t&2&&(w.$$scope={dirty:t,ctx:e}),V.$set(w);const Z={};t&2&&(Z.$$scope={dirty:t,ctx:e}),E.$set(Z);const j={};t&2&&(j.$$scope={dirty:t,ctx:e}),X.$set(j);const O={};t&2&&(O.$$scope={dirty:t,ctx:e}),q.$set(O);const G={};t&2&&(G.$$scope={dirty:t,ctx:e}),Y.$set(G)},i(e){pt||(f(y.$$.fragment,e),f(S.$$.fragment,e),f(ne.$$.fragment,e),f(oe.$$.fragment,e),f(re.$$.fragment,e),f(se.$$.fragment,e),f(ie.$$.fragment,e),f(D.$$.fragment,e),f(le.$$.fragment,e),f(ce.$$.fragment,e),f(de.$$.fragment,e),f(V.$$.fragment,e),f(me.$$.fragment,e),f(he.$$.fragment,e),f(pe.$$.fragment,e),f(E.$$.fragment,e),f(fe.$$.fragment,e),f(ue.$$.fragment,e),f(ge.$$.fragment,e),f(X.$$.fragment,e),f(_e.$$.fragment,e),f(Te.$$.fragment,e),f(ve.$$.fragment,e),f(q.$$.fragment,e),f(xe.$$.fragment,e),f(be.$$.fragment,e),f(Me.$$.fragment,e),f(Y.$$.fragment,e),pt=!0)},o(e){u(y.$$.fragment,e),u(S.$$.fragment,e),u(ne.$$.fragment,e),u(oe.$$.fragment,e),u(re.$$.fragment,e),u(se.$$.fragment,e),u(ie.$$.fragment,e),u(D.$$.fragment,e),u(le.$$.fragment,e),u(ce.$$.fragment,e),u(de.$$.fragment,e),u(V.$$.fragment,e),u(me.$$.fragment,e),u(he.$$.fragment,e),u(pe.$$.fragment,e),u(E.$$.fragment,e),u(fe.$$.fragment,e),u(ue.$$.fragment,e),u(ge.$$.fragment,e),u(X.$$.fragment,e),u(_e.$$.fragment,e),u(Te.$$.fragment,e),u(ve.$$.fragment,e),u(q.$$.fragment,e),u(xe.$$.fragment,e),u(be.$$.fragment,e),u(Me.$$.fragment,e),u(Y.$$.fragment,e),pt=!1},d(e){e&&(n(T),n(l),n(v),n(x),n(De),n(A),n(Ve),n(Q),n(Ee),n(K),n(Xe),n(ee),n(qe),n(te),n(Ye),n(Ae),n(Qe),n(Ke),n(ae),n(et),n(tt),n($),n(nt),n(ot),n(b),n(rt),n(at),n(C),n(st),n(it),n(k),n(lt),n(ct),n(N),n(dt),n(mt),n(J),n(ht),n(Oe)),n(o),g(y,e),g(S,e),g(ne,e),g(oe,e),g(re,e),g(se,e),g(ie),g(D),g(le,e),g(ce),g(de),g(V),g(me,e),g(he),g(pe),g(E),g(fe,e),g(ue),g(ge),g(X),g(_e,e),g(Te),g(ve),g(q),g(xe,e),g(be),g(Me),g(Y)}}}const xn='{"title":"PatchTSMixer","local":"patchtsmixer","sections":[{"title":"Overview","local":"overview","sections":[],"depth":2},{"title":"Sample usage","local":"sample-usage","sections":[],"depth":2},{"title":"Usage tips","local":"usage-tips","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 bn(M){return ln(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Cn extends cn{constructor(o){super(),dn(this,o,bn,vn,sn,{})}}export{Cn as component};
