| <!--Copyright 2023 The HuggingFace Team. All rights reserved. | |
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | |
| the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | |
| an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations under the License. | |
| โ ๏ธ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be | |
| rendered properly in your Markdown viewer. | |
| --> | |
| # PatchTST[[patchtst]] | |
| ## ๊ฐ์[[overview]] | |
| The PatchTST ๋ชจ๋ธ์ Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, Jayant Kalagnanam์ด ์ ์ํ [์๊ณ์ด ํ๋๊ฐ 64๊ฐ์ ๋จ์ด๋งํผ ๊ฐ์น์๋ค: ํธ๋์คํฌ๋จธ๋ฅผ ์ด์ฉํ ์ฅ๊ธฐ์์ธก](https://huggingface.co/papers/2211.14730)๋ผ๋ ๋ ผ๋ฌธ์์ ์๊ฐ๋์์ต๋๋ค. | |
| ์ด ๋ชจ๋ธ์ ๊ณ ์์ค์์ ์๊ณ์ด์ ์ฃผ์ด์ง ํฌ๊ธฐ์ ํจ์น๋ก ๋ฒกํฐํํ๊ณ , ๊ฒฐ๊ณผ๋ก ๋์จ ๋ฒกํฐ ์ํ์ค๋ฅผ ํธ๋์คํฌ๋จธ๋ฅผ ํตํด ์ธ์ฝ๋ฉํ ๋ค์ ์ ์ ํ ํค๋๋ฅผ ํตํด ์์ธก ๊ธธ์ด์ ์์ธก์ ์ถ๋ ฅํฉ๋๋ค. ๋ชจ๋ธ์ ๋ค์ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ด ๋์ํ๋ฉ๋๋ค: | |
|  | |
| ํด๋น ๋ ผ๋ฌธ์ ์ด๋ก์ ๋๋ค: | |
| *์ฐ๋ฆฌ๋ ๋ค๋ณ๋ ์๊ณ์ด ์์ธก๊ณผ ์๊ธฐ ๊ฐ๋ ํํ ํ์ต์ ์ํ ํจ์จ์ ์ธ ํธ๋์คํฌ๋จธ ๊ธฐ๋ฐ ๋ชจ๋ธ ์ค๊ณ๋ฅผ ์ ์ํฉ๋๋ค. ์ด๋ ๋ ๊ฐ์ง ์ฃผ์ ๊ตฌ์ฑ ์์๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํฉ๋๋ค: | |
| (i) ์๊ณ์ด์ ํ์ ์๋ฆฌ์ฆ ์์ค์ ํจ์น๋ก ๋ถํ ํ์ฌ ํธ๋์คํฌ๋จธ์ ์ ๋ ฅ ํ ํฐ์ผ๋ก ์ฌ์ฉ | |
| (ii) ๊ฐ ์ฑ๋์ด ๋ชจ๋ ์๋ฆฌ์ฆ์ ๊ฑธ์ณ ๋์ผํ ์๋ฒ ๋ฉ๊ณผ ํธ๋์คํฌ๋จธ ๊ฐ์ค์น๋ฅผ ๊ณต์ ํ๋ ๋จ์ผ ๋จ๋ณ๋ ์๊ณ์ด์ ํฌํจํ๋ ์ฑ๋ ๋ ๋ฆฝ์ฑ. ํจ์นญ ์ค๊ณ๋ ์์ฐ์ค๋ฝ๊ฒ ์ธ ๊ฐ์ง ์ด์ ์ ๊ฐ์ง๋๋ค: | |
| - ์ง์ญ์ ์๋ฏธ ์ ๋ณด๊ฐ ์๋ฒ ๋ฉ์ ์ ์ง๋ฉ๋๋ค; | |
| - ๋์ผํ ๋ฃฉ๋ฐฑ ์๋์ฐ์ ๋ํด ์ดํ ์ ๋งต์ ๊ณ์ฐ๊ณผ ๋ฉ๋ชจ๋ฆฌ ์ฌ์ฉ๋์ด ์ ๊ณฑ์ผ๋ก ๊ฐ์ํฉ๋๋ค | |
| - ๋ชจ๋ธ์ด ๋ ๊ธด ๊ณผ๊ฑฐ๋ฅผ ์ฐธ์กฐํ ์ ์์ต๋๋ค. | |
| ์ฐ๋ฆฌ์ ์ฑ๋ ๋ ๋ฆฝ์ ํจ์น ์๊ณ์ด ํธ๋์คํฌ๋จธ(PatchTST)๋ ์ต์ ํธ๋์คํฌ๋จธ ๊ธฐ๋ฐ ๋ชจ๋ธ๋ค๊ณผ ๋น๊ตํ์ ๋ ์ฅ๊ธฐ ์์ธก ์ ํ๋๋ฅผ ํฌ๊ฒ ํฅ์์ํฌ ์ ์์ต๋๋ค. ๋ํ ๋ชจ๋ธ์ ์๊ธฐ์ง๋ ์ฌ์ ํ๋ จ ์์ ์ ์ ์ฉํ์ฌ, ๋๊ท๋ชจ ๋ฐ์ดํฐ์ ์ ๋ํ ์ง๋ ํ์ต์ ๋ฅ๊ฐํ๋ ์์ฃผ ๋ฐ์ด๋ ๋ฏธ์ธ ์กฐ์ ์ฑ๋ฅ์ ๋ฌ์ฑํ์ต๋๋ค. ํ ๋ฐ์ดํฐ์ ์์ ๋ง์คํฌ๋ ์ฌ์ ํ๋ จ ํํ์ ๋ค๋ฅธ ๋ฐ์ดํฐ์ ์ผ๋ก ์ ์ดํ๋ ๊ฒ๋ ์ต๊ณ ์์ค์ ์์ธก ์ ํ๋(SOTA)๋ฅผ ์ฐ์ถํ์ต๋๋ค.* | |
| ์ด ๋ชจ๋ธ์ [namctin](https://huggingface.co/namctin), [gsinthong](https://huggingface.co/gsinthong), [diepi](https://huggingface.co/diepi), [vijaye12](https://huggingface.co/vijaye12), [wmgifford](https://huggingface.co/wmgifford), [kashif](https://huggingface.co/kashif)์ ์ํด ๊ธฐ์ฌ ๋์์ต๋๋ค. ์๋ณธ์ฝ๋๋ [์ด๊ณณ](https://github.com/yuqinie98/PatchTST)์์ ํ์ธํ ์ ์์ต๋๋ค. | |
| ## ์ฌ์ฉ ํ[[usage-tips]] | |
| ์ด ๋ชจ๋ธ์ ์๊ณ์ด ๋ถ๋ฅ์ ์๊ณ์ด ํ๊ท์๋ ์ฌ์ฉ๋ ์ ์์ต๋๋ค. ๊ฐ๊ฐ [`PatchTSTForClassification`]์ [`PatchTSTForRegression`] ํด๋์ค๋ฅผ ์ฐธ์กฐํ์ธ์. | |
| ## ์๋ฃ[[resources]] | |
| - PatchTST๋ฅผ ์์ธํ ์ค๋ช ํ๋ ๋ธ๋ก๊ทธ ํฌ์คํธ๋ [์ด๊ณณ](https://huggingface.co/blog/patchtst)์์ ์ฐพ์ ์ ์์ต๋๋ค. | |
| ์ด ๋ธ๋ก๊ทธ๋ Google Colab์์๋ ์ด์ด๋ณผ ์ ์์ต๋๋ค. | |
| ## PatchTSTConfig[[transformers.PatchTSTConfig]] | |
| [[autodoc]] PatchTSTConfig | |
| ## PatchTSTModel[[transformers.PatchTSTModel]] | |
| [[autodoc]] PatchTSTModel | |
| - forward | |
| ## PatchTSTForPrediction[[transformers.PatchTSTForPrediction]] | |
| [[autodoc]] PatchTSTForPrediction | |
| - forward | |
| ## PatchTSTForClassification[[transformers.PatchTSTForClassification]] | |
| [[autodoc]] PatchTSTForClassification | |
| - forward | |
| ## PatchTSTForPretraining[[transformers.PatchTSTForPretraining]] | |
| [[autodoc]] PatchTSTForPretraining | |
| - forward | |
| ## PatchTSTForRegression[[transformers.PatchTSTForRegression]] | |
| [[autodoc]] PatchTSTForRegression | |
| - forward | |