Download model_specs.json from thanatchon36/hindsight-or-foresight: direct link, hf CLI and curl.
- Browser
- Download file 2.82 kB
-
https://huggingface.co/thanatchon36/hindsight-or-foresight/resolve/main/model_specs.json
- Command line
-
hf download hf://thanatchon36/hindsight-or-foresight/model_specs.json
-
curl -L -o model_specs.json https://huggingface.co/thanatchon36/hindsight-or-foresight/resolve/main/model_specs.json
2.82 kB
| { | |
| "code_repository": "https://github.com/thanatchon36/hindsight-or-foresight", | |
| "code_commit": "d13e605", | |
| "source": "code/real_data.py", | |
| "seed": 20261112, | |
| "data": { | |
| "panel": "Bao, Ke, Li, Yu and Zhang (2020), Journal of Accounting Research 58(1), 199-235, doi:10.1111/1475-679X.12292; https://github.com/JarFraud/FraudDetection (data_FraudDetection_JAR2020.csv)", | |
| "rows_used": "fiscal years 1991 to 2014", | |
| "label": "misstate (1 = firm-year later subject to an SEC Accounting and Auditing Enforcement Release)", | |
| "case_id": "p_aaer (AAER case identifier, used for serial-case exclusion)", | |
| "test_years": [2003, 2004, 2005, 2006, 2007, 2008] | |
| }, | |
| "models": { | |
| "gbm": { | |
| "class": "sklearn.ensemble.HistGradientBoostingClassifier", | |
| "params": { | |
| "max_iter": 300, | |
| "learning_rate": 0.05, | |
| "max_leaf_nodes": 15, | |
| "min_samples_leaf": 40, | |
| "l2_regularization": 1.0, | |
| "class_weight": "balanced", | |
| "random_state": 20261112 | |
| }, | |
| "features": ["act", "ap", "at", "ceq", "che", "cogs", "csho", "dlc", "dltis", "dltt", "dp", "ib", "invt", "ivao", "ivst", "lct", "lt", "ni", "ppegt", "pstk", "re", "rect", "sale", "sstk", "txp", "txt", "xint", "prcc_f"], | |
| "preprocessing": "none (raw Compustat items; missing values handled natively)" | |
| }, | |
| "logit": { | |
| "class": "sklearn.linear_model.LogisticRegression", | |
| "params": { | |
| "C": 1.0, | |
| "max_iter": 2000, | |
| "class_weight": "balanced" | |
| }, | |
| "features": ["dch_wc", "ch_rsst", "dch_rec", "dch_inv", "soft_assets", "ch_cs", "ch_cm", "ch_roa", "issue", "bm", "dpi", "reoa", "EBIT", "ch_fcf"], | |
| "preprocessing": "winsorise at the training 1st and 99th percentiles, impute training medians, standardise with training mean and sd" | |
| } | |
| }, | |
| "evaluation_designs": [ | |
| { | |
| "name": "Random 5-fold CV (future + same-case leakage)", | |
| "split": "StratifiedKFold(5, shuffle=True, random_state=20261112) over all years; scores kept for the test years" | |
| }, | |
| { | |
| "name": "Out-of-time, no gap (labels not yet public)", | |
| "split": "for each test year t, train on fiscal years <= t-1" | |
| }, | |
| { | |
| "name": "Out-of-time, 2-yr gap", | |
| "split": "for each test year t, train on fiscal years <= t-2" | |
| }, | |
| { | |
| "name": "2-yr gap + serial-case exclusion (honest)", | |
| "split": "for each test year t, train on fiscal years <= t-2, dropping every firm-year of any AAER case that appears in year t" | |
| } | |
| ], | |
| "metrics": { | |
| "auc": "ROC AUC", | |
| "ap": "average precision", | |
| "prec_top1": "share of sanctioned firm-years among the top 1% of scores", | |
| "recall_top1": "share of sanctioned firm-years captured in the top 1%", | |
| "ci": "95% percentile interval from 400 class-stratified bootstrap resamples" | |
| } | |
| } | |