Instructions to use romee/laya-stock-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use romee/laya-stock-model with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
laya-stock-model
Laya ๊ฒฐ์ ๋ชจ๋ธ์ ํ๊ตญ ์ฃผ์ 10๋ถ๋ด ๋ฐ์ดํฐ๋ก ํ์ธํ๋ํ buy / hold / sell ์์ฌ๊ฒฐ์ ๋ชจ๋ธ์ ๋๋ค. 30๋ถ(3๋ด) ํ ์์ต๋ฅ ์ ๊ธฐ์ค์ผ๋ก ๋ถ๋ฅ๋ ๋ผ๋ฒจ์ ํ์ตํ์ต๋๋ค.
๋ชจ๋ธ ๊ฐ์
| ํญ๋ชฉ | ๊ฐ |
|---|---|
| ๋ฒ ์ด์ค ์ธ์ฝ๋ | answerdotai/ModernBERT-large (hidden 1024, 28์ธต, 16 heads) |
| ํค๋ | Laya rl-agent (head_layers=2) |
| vocab / ์ต๋๊ธธ์ด | 50,368 / max_len 512, head_max_len 192 |
| ์บ๋ฆฌ๋ธ๋ ์ด์ | temperature 1.1709 (choice) |
| ๊ฐ์ค์น | model.safetensors (์ฝ 803MB, fp32) |
ํ์ต ๋ฐ์ดํฐ
- ์์ค: ํ๊ตญ ์ฃผ์ ์ค์๊ฐ ํฑ โ 10๋ถ๋ด ์ง๊ณ. ์ผ๋ณ ๊ฑฐ๋๋๊ธ/๊ฑฐ๋๋ ์์ 50์ ์ข ๋ชฉ๋ง ์ ์ฅ๋ ๋ชจ์ง๋จ.
- ๊ธฐ๊ฐ: 2025-01-06 ~ 2025-07-23 (์ฝ 100 ๊ฑฐ๋์ผ)
- ํ๋ณธ: train 85,473 / eval 27,725 (์๊ฐ์ 80:20 ๋ถํ , ์๊ณ์ด ๋์ ์์)
- ์
๋ ฅ: state ํผ์ฒ 25๊ฐ(๊ฐ๊ฒฉยท๊ฑฐ๋๋ยทRSIยทMACDยท์ด๋ํ๊ท ยท๋น์ผ ์์ ๋ฑ), ์ง๋ฌธ
action1๊ฐ, gold 3-class ํ๋ฅ - ๋ผ๋ฒจ: ๋ฏธ๋ 3๋ด(30๋ถ) ์์ต๋ฅ โ
buy(โฅ +0.5%) /hold/sell(โค โ0.5%)
ํ์ต ์ค์
- Kaggle T4 ร2, 4 epochs,
micro_batch8,grad_accum8 - loss
rlcd,head_lr1e-4,encoder_lr2.5e-5,rl_samples4,sigma0.4 โ 0.1
ํ๊ฐ (held-out 27,725)
| ์งํ | before | after |
|---|---|---|
| Accuracy | 0.3189 | 0.4648 |
| Loss | 1.1264 | 1.0832 |
| ECE | 0.0872 | 0.0646 |
| Brier | 0.1513 | 0.1213 |
์ฌ์ฉ๋ฒ
import laya
agent = laya.load("romee/laya-stock-model") # HF Hub
# agent = laya.load(r"C:\0GitHub\๋ผ์ผ\stock-model") # ๋ก์ปฌ ๊ฒฝ๋ก
res = agent.predict(state=state, questions=questions) # buy/hold/sell + ํ๋ฅ
ํ๊ณ ๋ฐ ์ฃผ์
- ๋ชจ์ง๋จ ์ผ์น ํ์: ํ์ต ๋ชจ์ง๋จ์ด "์์ 50์ ์ข ๋ชฉ"์ด๋ฏ๋ก, ๋ค๋ฅธ ๋ชจ์ง๋จ์ ์ ์ฉํ๋ฉด ๋ณด์ ๋ ํ๋ฅ (confidence)์ด ๋ฌด์๋ฏธํด์ง๋๋ค.
- ์ํ๊ฐ ์ฒด๊ฒฐ ์ ์ฝ: ํ์ฌ๊ฐ๊ฐ ์ํ๊ฐ๋ฉด ์ ๊ท ๋งค์ ์ฒด๊ฒฐ์ด ๋ถ๊ฐํ๋ฏ๋ก buy ์ ํธ๋ฅผ ๋ฌด์ํ๋ ๊ท์น์ด ํ์ํฉ๋๋ค(๋ณด์ ๋งค๋๋ ์ ์).
- ํ๋ณธ ํ๊ณ: 20๊ฑฐ๋์ผ ๋ฐฑํ ์คํธ์์ buy&hold ๋๋น ์ด๊ณผ์์ต(+)์ ๋ณด์์ผ๋ ๊ธฐ๊ฐ์ด ์งง์ต๋๋ค.
๋ผ์ด์ ์ค
์ ์์ ์ง์ ์์ (other). ๋ฒ ์ด์ค ๋ชจ๋ธ answerdotai/ModernBERT-large๋ Apache-2.0์
๋๋ค.
- Downloads last month
- 12
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
Model tree for romee/laya-stock-model
Base model
answerdotai/ModernBERT-large