Qlib AI Quant
Microsoft qlib AI quant research platform: Alpha158/TFT feature engineering, prediction models, portfolio optimization, and multi-frequency backtest in one stack. Multi-market (A-share / US / HK).
Overview
Constraints
Evidence Quality
Medium confidence — review before critical use
61 non-negotiable constraints
WHENWhen implementing expression load with index range parameters
ACTIONAllow start_index to exceed end_index in Expression.load
CONSEQUENCEInvalid index range causes data corruption where features return empty or misaligned series, breaking calendar index alignment for all downstream consumers
WHENWhen implementing a new Expression subclass
ACTIONImplement _load_internal abstract method to return pd.Series indexed by calendar
CONSEQUENCESubclass without _load_internal raises NotImplementedError, preventing feature calculation and breaking the entire data pipeline
WHENWhen using PIT (Point-in-Time) database expressions
ACTIONCreate PIT expressions with positive right extended window (end_ws > 0) referencing future periods
CONSEQUENCEFuture period references in PIT cause ValueError and break point-in-time data integrity, leading to look-ahead bias in backtests
FAQ
Discussion (0)
No comments yet. Be the first to share!
Changelog
v0.1.0: Initial release on Doramagic.ai. Microsoft qlib AI quant platform with bilingual metadata, 47 anti-pattern constraints (each with GitHub issue provenance), and 3 FAQs.