Luke Danielson commited on
Upload folder using huggingface_hub
Browse files- README.md +150 -0
- recent.parquet +3 -0
- recent_clean.parquet +3 -0
- test.parquet +3 -0
- test_clean.parquet +3 -0
- train.parquet +3 -0
- train_clean.parquet +3 -0
- validation.parquet +3 -0
- validation_clean.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: OpenFundex
|
| 6 |
+
tags:
|
| 7 |
+
- finance
|
| 8 |
+
- value-investing
|
| 9 |
+
- sec-filings
|
| 10 |
+
- fundamental-analysis
|
| 11 |
+
- tabular
|
| 12 |
+
task_categories:
|
| 13 |
+
- tabular-classification
|
| 14 |
+
- tabular-regression
|
| 15 |
+
size_categories:
|
| 16 |
+
- 100K<n<1M
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# OpenFundex Dataset
|
| 20 |
+
|
| 21 |
+
A structured dataset of SEC financial filings for deep value analysis and financial distress prediction.
|
| 22 |
+
|
| 23 |
+
## Dataset Description
|
| 24 |
+
|
| 25 |
+
- **License**: CC-BY-4.0
|
| 26 |
+
- **Language**: English
|
| 27 |
+
|
| 28 |
+
### Summary
|
| 29 |
+
|
| 30 |
+
OpenFundex contains financial statement data extracted from SEC EDGAR filings,
|
| 31 |
+
enriched with derived financial metrics and labeled with established quality scores
|
| 32 |
+
(Piotroski F-Score, Altman Z'-Score, Graham metrics). Designed for training ML
|
| 33 |
+
models to assess company financial health and identify deep value opportunities.
|
| 34 |
+
|
| 35 |
+
**Key design decision:** This dataset uses only fundamental data from SEC filings.
|
| 36 |
+
No market prices or equity trading data are included, eliminating survivorship bias.
|
| 37 |
+
|
| 38 |
+
## Supported Tasks
|
| 39 |
+
|
| 40 |
+
- **Tabular Classification**: Predict financial distress, value creation, fundamental improvement
|
| 41 |
+
- **Tabular Regression**: Predict quality scores (f_score, z_prime_score, composite_quality_score), growth rates
|
| 42 |
+
- **Anomaly Detection**: Identify companies in financial distress or with QA anomalies
|
| 43 |
+
|
| 44 |
+
## Dataset Structure
|
| 45 |
+
|
| 46 |
+
### Splits
|
| 47 |
+
|
| 48 |
+
| Split | Records | Companies | Date Range |
|
| 49 |
+
|-------|---------|-----------|------------|
|
| 50 |
+
| train | 221,779 | 11,786 | 2008-12-31 to 2019-12-31 |
|
| 51 |
+
| validation | 45,109 | 7,207 | 2020-01-31 to 2021-12-31 |
|
| 52 |
+
| test | 47,334 | 7,208 | 2022-01-31 to 2023-12-31 |
|
| 53 |
+
| recent | 38,171 | 6,358 | 2024-01-31 to 2025-11-30 |
|
| 54 |
+
|
| 55 |
+
**Total records:** 352,393
|
| 56 |
+
|
| 57 |
+
### Feature Groups
|
| 58 |
+
|
| 59 |
+
| Group | Count |
|
| 60 |
+
|-------|-------|
|
| 61 |
+
| Identifiers | 5 |
|
| 62 |
+
| Context | 4 |
|
| 63 |
+
| Raw Features (SEC XBRL) | 33 |
|
| 64 |
+
| Derived Features | 8 |
|
| 65 |
+
| Engineered Features | 23 |
|
| 66 |
+
| QA Flags | 4 |
|
| 67 |
+
| Prediction Targets | 19 |
|
| 68 |
+
| Rank Targets | 14 |
|
| 69 |
+
|
| 70 |
+
## Scoring Models
|
| 71 |
+
|
| 72 |
+
- **Piotroski F-Score** (0-9): Nine binary signals measuring profitability, leverage, and operating efficiency. Null when no prior quarter available for delta signals.
|
| 73 |
+
- **Altman Z'-Score** (Float): Private-firm bankruptcy risk variant with zone classification (safe/grey/distress). Null for financial firms (SIC 6000-6999).
|
| 74 |
+
- **Beneish Coverage** (0-8): Count of computable M-Score components. Full M-Score is computed transiently during enrichment but not retained.
|
| 75 |
+
- **Graham Metrics**: Graham Number, NCAV/share, tangible book value/share, net working capital/share, defensive score (0-5).
|
| 76 |
+
- **Quality Signals**: Cash conversion ratio, accrual ratio, free cash flow margin.
|
| 77 |
+
- **Composite Quality Score**: Z-score normalized average of key quality signals within each quarter cross-section.
|
| 78 |
+
|
| 79 |
+
## Target Columns
|
| 80 |
+
|
| 81 |
+
19 forward-looking prediction targets using same-quarter year-over-year comparisons:
|
| 82 |
+
|
| 83 |
+
### 1-Year Targets
|
| 84 |
+
- **Growth rates** (6): BVPS, equity, earnings, revenue, OCF, FCF growth
|
| 85 |
+
- **Level/delta** (2): Forward ROE, margin expansion
|
| 86 |
+
- **Binary** (4): ROA improved, fundamentals improved (≥3 of 5 metrics), value created (equity grew AND ROE>0), survived
|
| 87 |
+
|
| 88 |
+
### 2-Year Targets
|
| 89 |
+
- **Growth rates** (6): Same metrics as 1-year, over 2-year horizon
|
| 90 |
+
- **Binary** (1): Survived 2 years
|
| 91 |
+
|
| 92 |
+
All targets are null when forward quarter data is unavailable.
|
| 93 |
+
|
| 94 |
+
### Rank-Transformed Targets (14 columns)
|
| 95 |
+
|
| 96 |
+
Cross-sectional percentile ranks (0-1] for all Float64 targets, computed per quarter
|
| 97 |
+
using `rank("average") / count()`. Raw growth targets are extremely skewed
|
| 98 |
+
(mean ~3.1, median ~0.03) and produce negative information coefficients for
|
| 99 |
+
regression models. Rank-transforming yields IC ~0.37.
|
| 100 |
+
|
| 101 |
+
## Dataset Creation
|
| 102 |
+
|
| 103 |
+
### Source Data
|
| 104 |
+
|
| 105 |
+
All data sourced exclusively from SEC EDGAR Financial Statement Data Sets (FSDS), 2009-present.
|
| 106 |
+
No market data providers. No third-party data. No equity pricing data.
|
| 107 |
+
|
| 108 |
+
### Pipeline
|
| 109 |
+
|
| 110 |
+
1. **Ingest**: Download quarterly SEC FSDS ZIP files from EDGAR
|
| 111 |
+
2. **Parse**: Extract XBRL financial data, normalize 32 tags to standard fields
|
| 112 |
+
3. **Enrich**: Compute derived ratios (8), scoring models (5), and QA flags
|
| 113 |
+
4. **Label**: Generate 19 forward-looking prediction targets
|
| 114 |
+
5. **Split**: Temporal train/validation/test/recent splits with leakage validation
|
| 115 |
+
6. **Evaluate**: Quality checks, ML fitness, and publication readiness
|
| 116 |
+
7. **Publish**: Stage and upload to Hugging Face Hub
|
| 117 |
+
|
| 118 |
+
## Considerations
|
| 119 |
+
|
| 120 |
+
### Known Limitations
|
| 121 |
+
|
| 122 |
+
- XBRL coverage varies: some companies report fewer standardized tags
|
| 123 |
+
- F-Score delta components require prior quarter data (null for first appearance)
|
| 124 |
+
- Z'-Score was designed for manufacturing firms; interpretation varies by sector
|
| 125 |
+
- No market data: cannot compute price-based metrics (P/E, market cap, etc.)
|
| 126 |
+
|
| 127 |
+
### Bias Considerations
|
| 128 |
+
|
| 129 |
+
- **No survivorship bias**: Uses only SEC filing data, not equity market prices
|
| 130 |
+
- **Temporal integrity**: Strict time-based splits prevent data leakage
|
| 131 |
+
- **Sector bias**: Z'-Score thresholds may not be equally applicable across all sectors
|
| 132 |
+
- **Financial firms excluded from Z'-Score**: Financial companies (SIC 6000-6999) have null Z'-Score values
|
| 133 |
+
|
| 134 |
+
## License
|
| 135 |
+
|
| 136 |
+
This dataset is released under the [CC-BY-4.0 license](https://creativecommons.org/licenses/by/4.0/).
|
| 137 |
+
|
| 138 |
+
The underlying SEC data is in the public domain.
|
| 139 |
+
|
| 140 |
+
## Citation
|
| 141 |
+
|
| 142 |
+
```bibtex
|
| 143 |
+
@dataset{openfundex,
|
| 144 |
+
title={OpenFundex: SEC Financial Filings for Deep Value Analysis},
|
| 145 |
+
author={Danielson, Luke},
|
| 146 |
+
year={2026},
|
| 147 |
+
url={https://github.com/danielukea/openfundex},
|
| 148 |
+
license={CC-BY-4.0}
|
| 149 |
+
}
|
| 150 |
+
```
|
recent.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af020c6de8d597df0d83f16414b314f53ffca6462b1779ec8285113f761d2ab6
|
| 3 |
+
size 8144105
|
recent_clean.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1ce901a3b512eeef1cfb2b3617407d55685eebdabf18281e039289d1343b9e4
|
| 3 |
+
size 7952725
|
test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6e05c2cffefaa0528a5bc5fd7228cc5b7c10b94dfe93cd3b904fe4d99d2e320
|
| 3 |
+
size 13654089
|
test_clean.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb2ecaa8f1894d069d7d48c3b3a2ead6ef5b9b269fdcaf6bf6933ac40afc0f39
|
| 3 |
+
size 13335074
|
train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f4ff4fb2518902fdd058698e00fa02515fa07dcec70b2f7d83701642b4a090e
|
| 3 |
+
size 60702318
|
train_clean.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20af2a209495a9c0f6404e64323b7d4f3b94daecda2822b7bc82e6155c41d3f4
|
| 3 |
+
size 59476319
|
validation.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7712e741cea74378f3f876f469264770597cb02dd06907a3de9d8fa265cd9f8e
|
| 3 |
+
size 13319936
|
validation_clean.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81369fa46af88298e2e23aa83db626e5da9dc14679a93229c3f2a04b8b9b492b
|
| 3 |
+
size 13032336
|