#125125th of 126 in Training and fine-tuningFor finance and business, trading, stocks and crypto, finance and accounting

alphagen

Reinforcement-learning miner for formulaic stock alpha factors, from a KDD 2023 paper

Stars
1.3k
License
no license
Last commit
Jun 2026
Language
Python
Stars, last 30 weeks+236
2 May 2026: 1,070 stars9 May 2026: 1,074 stars16 May 2026: 1,081 stars23 May 2026: 1,086 stars30 May 2026: 1,098 stars6 Jun 2026: 1,101 stars13 Jun 2026: 1,110 stars20 Jun 2026: 1,114 stars27 Jun 2026: 1,121 stars4 Jul 2026: 1,128 stars11 Jul 2026: 1,135 stars18 Jul 2026: 1,146 stars25 Jul 2026: 1,155 stars1 Aug 2026: 1,167 stars8 Aug 2026: 1,174 stars15 Aug 2026: 1,185 stars22 Aug 2026: 1,193 stars29 Aug 2026: 1,197 stars5 Sept 2026: 1,211 stars12 Sept 2026: 1,220 stars19 Sept 2026: 1,228 stars26 Sept 2026: 1,235 stars3 Oct 2026: 1,246 stars10 Oct 2026: 1,257 stars17 Oct 2026: 1,266 stars24 Oct 2026: 1,276 stars31 Oct 2026: 1,285 stars7 Nov 2026: 1,291 stars14 Nov 2026: 1,296 stars21 Nov 2026: 1,300 stars28 Nov 2026: 1,306 stars

1,070 on 2 May 20261,306 on 28 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

AlphaGen trains a maskable PPO agent with an LSTM feature extractor to generate formulaic alphas and combine them into a linearly weighted pool, scored by IC and Rank IC against a target such as 20-day return. It includes gplearn and DSO baselines, LLM-driven iterative alpha generation scripts, and experimental Qlib-based backtests. Data comes from Qlib metadata plus baostock stock data, or a custom AlphaCalculator adapter.

Who it is for: Quant researchers mining formulaic alpha factors with RL

Strengths

  • Reproduces a peer-reviewed KDD 2023 method, with a follow-up LLM-assisted variant (HARLA)
  • Pluggable AlphaCalculator interface lets you use your own alpha evaluation pipeline
  • Checkpoints are stable-baselines3 compatible; alpha pools saved as readable JSON
  • Ships modified gplearn and DSO baselines for comparison

Weaknesses

  • Research code: run via python -m scripts.NAME, with no packaged install or release
  • Built-in pipeline needs Qlib metadata setup plus baostock data, which is China A-share focused
  • No license file detected, so reuse terms are unclear
  • Trading and backtest modules are labelled experimental

What it needs

  • Needs Qlib, baostock, stable-baselines3, PyTorch, TensorBoard, gplearn, DSO
  • Models: MaskablePPO with LSTM feature extractor, LLM clients (providers not stated)

Also in Training and fine-tuning

See all 126
Also in Training and fine-tuning
RankProjectScore
#121distilabelPython framework for building synthetic data and AI feedback pipelines3.5k starsApache-2.016 out of 100
#122agentflowAgent system with an RL-trained planner, executor, verifier and generator Live demo ↗ (opens in a new tab)2.1k starsMIT15 out of 100
#123gaussian-splatting-lightningPyTorch Lightning trainer and web viewer for 3D Gaussian Splatting scenes1.1k starscustom license15 out of 100
#124captcha_trainerTrains CNN+RNN+CTC image captcha recognition models with a GUI config tool3.2k starsApache-2.0no commits in a year14 out of 100
#126doraOfficial PyTorch code for DoRA, a weight-decomposed alternative to LoRA fine-tuning1k starscustom license13 out of 100