IdeaCredIdeaCred

irhdab/TransLSTM-Predictor

53

A quantitative trading model that combines CNN, Bi-LSTM, and Transformer architectures to achieve state-of-the-art (SOTA) accuracy in stock movement forecasting.

What's novel

A quantitative trading model that combines CNN, Bi-LSTM, and Transformer architectures to achieve state-of-the-art (SOTA) accuracy in stock movement forecasting.

Code Analysis

10 files read · 3 rounds

A CNN-LSTM-Transformer hybrid model that predicts 30-day percentage returns from OHLCV data with technical indicators, using a 3-model ensemble and a naive buy/sell backtest strategy.

Strengths

The model architecture is a genuine multi-branch hybrid (CNN, Transformer, LSTM) with proper positional encoding, and the dual-scaler approach for features vs. targets shows awareness of data leakage. Feature engineering covers a reasonable set of technical indicators.

Weaknesses

The walk-forward validation is non-standard and convoluted, the ensemble evaluation uses a monkey-patch hack, two modules (predictor.py, visualizer.py) are dead code, and the single test just calls main() without any meaningful assertions. The backtester ignores transaction costs and uses a questionable win-rate metric.

Score Breakdown

Innovation
4 (25%)
Craft
51 (35%)
Traction
11 (15%)
Scope
53 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci-1
Tests+3
Polish+0
Releases+0
Has License+5
Code Quality+13
Readme Quality+12
Recent Activity+7
Structure Quality+5
Commit Consistency+2
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+5
Devto Reactions+0
Community Contribs+0

Scope

Commits+5
Languages+3
Subsystems+5
Bloat Penalty+0
Completeness+7
Contributors+5
Authored Files+8
Readme Code Match+3
Architecture Depth+5
Implementation Depth+8

Evidence

Commits

11

Contributors

1

Files

26

Active weeks

3

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

3

Forks

0

License

MIT