LearnFinance PatchTST Model - v2026-06-26-0175f7b75c9e

OHLCV 5-channel PatchTST transformer model for predicting weekly stock returns.

Model Details

  • Version: v2026-06-26-0175f7b75c9e
  • Model Type: PatchTST (Patch Time Series Transformer)
  • Training Window: 2016-01-01 to 2026-06-26
  • Symbols: 197 stocks

Input Channels (11 total)

  • OHLCV log returns (5): open, high, low, close, volume
  • News sentiment (1)
  • Fundamentals (5): gross_margin, operating_margin, net_margin, current_ratio, debt_to_equity

Metrics

  • Train Loss: 0.16082556259352715
  • Validation Loss: 0.17319379383698105
  • Baseline Loss: 0.1873532086610794

Usage

from brain_api.storage.patchtst.huggingface import PatchTSTHalalNewHuggingFaceModelStorage
from brain_api.storage.patchtst.local import PatchTSTHalalNewModelStorage

storage = PatchTSTHalalNewHuggingFaceModelStorage(
    repo_id="hajirazin/learnfinance-models-patchtst-india",
    local_cache=PatchTSTHalalNewModelStorage(),
)
artifacts = storage.download_model(version="v2026-06-26-0175f7b75c9e")
Downloads last month
44
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support