-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π [i18n-KO] Translated
model_doc/time_series_transformer.md
to Koreβ¦
β¦an (#33596) * docs: ko: model_doc/time_series_transformer.md * fix: resolve suggestions Co-authored-by: Chaewon Song <[email protected]> Co-authored-by: Ahnjj_DEV <[email protected]> * fix: resolve suggestions * fix: resolve suggestions * fix: resolve suggestions Co-authored-by: Ahnjj_DEV <[email protected]> --------- Co-authored-by: Chaewon Song <[email protected]> Co-authored-by: Ahnjj_DEV <[email protected]>
- Loading branch information
1 parent
32cc15c
commit 04f51c4
Showing
2 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!--Copyright 2022 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. | ||
--> | ||
|
||
# μκ³μ΄ νΈλμ€ν¬λ¨Έ[[time-series-transformer]] | ||
|
||
## κ°μ[[overview]] | ||
|
||
μ΄ μκ³μ΄ νΈλμ€ν¬λ¨Έ λͺ¨λΈμ μκ³μ΄ μμΈ‘μ μν κΈ°λ³Έμ μΈ μΈμ½λ-λμ½λ ꡬ쑰μ νΈλμ€ν¬λ¨Έ μ λλ€. | ||
μ΄ λͺ¨λΈμ [kashif](https://huggingface.co/kashif)μ μν΄ κΈ°μ¬λμμ΅λλ€. | ||
|
||
## μ¬μ© ν[[usage-tips]] | ||
|
||
- λ€λ₯Έ λΌμ΄λΈλ¬λ¦¬μ λͺ¨λΈλ€κ³Ό λ§μ°¬κ°μ§λ‘, [`TimeSeriesTransformerModel`]μ μλ¨μ ν€λκ° μλ κΈ°λ³Έμ μΈ νΈλμ€ν¬λ¨Έ μ λλ€. [`TimeSeriesTransformerForPrediction`]μ μλ¨μ λΆν¬ ν€λλ₯Ό μΆκ°νμ¬ μκ³μ΄ μμΈ‘μ μ¬μ©ν μ μμ΅λλ€. μ΄ λͺ¨λΈμ μ΄λ₯Έλ° νλ₯ μ μμΈ‘ λͺ¨λΈμ΄λ©°, ν¬μΈνΈ μμΈ‘ λͺ¨λΈμ΄ μλλλ€. μ¦ μνλ§ν μ μλ λΆν¬λ₯Ό νμ΅νλ©°, κ°μ μ§μ μΆλ ₯ νμ§λ μμ΅λλ€. | ||
- [`TimeSeriesTransformerForPrediction`]μ λκ°μ λΈλ‘μΌλ‘ ꡬμ±λμ΄ μμ΅λλ€. μΈμ½λλ `context_length`μ μκ³μ΄ κ°μ μ λ ₯(`past_values`λΌκ³ λΆλ¦)μΌλ‘ λ°μλ€μ΄λ©°, λμ½λλ λ―Έλμ `prediction_length`λ§νΌ μκ³μ΄ κ°μ μμΈ‘ν©λλ€(`future_values`λΌκ³ λΆλ¦). νμ΅μ€μλ λͺ¨λΈμ `past_values` μ `future_values`μμ λͺ¨λΈμ μ 곡ν΄μΌ ν©λλ€. | ||
- κ°κ³΅νμ§ μμ `past_values` μ `future_values` μ μΈμλ, μΌλ°μ μΌλ‘ λͺ¨λΈμ μΆκ°μ μΈ νΉμ§μ μ 곡ν©λλ€. λ€μμ κ·Έ νΉμ§λ€μ λν΄ μκ°ν©λλ€: | ||
- `past_time_features`: λͺ¨λΈμ΄ `past_values`μ μΆκ°ν μκ°μ νΉμ±. μ΄λ νΈλμ€ν¬λ¨Έ μΈμ½λμ "μμΉ μΈμ½λ©" μν μ ν©λλ€. | ||
μλ₯Ό λ€μ΄ "μμ μΌ", "μ°λμ μ" λ±μ μ€μΉΌλΌ κ°μΌλ‘ (κ·Έλ¦¬κ³ λ²‘ν°λ‘ μμμ) λνλ λλ€. | ||
μμ: νΉμ μκ³μ΄ κ°μ΄ 8μ 11μΌμ κΈ°λ‘λμλ€λ©΄, [11, 8]μ μκ° νΉμ± 벑ν°λ‘ μ¬μ©ν μ μμ΅λλ€ (11μ "μμ μΌ", 8μ "μ°λμ μ"). | ||
- `future_time_features`: λͺ¨λΈμ΄ `future_values`μ μΆκ°ν μκ°μ νΉμ±. μ΄λ νΈλμ€ν¬λ¨Έ λμ½λμ "μμΉ μΈμ½λ©" μν μ ν©λλ€. | ||
μλ₯Ό λ€μ΄ "μμ μΌ", "μ°λμ μ" λ±μ μ€μΉΌλΌ κ°μΌλ‘ (κ·Έλ¦¬κ³ λ²‘ν°λ‘ μμμ) λνλ λλ€. | ||
μ: νΉμ μκ³μ΄ κ°μ΄ 8μ 11μΌμ μ»μ΄μ‘λ€λ©΄, [11, 8]μ μκ° νΉμ± 벑ν°λ‘ μ¬μ©ν μ μμ΅λλ€ (11μ "μμ μΌ", 8μ "μ°λμ μ"). | ||
- `static_categorical_features`: μκ°μ λ°λΌ λ³νμ§ μλ λ²μ£Όν νΉμ± (μ¦, λͺ¨λ `past_values`μ `future_values`μ λν΄ λμΌν κ°μ κ°μ§). | ||
μλ₯Ό λ€μ΄ νΉμ μκ³μ΄μ μλ³νλ 맀μ₯ IDλ μ§μ IDκ° μμ΅λλ€. | ||
μ΄λ¬ν νΉμ±μ λͺ¨λ λ°μ΄ν° ν¬μΈνΈ(λ―Έλμ λ°μ΄ν° ν¬μΈνΈ ν¬ν¨)μ λν΄ μλ €μ Έ μμ΄μΌ ν©λλ€. | ||
- `static_real_features`: μκ°μ λ°λΌ λ³νμ§ μλ μ€μκ° νΉμ± (μ¦, λͺ¨λ `past_values`μ `future_values`μ λν΄ λμΌν κ°μ κ°μ§). | ||
μλ₯Ό λ€μ΄ μκ³μ΄ κ°μ κ°μ§ μ νμ μ΄λ―Έμ§ νν (μκ³μ΄μ΄ μ λ° ν맀μ κ΄ν κ²μ΄λΌλ©΄ "μ λ°" μ¬μ§μ [ResNet](resnet) μλ² λ© μ²λΌ)μ΄ μμ΅λλ€. | ||
μ΄λ¬ν νΉμ±μ λͺ¨λ λ°μ΄ν° ν¬μΈνΈ(λ―Έλμ λ°μ΄ν° ν¬μΈνΈ ν¬ν¨)μ λν΄ μλ €μ Έ μμ΄μΌ ν©λλ€. | ||
- μ΄ λͺ¨λΈμ κΈ°κ³ λ²μμ μν νΈλμ€ν¬λ¨Έ νλ ¨κ³Ό μ μ¬νκ² "κ΅μ¬ κ°μ (teacher-forcing)" λ°©μμΌλ‘ νλ ¨λ©λλ€. μ¦, νλ ¨ μ€μ `future_values`λ₯Ό λμ½λμ μ λ ₯μΌλ‘ μ€λ₯Έμͺ½μΌλ‘ ν μμΉ μ΄λμν€κ³ , `past_values`μ λ§μ§λ§ κ°μ μμ λΆμ λλ€. κ° μκ° λ¨κ³μμ λͺ¨λΈμ λ€μ νκ²μ μμΈ‘ν΄μΌ ν©λλ€. λ°λΌμ νλ ¨ μ€μ μ μΈμ΄λ₯Ό μν GPT λͺ¨λΈκ³Ό μ μ¬νμ§λ§, `decoder_start_token_id` κ°λ μ΄ μμ΅λλ€ (μ°λ¦¬λ λ¨μν 컨ν μ€νΈμ λ§μ§λ§ κ°μ λμ½λμ μ΄κΈ° μ λ ₯μΌλ‘ μ¬μ©ν©λλ€). | ||
- μΆλ‘ μμλ `past_values`μ μ΅μ’ κ°μ λμ½λμ μ λ ₯μΌλ‘ μ 곡ν©λλ€. κ·Έ λ€μ, λͺ¨λΈμμ μνλ§νμ¬ λ€μ μκ° λ¨κ³μμμ μμΈ‘μ λ§λ€κ³ , μ΄λ₯Ό λμ½λμ 곡κΈνμ¬ λ€μ μμΈ‘μ λ§λλλ€ (μκΈ°νκ· μμ±μ΄λΌκ³ λ ν¨). | ||
|
||
## μλ£ [[resources]] | ||
|
||
μμνλ λ° λμμ΄ λλ Hugging Faceμ community μλ£ λͺ©λ‘(πλ‘ νμλ¨) μ λλ€. μ¬κΈ°μ ν¬ν¨λ μλ£λ₯Ό μ μΆνκ³ μΆμΌμλ€λ©΄ PR(Pull Request)λ₯Ό μ΄μ΄μ£ΌμΈμ. 리뷰 ν΄λλ¦¬κ² μ΅λλ€! μλ£λ κΈ°μ‘΄ μλ£λ₯Ό 볡μ νλ λμ μλ‘μ΄ λ΄μ©μ λ΄κ³ μμ΄μΌ ν©λλ€. | ||
|
||
- HuggingFace λΈλ‘κ·Έμμ μκ³μ΄ νΈλμ€ν¬λ¨Έ ν¬μ€νΈλ₯Ό νμΈνμΈμ: [π€ νΈλμ€ν¬λ¨Έμ νλ₯ μ μκ³μ΄ μμΈ‘](https://huggingface.co/blog/time-series-transformers) | ||
|
||
## TimeSeriesTransformerConfig[[transformers.TimeSeriesTransformerConfig]] | ||
|
||
[[autodoc]] TimeSeriesTransformerConfig | ||
|
||
## TimeSeriesTransformerModel[[transformers.TimeSeriesTransformerModel]] | ||
|
||
[[autodoc]] TimeSeriesTransformerModel | ||
- forward | ||
|
||
## TimeSeriesTransformerForPrediction[[transformers.TimeSeriesTransformerForPrediction]] | ||
|
||
[[autodoc]] TimeSeriesTransformerForPrediction | ||
- forward |