adjusted the profiling pipelines: multipliers & (potential) founders, explorative analyses
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
2026-08-27 13:53:10 +02:00
parent 88e0b44d54
commit c26c3f33f5
154 changed files with 18795 additions and 0 deletions
@@ -0,0 +1,556 @@
# Founding-Potential Prediction — Experiments
This folder contains a self-contained, reproducible pipeline that answers two
research questions using the Dimensions researcher-metadata datasets in
[`../dimensions_data`](../dimensions_data) and [`../evaluation`](../evaluation):
- **RQ1** — *Can we classify founders vs. non-founders from full-career
researcher metadata?*
- **RQ2** — *Can we predict, from a truncated ("half") profile taken N years
before founding, whether/when a researcher will go on to found a company —
and does that signal hold up at a longer, unseen horizon and under a
time-to-event (survival) framing?*
Both baselines ("primitive" models) and modern gradient-boosting / ensemble /
deep-learning models are trained side by side so the added value of more
sophisticated modeling can be judged directly.
> **⚠️ 2026-08 redesign — read before using any RQ1/RQ2 numbers below.**
> A production probe showed the original RQ1 classifier is an
> *inverse-productivity score* (1 publication → P(founder)=0.996, 800 →
> 0.0002) and the RQ2 `p_within_3y/5y` outputs are degenerate (≡1.0 for every
> author). Root cause: the "pre-founding fix" truncates founders' totals at
> their founding year while non-founders keep full-career totals, so
> observation-window length itself encodes the label; the 0.918→0.976 ROC-AUC
> "improvement" from that fix is class-separability leakage, not noise
> removal. The corrected **symmetric landmark design** lives in
> `src/symmetric.py` (+ `src/yearly_counts.py`, `src/career_curves.py`), is
> trained by `run_rq1_symmetric.py` / `run_rq2_symmetric.py`, and reports
> honest numbers (RQ1 holdout ROC-AUC 0.874 / PR-AUC 0.726 after population +
> plausibility filtering; temporal-split PR-AUC ≈0.73; all RQ2 horizons
> discriminating at ROC-AUC 0.86–0.89). The rebuild also surfaced and filtered
> two further class-asymmetric dataset artifacts: a sampling-frame clash on
> thin profiles (founders from company databases vs non-founders from
> institutional researcher lists) and name-collision aggregate profiles
> concentrated in the non-founder class — see
> `production/classifier_symmetric/README.md`. The sections below describe the
> original (superseded) pipeline and are kept for the paper-trail.
## Environment
All work runs in a dedicated conda environment named **`potential`**.
```bash
# Recreate from scratch
conda create -n potential -c conda-forge python=3.11 pandas numpy scikit-learn \
matplotlib seaborn joblib tqdm -y
conda activate potential
pip install xgboost lightgbm catboost shap lifelines imbalanced-learn tabulate
conda install -n potential -c conda-forge pytorch -y # installed via conda, not pip
# Or reproduce the exact resolved environment:
conda env create -f environment.yml
```
> **Why PyTorch via conda and not pip?** Pip's PyTorch wheel bundles its own
> OpenMP runtime, which crashes (`OMP: Error #15 ... libomp.dylib already
> initialized`) when mixed with the conda-forge OpenMP runtime used by numpy /
> scikit-learn / LightGBM on macOS. Installing `pytorch` from `conda-forge`
> shares a single OpenMP runtime with everything else, and it works fine.
Run everything with:
```bash
cd experiments
conda run -n potential python run_rq1.py
conda run -n potential python run_rq2.py
```
> **Known benign warning**: `run_rq1.py`'s SHAP step can print a
> `mutex lock failed` abort trace *after* the pipeline has already finished
> and all result files have been written — it happens during Python
> interpreter shutdown (a threading/OpenMP teardown race between
> SHAP/LightGBM/CatBoost), not during actual computation. Check for the
> `All RQ1 results written to ...` line and the contents of `results/rq1/` to
> confirm success; ignore the trailing stack trace if that line is present.
## Repository layout
```
experiments/
environment.yml # exported conda environment (reproducibility)
src/
config.py # paths, constants, leakage-safe feature allow/deny lists
data.py # leakage-safe loaders + feature-matrix builders for RQ1/RQ2
splits.py # stratified holdout + leave-one-institution-out split helper
outliers.py # two-stage IsolationForest outlier detection
models.py # baseline + advanced/SOTA model factories, stacking ensemble
# (scale-sensitive models wrapped in StandardScaler pipelines)
tuning.py # RandomizedSearchCV hyperparameter search spaces + tune_model()
nn.py # PyTorch MLP baseline (sklearn-style wrapper)
sequence_data.py # founder-only pre-founding activity sequence dataset builder
sequence_models.py # PyTorch LSTM/Transformer sequence regressors (sklearn-style)
evaluate.py # metrics, comparison tables, plots, McNemar test, CV+CI,
# bootstrap CI, calibration curves, stratified-by-group metrics
explain.py # permutation importance + SHAP
survival.py # CoxPH time-to-event modeling for RQ2
run_rq1.py # RQ1 orchestration script
run_rq2.py # RQ2 orchestration script
run_rq1_robustness.py # ablation, CV+CI, tuning, calibration, bootstrap, area-stratified
run_sequence_founders.py # founder-only LSTM/Transformer founding-age prediction pipeline
results/
rq1/ # RQ1 tables, plots, trained model, explainability output
rq2/ # RQ2 tables, trained model, survival summary
rq1_robustness/ # ablation/CV/tuning/calibration/bootstrap/area-stratified output
sequence_founders/ # sequence-model comparison tables + plots
```
`run_rq1.py` / `run_rq2.py` add `src/` to `sys.path` at runtime rather than
relying on an installed package — simplest option for a self-contained
experiments folder that isn't meant to be pip-installed elsewhere.
## Data leakage findings (important)
While auditing `evaluation/datasets_complete` (full-career features, 161 raw
columns) before modeling, two families of columns were found to be
**identically zero for every non-founder row**, i.e. broken/undefined outside
the founder class:
1. `hist_{pub,pat,grant}_FN{+,-}{1..20}` and the no-suffix `hist_{pub,pat,grant}_FN`
columns (activity counts indexed relative to the *founding* year).
2. `{publications,patents,grants,activities}_{before,after}_founding`.
A classifier trained on the raw column set would trivially "solve" RQ1 by
detecting this artifact (non-founders always have 0 there) rather than
learning genuine founder traits. Both families are explicitly excluded via
`config.RQ1_DROP_COLUMNS` (a deny-list built and empirically verified with
`.describe()` on the raw CSVs), leaving 24 legitimate full-career numeric
aggregates (h-index, publications, patents, grants, g-index,
`industry_collab_papers`, etc.) plus 3 research-area categoricals and
`institution`.
The 3 research-area columns (`publication_research_area`,
`patent_research_area`, `grant_research_area`) originally carried 100+ specific
Dimensions codes each (e.g. `"3205 Medical Biochemistry and Metabolomics"`).
One-hot encoding them directly produced ~250 mostly-empty sparse columns, so
`data.build_rq1_matrix` first collapses each to its 2-digit broad parent code
(e.g. `"32"`) before one-hot encoding, reducing RQ1's feature matrix from 248
columns down to **99** while keeping discipline-level signal.
The original repository's non-founder downsampling used `df[:n]` — the first
N rows, not a random sample. This experiments pipeline instead either (a)
trains on the full class-imbalanced data with `class_weight='balanced'` /
`scale_pos_weight` / `auto_class_weights='Balanced'` (RQ1), or (b) uses a
documented, fixed-`random_state` 70/30 `train_test_split` to reserve a
non-founder holdout pool that is never touched during RQ2 training
(`data._nonfounder_pool_split`).
## RQ1 — Founder vs. non-founder classification
**Data**: `evaluation/datasets_complete`, 8 institutions pooled, restricted to
*pre-founding* activity only (see "Data leakage findings" above), with
multivariate outlier rows removed via a two-stage sanity-ceiling +
IsolationForest filter (`src/outliers.py`, 165/16,494 rows flagged). After
leakage-column removal: **16,494 rows, 99 features, 36.8% founders**.
**Split**: single stratified 80/20 holdout (`random_state=42`).
**Models**: `dummy_most_frequent`, `logistic_regression`, `gaussian_nb`, `knn`,
`decision_tree` (baselines); `random_forest`, `svm_rbf`, `xgboost`, `lightgbm`,
`catboost`, a `stacking_ensemble` (RF + XGBoost + LightGBM → logistic
meta-learner), and a PyTorch `torch_mlp` (advanced / SOTA-ish set). The
scale-sensitive models (`logistic_regression`, `gaussian_nb`, `knn`, `svm_rbf`)
are wrapped in a `StandardScaler` pipeline — raw features span very different
ranges (e.g. citation counts vs. binary flags), and without scaling these
models were being penalized relative to the (scale-invariant) tree ensembles.
Tree-based models are intentionally left unscaled.
### Held-out test results (`results/rq1/rq1_model_comparison.csv`)
| model | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc |
|---|---|---|---|---|---|---|---|
| lightgbm | 0.930 | 0.913 | 0.894 | 0.903 | **0.976** | **0.969** | 0.848 |
| stacking_ensemble | 0.927 | 0.897 | 0.906 | 0.901 | 0.975 | 0.968 | 0.843 |
| xgboost | 0.927 | 0.907 | 0.893 | 0.900 | 0.974 | 0.967 | 0.843 |
| catboost | 0.922 | 0.903 | 0.885 | 0.894 | 0.972 | 0.963 | 0.833 |
| torch_mlp | 0.920 | 0.898 | 0.881 | 0.890 | 0.962 | 0.955 | 0.827 |
| random_forest | 0.896 | 0.873 | 0.839 | 0.856 | 0.952 | 0.935 | 0.774 |
| logistic_regression | 0.882 | 0.824 | 0.864 | 0.843 | 0.943 | 0.928 | 0.749 |
| svm_rbf | 0.875 | 0.845 | 0.810 | 0.827 | 0.937 | 0.914 | 0.730 |
| decision_tree | 0.838 | 0.738 | 0.867 | 0.797 | 0.921 | 0.883 | 0.669 |
| knn | 0.818 | 0.816 | 0.654 | 0.726 | 0.881 | 0.821 | 0.601 |
| gaussian_nb | 0.724 | 0.806 | 0.331 | 0.469 | 0.816 | 0.721 | 0.383 |
| dummy_most_frequent | 0.632 | 0.000 | 0.000 | 0.000 | 0.500 | 0.368 | 0.000 |
Best baseline: `logistic_regression` (PR-AUC 0.928). Best overall: `lightgbm`
(PR-AUC 0.969). A McNemar test between the two
(`results/rq1/mcnemar_baseline_vs_best.csv`) gives χ²=83.8, p≈5.4e-20 — the
gain from advanced/ensembled models over the best linear baseline is
statistically significant, not noise. (These held-out numbers, and the ones
below, are corroborated by the independent 5-fold CV and bootstrap-CI results
in "Robustness & foolproofing checks" above — e.g. lightgbm's 5-fold PR-AUC
of 0.970 [0.967, 0.973] matches this single-split PR-AUC of 0.969 closely.)
### Cross-institution generalization (leave-one-institution-out)
Using the same 99-feature matrix but rebuilt **without** the institution
one-hot columns (`include_institution=False`), each of the 3 top tree-based
models is trained on 7 institutions and tested on the 8th, in turn
(`results/rq1/rq1_leave_one_institution_out.csv`). Mean across institutions:
| model | roc_auc | pr_auc | mcc |
|---|---|---|---|
| xgboost | 0.953 | 0.922 | 0.779 |
| lightgbm | 0.952 | 0.922 | 0.782 |
| random_forest | 0.940 | 0.900 | 0.738 |
Generalization to an unseen institution is nearly as strong as in-distribution
performance (compare to the ~0.97 ROC-AUC / ~0.97 PR-AUC of the pooled
holdout above) — the learned founder signal is not merely an artifact of
institution-specific quirks. `muenchen` and `toronto` are consistently the
weakest held-out institutions (ROC-AUC ~0.85), and `telaviv` the strongest
(ROC-AUC ~0.99) — see the per-institution breakdown in the CSV for the full
picture; this is likely driven by per-institution sample size and founder
rate rather than anything model-specific.
### Explainability (`results/rq1/permutation_importance.csv`, `plots/shap_summary.png`)
Top permutation-importance features on the best tree model (LightGBM), by
mean drop in PR-AUC when permuted:
1. `publications` (0.444)
2. `pub_citation_sum` (0.064)
3. `last_patent_year` (0.061)
4. `i10-index` (0.053)
5. `pub_citation_mean` (0.042)
6. `g-index` (0.036)
7. `activities_total` (0.032)
8. `pat_citation_mean` (0.024)
9. `grants` (0.015)
10. `first_publication_year` (0.013)
With the pre-founding fix applied, `publications` (pre-founding publication
count) is now overwhelmingly the dominant signal, followed by citation-impact
measures and patenting recency. This is a notably cleaner, more concentrated
importance profile than before the fix (previously the top feature accounted
for ~0.055 importance with a long, flat tail) — consistent with the ablation
finding that the pre-founding restriction sharpens rather than removes signal.
## RQ2 — Time-to-founding prediction from a truncated profile
**Data**: curated 13-column half-profile founder datasets at offsets 1/2/3
years before founding (`evaluation/datasets_halfprofiles_offset{1,2,3}`),
paired with non-founders from `datasets_complete` using the *same* curated
columns (legitimate/non-degenerate for non-founders too). Non-founders per
institution are split 70/30 once (fixed seed) into a training pool (offsets
1-3) and a holdout pool reserved exclusively for horizon-validation, so no
individual is ever seen in both training and generalization testing.
### Per-offset comparison (`results/rq2/rq2_offset_comparison.csv`)
PR-AUC by model × offset (years before founding):
| model | offset=1 | offset=2 | offset=3 |
|---|---|---|---|
| lightgbm | 0.906 | 0.908 | **0.915** |
| xgboost | 0.908 | **0.910** | 0.914 |
| random_forest | 0.905 | 0.906 | 0.910 |
| decision_tree | 0.843 | 0.844 | 0.860 |
| logistic_regression | 0.829 | 0.830 | 0.837 |
| dummy_most_frequent | 0.434 | 0.434 | 0.434 |
Predictive power increases (modestly) the closer the profile snapshot is to
the actual founding event, as expected, and gradient-boosted trees clearly
beat the linear/dummy baselines at every horizon.
### Pooled multi-horizon model + extrapolation validation
A single LightGBM model is trained on offsets 1-3 pooled (with `offset` as an
explicit feature) and evaluated on:
- its own held-out test split (in-distribution): **ROC-AUC 0.954, PR-AUC 0.947**
- `datasets_halfprofiles_validation_offset3` — an **in-range** horizon never
used for training these specific rows: **ROC-AUC 0.949, PR-AUC 0.945**
- `datasets_halfprofiles_validation_offset5` — an **extrapolation** horizon
(offset=5 was never seen during training at all): **ROC-AUC 0.942, PR-AUC 0.941**
(`results/rq2/rq2_horizon_validation.csv`.) The degradation from in-range to
extrapolation is small (ROC-AUC 0.949 → 0.942), but note the caveat: tree
ensembles cannot truly extrapolate a numeric feature (`offset`) beyond the
range seen in training, so this result should be read as "still works
reasonably at a nearby unseen horizon," not proof of extrapolation to
arbitrarily distant horizons.
### Survival analysis (CoxPH) as a complementary framing
Fixed-horizon classification requires picking specific offsets in advance.
As a principled alternative, `src/survival.py` fits a Cox proportional-hazards
model where the event is "founded a company" and the duration is years from
first publication to founding (or to last observed publication, censored, for
non-founders). Covariates are full-career aggregates (a simplification since
they are not truly time-varying — see the docstring in `survival.py` for this
known limitation).
- **Concordance index (held-out): 0.715** — the model ranks who-founds-sooner
meaningfully better than chance, but well below the classifiers above.
- **P(founds within 5y) AUC on eligible held-out rows: 0.656** (landmark
analysis avoiding immortal-time bias), versus the pooled classifier's
extrapolation ROC-AUC of 0.942 at the same horizon.
The purpose-built fixed-horizon classifier substantially outperforms CoxPH
here, most likely because: (a) the classifier gets to use the curated,
horizon-specific half-profile features directly, while CoxPH's covariates are
full-career aggregates rather than genuinely time-varying; and (b) CoxPH's
proportional-hazards assumption is a real constraint the classifiers don't
need to satisfy. The full `cph.print_summary()` (coefficients, hazard ratios,
p-values) is captured in the run log and shows `pub_citation_sum`,
`patents`/`pat_citation_sum`, and `affiliations` as the strongest positive
hazard-ratio covariates, consistent with the RQ1 permutation-importance
findings.
## Robustness & foolproofing checks (RQ1)
Beyond a single train/test split, `run_rq1_robustness.py` runs a battery of
checks aimed at making the RQ1 result trustworthy rather than a lucky split,
and at answering two specific questions: *does the pre-founding-leakage fix
actually help or hurt?* and *should the model be split up by research area?*
All numbers below come from actual executed runs; results are saved under
`results/rq1_robustness/`.
### Ablation: does the pre-founding fix help or hurt?
An earlier audit found that the raw full-career activity totals technically
include activity *after* founding (reverse causation — the model could partly
"see the future"). The fix restricts these aggregates to pre-founding
activity only. Comparing the two directly (`ablation_prefounding_fix.csv`):
| variant | n | roc_auc | pr_auc |
|---|---|---|---|
| fix ON (pre-founding only) | 16,494 | **0.976** | **0.969** |
| fix OFF (raw lifetime totals) | 16,466 | 0.918 | 0.886 |
~~The fix *improves* performance, which is counter to the naive expectation
that "removing a leak should hurt." The interpretation: the raw lifetime
totals aren't a source of illegitimately-helpful signal here so much as
*noise* — removing that dilution helps.~~
**Superseded (2026-08):** that interpretation was wrong. The +6-point jump is
the tell, not noise removal: truncating one class's observation window and not
the other's makes "small totals" a class marker, which a production probe
confirmed (P(founder) strictly decreasing in publications, at every threshold).
The honest comparison requires truncating *both* classes at a matched index
date — see the redesign note at the top and `run_rq1_symmetric.py`, which
lands at ROC-AUC ≈0.91 with a domain-plausible (hump-shaped) relationship
between output and founding probability.
### 5-fold cross-validation with 95% confidence intervals
(`cv_summary_mean.csv`; per-fold detail in `cv_<model>.csv`.)
| model | pr_auc (95% CI) | roc_auc (95% CI) |
|---|---|---|
| lightgbm | 0.970 [0.967, 0.973] | 0.978 [0.976, 0.980] |
| xgboost | 0.968 [0.965, 0.972] | 0.977 [0.974, 0.980] |
| random_forest | 0.936 [0.930, 0.942] | 0.953 [0.947, 0.958] |
| logistic_regression | 0.923 [0.917, 0.928] | 0.942 [0.936, 0.947] |
| dummy_most_frequent | 0.368 [0.368, 0.369] | 0.500 |
Tight confidence intervals across folds confirm the held-out results above
aren't an artifact of one lucky split.
### Hyperparameter tuning (RandomizedSearchCV)
(`tuning_comparison.csv`, `tuning_best_params.json`.) 20-iteration randomized
search, 3-fold CV, optimizing PR-AUC:
| model | pr_auc default → tuned | roc_auc default → tuned |
|---|---|---|
| random_forest | 0.935 → **0.953** | 0.952 → 0.965 |
| xgboost | 0.967 → **0.971** | 0.974 → 0.978 |
| lightgbm | 0.969 → **0.971** | 0.976 → 0.978 |
Tuning gives a modest but consistent lift for every model, largest for
random_forest. The tuned LightGBM is used as the reference model for the
calibration and bootstrap analyses below.
### Calibration (`plots/calibration.png`)
Reliability diagrams (predicted probability vs. observed founder rate, in
quantile bins) for logistic regression and both default/tuned LightGBM all
track close to the diagonal — the model's probability outputs are
meaningfully interpretable as probabilities, not just a ranking score.
LightGBM is slightly better calibrated than logistic regression in the
low-probability region.
### Bootstrap confidence intervals (tuned LightGBM, 1000 resamples)
(`bootstrap_ci.csv`.) Percentile bootstrap on the held-out test set:
| metric | estimate | 95% CI |
|---|---|---|
| accuracy | 0.937 | [0.929, 0.945] |
| precision | 0.926 | [0.911, 0.941] |
| recall | 0.900 | [0.883, 0.916] |
| f1 | 0.913 | [0.901, 0.924] |
| roc_auc | 0.978 | [0.973, 0.982] |
| pr_auc | 0.971 | [0.965, 0.976] |
| mcc | 0.863 | [0.845, 0.881] |
### Does research area affect the results? (stratified evaluation + per-area specialists)
This was a specific concern raised: founders in different research areas
might look systematically different, and pooling everyone together could hide
or distort area-specific effects. Two checks were run.
**1. Stratified evaluation** — the pooled tuned model's held-out predictions
were broken out by broad (2-digit) research area (`area_stratified_pooled_model.csv`,
22 groups, N from 7 to 1,166). The model performs well **uniformly** across
areas — no area catastrophically fails. Largest groups: area "32" (N=1,166)
roc_auc=0.967/pr_auc=0.936; area "31" (N=377) roc_auc=0.973/pr_auc=0.936; area
"40" (N=244) roc_auc=0.962/pr_auc=0.964. Smaller areas (N<100) show more
variance (expected from smaller sample sizes) but generally still PR-AUC
0.91-1.0.
**2. Per-area specialist vs. pooled model** — for each of the 7 largest
research areas (N≥500), a dedicated model trained *only* on that area's data
was compared against the pooled model evaluated on the same area's subset
(`per_area_specialist_vs_pooled.csv`):
| area | N (specialist train) | specialist pr_auc | pooled pr_auc |
|---|---|---|---|
| 32 | 4,721 | 0.929 | **0.936** |
| 40 | 1,847 | 0.933 | **0.964** |
| 51 | 1,012 | 0.848 | **0.941** |
| 34 | 462 | 0.909 | **0.965** |
**The pooled model beats the dedicated specialist on every single area
tested.** Splitting the model by research area hurts performance — the loss
of training data per specialist (hundreds to a few thousand rows, vs. ~13k
for the pooled model) outweighs any benefit from area-specific
specialization. **Conclusion: keep research area as a pooled feature, don't
split the model by area.**
## Sequence modeling — can a transformer predict *when* someone will found a company?
The activity-count aggregates used in RQ1/RQ2 discard *order* — e.g. two
founders with the same total pre-founding publication count look identical
even if one had a burst of activity right before founding and the other had
a burst 15 years earlier. To test whether sequence order carries additional
signal, `run_sequence_founders.py` builds true year-by-year sequences and
compares an LSTM and a Transformer against simpler baselines on the task of
predicting **founding_age** (years from first publication to founding) from
the preceding 20-year window of publication/patent/grant activity.
### Data construction and a data-quality fix
`founding_age = founded_on − first_publication_year` computed naively across
all 6,158 founders gave an absurd range (**−2,022 to +2,022**), revealing
that a meaningful subset of founders have sentinel/placeholder year values
(not just non-founders, as previously found). Fix: restrict to founders where
*both* `founded_on` and `first_publication_year` fall in a plausible
`[1950, 2024]` range (drops 1,741/6,158 implausible founders → 4,417 remain),
then further restrict to `founding_age` in `[1, 20]` since the 20-year
lookback window structurally can't resolve longer careers — this is a
deliberate, documented scoping decision, not a hidden limitation. **2,298
founders** remain for the sequence task (`src/sequence_data.py`).
### Results (`results/sequence_founders/`)
| model | mae | rmse | r2 |
|---|---|---|---|
| transformer | **0.180** | 0.269 | 0.998 |
| lstm | 0.208 | **0.258** | 0.998 |
| naive_first_activity (heuristic) | 0.554 | 1.885 | 0.888 |
| aggregate_rf (summary stats, no order) | 2.571 | 3.424 | 0.630 |
(`naive_first_activity` is a zero-parameter heuristic: founding_age is
inferred purely from how many leading zero-activity years precede the first
nonzero year. `aggregate_rf` is a random forest on 9 summary features — total,
nonzero-year count, and last-3-years sum per channel — deliberately
*discarding* order, to isolate the value of order/position information.)
**Honest interpretation**: the task has strong structural determinism — even
the naive heuristic gets R²=0.888 just by counting leading zero years, so
this isn't a "hard AI problem" in the sense of needing deep learning to make
it tractable at all. The meaningful findings are: (1) the LSTM/Transformer
are far more **robust** than the brittle heuristic (~3x lower MAE, 0.55 → 0.18–0.21
— the heuristic breaks badly on a single spurious early activity blip, the
sequence models don't), and (2) sequence models vastly outperform the
non-positional aggregate-stats baseline (R² 0.63 → 0.998), proving that
**order/position information, not just totals, is what the extra modeling
power is capturing.** This is reported as a robustness/precision gain over
simpler methods, not an overclaimed "novel predictive capability."
### Why there's no founder-vs-non-founder sequence classifier
The natural next step — building comparable sequences for non-founders too,
to train a founder-vs-non-founder *sequence* classifier (a more direct test
of the "sequential transformer" idea) — was investigated and found **not
feasible with the data available in this workspace**, for two independent,
confirmed reasons:
1. Non-founders' `hist_{pub,pat,grant}_FN[+-]N` columns in
`evaluation/datasets_complete` are computed by
`extraction/non_founders_scripts.ipynb`'s `generate_history(...,
nonstartup=True)`, which hardcodes `founded_year = 0` for non-founders —
these columns are anchored at literal calendar year 0 and are **entirely
zero** (verified via `.sum()==0` / `.max()==0` across every non-founder row).
They were never usable for this and are correctly excluded from
`config.RQ1_NUMERIC_COLUMNS` already (no leakage risk in the existing RQ1
model).
2. As a fallback, the raw `dimensions_data/{institution}_papers.csv` files
were checked directly for a possible reconstruction path. These files
turn out to contain **only founders' publication records** — verified on
Stanford by matching tracked researcher names against the raw file's
`author_people` column: **85.8%** of founders (1,580/1,842) match, versus
**0%** of non-founders (0/2,482). No raw non-founder paper/patent pull
files exist anywhere in the workspace (only pre-aggregated
`*_nonfounders_features_dataset.csv` summaries) — the underlying raw data
would need to be re-collected from the Dimensions API, which is out of
scope here.
Given this, the founder-only founding-age sequence model above is the
deliverable for the "sequential transformer" investigation. Building a
founder-vs-non-founder sequence classifier would require re-querying the
Dimensions API for non-founders' raw, per-year publication/patent history.
(Side note for any future data-collection work: `dimensions_data/*_papers.csv`
already has a pre-matched flat `author_people` name column + numeric `year`
column, exploded to one row per paper per tracked founder — reconstructing a
person's per-year totals is a simple `groupby(["author_people","year"]).size()`
away, no need to fuzzy-match the nested `authors` JSON-like list yourself.
Loading just `usecols=["author_people","year"]` is fast — about 10s even for
a 4.4GB/600K-row file — and reproduces `datasets_complete`'s `publications`
totals almost exactly, 98.1% exact match, correlation 0.99999997, for the
founders whose names do match.)
## Answering the research questions
- **RQ1**: Yes. LightGBM classifies founders vs. non-founders with ROC-AUC
0.976 / PR-AUC 0.969 on held-out data, a statistically significant
improvement (McNemar p≈5.4e-20) over the best simple baseline (logistic
regression, ROC-AUC 0.943), and generalizes well to institutions unseen
during training (mean ROC-AUC 0.95 under leave-one-institution-out).
- **RQ2**: Yes, with caveats. Gradient-boosted models predict founding within
a 1-3 year horizon from truncated profiles with ROC-AUC ≈ 0.91-0.92, and a
pooled multi-horizon model still achieves ROC-AUC 0.94 at a 5-year horizon
it never trained on directly (small degradation vs. 0.95 in-distribution).
A CoxPH survival model provides a complementary, assumption-explicit
time-to-event view but underperforms the direct classifier (concordance
0.715, 5-year AUC 0.656), which is expected given it uses less
horizon-specific information.
- **Is this robust, or a lucky split?** The RQ1 result holds up under 5-fold
CV (tight 95% CIs), bootstrap resampling, hyperparameter tuning, and
calibration checks — see "Robustness & foolproofing checks" above. The
pre-founding leakage fix specifically *improves* performance rather than
degrading it (0.976 vs 0.918 ROC-AUC), and the model performs uniformly
well across all 22 research-area groups, with a pooled model beating
every dedicated per-area specialist tested.
- **Does sequence order (not just totals) matter?** Yes. LSTM/Transformer
models predicting founding_age from ordered 20-year activity sequences
achieve R²=0.998, versus R²=0.63 for an equivalent non-positional
aggregate-stats model — see "Sequence modeling" above. A comparable
founder-vs-non-founder sequence classifier was investigated but found
infeasible with data available in this workspace (non-founders lack any
usable raw or pre-aggregated sequence data).
@@ -0,0 +1,404 @@
{
"meta":{"test_sets":[],"test_metrics":[],"learn_metrics":[{"best_value":"Min","name":"Logloss"}],"launch_mode":"Train","parameters":"","iteration_count":400,"learn_sets":["learn"],"name":"experiment"},
"iterations":[
{"learn":[0.6752574527],"iteration":0,"passed_time":0.001151431995,"remaining_time":0.4594213658},
{"learn":[0.6590158329],"iteration":1,"passed_time":0.002307072378,"remaining_time":0.4591074033},
{"learn":[0.6439053461],"iteration":2,"passed_time":0.003364919794,"remaining_time":0.4452910527},
{"learn":[0.6300318652],"iteration":3,"passed_time":0.00447839295,"remaining_time":0.443360902},
{"learn":[0.6176080869],"iteration":4,"passed_time":0.005583615996,"remaining_time":0.4411056637},
{"learn":[0.6072057723],"iteration":5,"passed_time":0.006660005325,"remaining_time":0.4373403497},
{"learn":[0.5978862443],"iteration":6,"passed_time":0.007736852993,"remaining_time":0.4343690323},
{"learn":[0.5892253742],"iteration":7,"passed_time":0.008886826635,"remaining_time":0.4354545051},
{"learn":[0.5808671388],"iteration":8,"passed_time":0.009982507887,"remaining_time":0.4336845093},
{"learn":[0.5732077946],"iteration":9,"passed_time":0.01101731333,"remaining_time":0.4296752199},
{"learn":[0.5661847426],"iteration":10,"passed_time":0.01213249484,"remaining_time":0.4290491358},
{"learn":[0.5600289293],"iteration":11,"passed_time":0.01322150934,"remaining_time":0.4274954686},
{"learn":[0.5530962469],"iteration":12,"passed_time":0.01425406475,"remaining_time":0.424332543},
{"learn":[0.5481010119],"iteration":13,"passed_time":0.01530245371,"remaining_time":0.4219105093},
{"learn":[0.5434953481],"iteration":14,"passed_time":0.0164163852,"remaining_time":0.4213538869},
{"learn":[0.5404101637],"iteration":15,"passed_time":0.01755581704,"remaining_time":0.4213396089},
{"learn":[0.5361341938],"iteration":16,"passed_time":0.01863220637,"remaining_time":0.4197726493},
{"learn":[0.5317763411],"iteration":17,"passed_time":0.01970834569,"remaining_time":0.4182548919},
{"learn":[0.5268163473],"iteration":18,"passed_time":0.02082269386,"remaining_time":0.4175498084},
{"learn":[0.5245315654],"iteration":19,"passed_time":0.02184062408,"remaining_time":0.4149718575},
{"learn":[0.5205327316],"iteration":20,"passed_time":0.02292138846,"remaining_time":0.413676487},
{"learn":[0.5177701576],"iteration":21,"passed_time":0.02400340287,"remaining_time":0.4124221038},
{"learn":[0.5137445796],"iteration":22,"passed_time":0.02504066668,"remaining_time":0.4104491886},
{"learn":[0.5105456834],"iteration":23,"passed_time":0.02616559832,"remaining_time":0.409927707},
{"learn":[0.5080257838],"iteration":24,"passed_time":0.02732961381,"remaining_time":0.4099442072},
{"learn":[0.5054934276],"iteration":25,"passed_time":0.02844792037,"remaining_time":0.409212393},
{"learn":[0.503296382],"iteration":26,"passed_time":0.02956914363,"remaining_time":0.4084922434},
{"learn":[0.5006211207],"iteration":27,"passed_time":0.03064232458,"remaining_time":0.4071051694},
{"learn":[0.4985921934],"iteration":28,"passed_time":0.03184809063,"remaining_time":0.4074359181},
{"learn":[0.4961473489],"iteration":29,"passed_time":0.03302202292,"remaining_time":0.4072716161},
{"learn":[0.4946219665],"iteration":30,"passed_time":0.03417528828,"remaining_time":0.4067961733},
{"learn":[0.4925272328],"iteration":31,"passed_time":0.03534963724,"remaining_time":0.4065208283},
{"learn":[0.4898936852],"iteration":32,"passed_time":0.03647952728,"remaining_time":0.405696561},
{"learn":[0.4884288887],"iteration":33,"passed_time":0.03768625168,"remaining_time":0.4056814152},
{"learn":[0.4863838977],"iteration":34,"passed_time":0.03874026571,"remaining_time":0.4040056281},
{"learn":[0.4845515615],"iteration":35,"passed_time":0.03985815559,"remaining_time":0.4030102399},
{"learn":[0.4824883347],"iteration":36,"passed_time":0.04112954752,"remaining_time":0.4035142094},
{"learn":[0.4804030524],"iteration":37,"passed_time":0.04225827088,"remaining_time":0.4025656331},
{"learn":[0.4785388461],"iteration":38,"passed_time":0.04337724411,"remaining_time":0.4015175672},
{"learn":[0.4770942099],"iteration":39,"passed_time":0.04458921857,"remaining_time":0.4013029672},
{"learn":[0.4756384413],"iteration":40,"passed_time":0.04566781626,"remaining_time":0.3998718546},
{"learn":[0.4747696424],"iteration":41,"passed_time":0.04680949813,"remaining_time":0.398995246},
{"learn":[0.4736129814],"iteration":42,"passed_time":0.04803018105,"remaining_time":0.3987622008},
{"learn":[0.4725400991],"iteration":43,"passed_time":0.04913252905,"remaining_time":0.397526826},
{"learn":[0.4712424271],"iteration":44,"passed_time":0.05019441819,"remaining_time":0.3959781879},
{"learn":[0.4701835699],"iteration":45,"passed_time":0.05135301695,"remaining_time":0.3951949565},
{"learn":[0.4690223311],"iteration":46,"passed_time":0.05250178224,"remaining_time":0.3943218964},
{"learn":[0.4682401998],"iteration":47,"passed_time":0.05360408858,"remaining_time":0.3930966496},
{"learn":[0.4663252757],"iteration":48,"passed_time":0.05468322794,"remaining_time":0.3917104696},
{"learn":[0.4651951732],"iteration":49,"passed_time":0.05579611776,"remaining_time":0.3905728243},
{"learn":[0.4643129126],"iteration":50,"passed_time":0.05688575727,"remaining_time":0.3892770448},
{"learn":[0.4634919617],"iteration":51,"passed_time":0.05797056337,"remaining_time":0.3879568472},
{"learn":[0.4627711631],"iteration":52,"passed_time":0.05911424526,"remaining_time":0.387031002},
{"learn":[0.4618109601],"iteration":53,"passed_time":0.06020113473,"remaining_time":0.3857331966},
{"learn":[0.460959898],"iteration":54,"passed_time":0.06127473236,"remaining_time":0.3843596848},
{"learn":[0.4594625002],"iteration":55,"passed_time":0.06230199603,"remaining_time":0.3827122613},
{"learn":[0.4584854101],"iteration":56,"passed_time":0.06340980245,"remaining_time":0.3815712674},
{"learn":[0.4570498581],"iteration":57,"passed_time":0.06447248326,"remaining_time":0.3801653323},
{"learn":[0.455880592],"iteration":58,"passed_time":0.0655374141,"remaining_time":0.3787840374},
{"learn":[0.4550663099],"iteration":59,"passed_time":0.06660280329,"remaining_time":0.3774158853},
{"learn":[0.4542687957],"iteration":60,"passed_time":0.06766948415,"remaining_time":0.3760648382},
{"learn":[0.4535032807],"iteration":61,"passed_time":0.06875341525,"remaining_time":0.3748170057},
{"learn":[0.4526542794],"iteration":62,"passed_time":0.06989509711,"remaining_time":0.3738832973},
{"learn":[0.4514785115],"iteration":63,"passed_time":0.07101169531,"remaining_time":0.3728114004},
{"learn":[0.4507802979],"iteration":64,"passed_time":0.07211233496,"remaining_time":0.3716558802},
{"learn":[0.4491962574],"iteration":65,"passed_time":0.07314830709,"remaining_time":0.3701747662},
{"learn":[0.4485895185],"iteration":66,"passed_time":0.07426457195,"remaining_time":0.3691060068},
{"learn":[0.4478692379],"iteration":67,"passed_time":0.07539092027,"remaining_time":0.3680850813},
{"learn":[0.4463417221],"iteration":68,"passed_time":0.07652310201,"remaining_time":0.3670890836},
{"learn":[0.4452451739],"iteration":69,"passed_time":0.07766007548,"remaining_time":0.3661117844},
{"learn":[0.4444830618],"iteration":70,"passed_time":0.07871713122,"remaining_time":0.3647596644},
{"learn":[0.4435724065],"iteration":71,"passed_time":0.07978656212,"remaining_time":0.3634721163},
{"learn":[0.4420487712],"iteration":72,"passed_time":0.08081545082,"remaining_time":0.3620089372},
{"learn":[0.441478802],"iteration":73,"passed_time":0.08198309136,"remaining_time":0.3611687538},
{"learn":[0.4410124289],"iteration":74,"passed_time":0.08309781453,"remaining_time":0.3600905296},
{"learn":[0.4401138277],"iteration":75,"passed_time":0.08419895419,"remaining_time":0.3589534363},
{"learn":[0.4394535191],"iteration":76,"passed_time":0.08528813536,"remaining_time":0.3577671133},
{"learn":[0.4388369011],"iteration":77,"passed_time":0.08643506729,"remaining_time":0.3568216881},
{"learn":[0.4379911776],"iteration":78,"passed_time":0.08757429079,"remaining_time":0.3558398398},
{"learn":[0.4374327656],"iteration":79,"passed_time":0.08871480597,"remaining_time":0.3548592239},
{"learn":[0.4364149666],"iteration":80,"passed_time":0.08976015322,"remaining_time":0.3534998627},
{"learn":[0.4358972456],"iteration":81,"passed_time":0.09086350124,"remaining_time":0.3523730902},
{"learn":[0.4352582245],"iteration":82,"passed_time":0.09194689067,"remaining_time":0.3511706547},
{"learn":[0.4345396736],"iteration":83,"passed_time":0.09300957148,"remaining_time":0.3498931499},
{"learn":[0.4341003864],"iteration":84,"passed_time":0.09409496093,"remaining_time":0.3487048552},
{"learn":[0.4332298157],"iteration":85,"passed_time":0.09523405943,"remaining_time":0.3477150542},
{"learn":[0.43230384],"iteration":86,"passed_time":0.09630836539,"remaining_time":0.3464887169},
{"learn":[0.4316562364],"iteration":87,"passed_time":0.09744271383,"remaining_time":0.3454787127},
{"learn":[0.4309618622],"iteration":88,"passed_time":0.09848635272,"remaining_time":0.3441489404},
{"learn":[0.4298558624],"iteration":89,"passed_time":0.09950936634,"remaining_time":0.3427544841},
{"learn":[0.4291876524],"iteration":90,"passed_time":0.100633923,"remaining_time":0.3417129912},
{"learn":[0.4282528408],"iteration":91,"passed_time":0.1017303959,"remaining_time":0.3405756732},
{"learn":[0.4277131957],"iteration":92,"passed_time":0.10278841,"remaining_time":0.3393122781},
{"learn":[0.4271829294],"iteration":93,"passed_time":0.1038367156,"remaining_time":0.3380216487},
{"learn":[0.4264580876],"iteration":94,"passed_time":0.1049022298,"remaining_time":0.3367913693},
{"learn":[0.4253379692],"iteration":95,"passed_time":0.1059805358,"remaining_time":0.3356050301},
{"learn":[0.424511763],"iteration":96,"passed_time":0.107145843,"remaining_time":0.3346926848},
{"learn":[0.4239388347],"iteration":97,"passed_time":0.1083300671,"remaining_time":0.3338334721},
{"learn":[0.4232630534],"iteration":98,"passed_time":0.1094859575,"remaining_time":0.3328815475},
{"learn":[0.4226485557],"iteration":99,"passed_time":0.1106647232,"remaining_time":0.3319941695},
{"learn":[0.4222437514],"iteration":100,"passed_time":0.1117923632,"remaining_time":0.3309496692},
{"learn":[0.4213299083],"iteration":101,"passed_time":0.1128746276,"remaining_time":0.3297709708},
{"learn":[0.4208753627],"iteration":102,"passed_time":0.1139770589,"remaining_time":0.3286522961},
{"learn":[0.420347864],"iteration":103,"passed_time":0.1151212408,"remaining_time":0.3276527624},
{"learn":[0.4191908122],"iteration":104,"passed_time":0.1161755049,"remaining_time":0.326397847},
{"learn":[0.4183297442],"iteration":105,"passed_time":0.1172568109,"remaining_time":0.3252217209},
{"learn":[0.417987752],"iteration":106,"passed_time":0.1184834106,"remaining_time":0.3244452271},
{"learn":[0.4174588649],"iteration":107,"passed_time":0.1196537595,"remaining_time":0.3235083127},
{"learn":[0.4169787866],"iteration":108,"passed_time":0.120715107,"remaining_time":0.3222761113},
{"learn":[0.4159189441],"iteration":109,"passed_time":0.1218433303,"remaining_time":0.3212233254},
{"learn":[0.4153188878],"iteration":110,"passed_time":0.1229131362,"remaining_time":0.3200170844},
{"learn":[0.4148918317],"iteration":111,"passed_time":0.1240373595,"remaining_time":0.3189532102},
{"learn":[0.4144564688],"iteration":112,"passed_time":0.1251508743,"remaining_time":0.3178610702},
{"learn":[0.4138592532],"iteration":113,"passed_time":0.1262253053,"remaining_time":0.3166705028},
{"learn":[0.4133895004],"iteration":114,"passed_time":0.1273423202,"remaining_time":0.3155874892},
{"learn":[0.4127703464],"iteration":115,"passed_time":0.1285151691,"remaining_time":0.3146405865},
{"learn":[0.4124298162],"iteration":116,"passed_time":0.1297458938,"remaining_time":0.3138298116},
{"learn":[0.4120395574],"iteration":117,"passed_time":0.1308234915,"remaining_time":0.3126459713},
{"learn":[0.4107360285],"iteration":118,"passed_time":0.1318712555,"remaining_time":0.3113934688},
{"learn":[0.4101591941],"iteration":119,"passed_time":0.1329510198,"remaining_time":0.3102190463},
{"learn":[0.4092665733],"iteration":120,"passed_time":0.1340602013,"remaining_time":0.3091140178},
{"learn":[0.4088576793],"iteration":121,"passed_time":0.135163341,"remaining_time":0.307995154},
{"learn":[0.408361342],"iteration":122,"passed_time":0.1362857726,"remaining_time":0.3069199919},
{"learn":[0.4078673303],"iteration":123,"passed_time":0.137447538,"remaining_time":0.3059316169},
{"learn":[0.4073910152],"iteration":124,"passed_time":0.1386097202,"remaining_time":0.3049413844},
{"learn":[0.4066843028],"iteration":125,"passed_time":0.1397284017,"remaining_time":0.303853826},
{"learn":[0.4062068195],"iteration":126,"passed_time":0.1408698336,"remaining_time":0.3028146817},
{"learn":[0.4054839673],"iteration":127,"passed_time":0.1420183489,"remaining_time":0.3017889914},
{"learn":[0.4049627816],"iteration":128,"passed_time":0.1431889478,"remaining_time":0.3008077896},
{"learn":[0.4042386686],"iteration":129,"passed_time":0.1442632954,"remaining_time":0.2996237674},
{"learn":[0.4036896032],"iteration":130,"passed_time":0.1453401431,"remaining_time":0.2984465534},
{"learn":[0.4030055463],"iteration":131,"passed_time":0.1463643234,"remaining_time":0.2971639293},
{"learn":[0.4025982201],"iteration":132,"passed_time":0.1475024636,"remaining_time":0.2961139682},
{"learn":[0.4021507256],"iteration":133,"passed_time":0.148610145,"remaining_time":0.2950022281},
{"learn":[0.4017130107],"iteration":134,"passed_time":0.1497692437,"remaining_time":0.2939914784},
{"learn":[0.4010693391],"iteration":135,"passed_time":0.1509060922,"remaining_time":0.2929353554},
{"learn":[0.400549588],"iteration":136,"passed_time":0.1520051485,"remaining_time":0.2918055041},
{"learn":[0.3999916469],"iteration":137,"passed_time":0.1530488291,"remaining_time":0.2905709653},
{"learn":[0.3996655064],"iteration":138,"passed_time":0.1542111362,"remaining_time":0.2895619176},
{"learn":[0.3993175997],"iteration":139,"passed_time":0.1553874019,"remaining_time":0.2885766034},
{"learn":[0.3989923873],"iteration":140,"passed_time":0.1565616258,"remaining_time":0.2875848304},
{"learn":[0.3985453884],"iteration":141,"passed_time":0.1576826824,"remaining_time":0.2864938878},
{"learn":[0.3980582085],"iteration":142,"passed_time":0.1588619064,"remaining_time":0.2855070626},
{"learn":[0.3978472172],"iteration":143,"passed_time":0.1599966715,"remaining_time":0.2844385272},
{"learn":[0.3973697391],"iteration":144,"passed_time":0.1611236449,"remaining_time":0.2833553755},
{"learn":[0.3970929708],"iteration":145,"passed_time":0.1622325346,"remaining_time":0.282240163},
{"learn":[0.3966356443],"iteration":146,"passed_time":0.1633921751,"remaining_time":0.281212383},
{"learn":[0.3962418114],"iteration":147,"passed_time":0.1644628977,"remaining_time":0.2800314204},
{"learn":[0.3958183212],"iteration":148,"passed_time":0.1656396633,"remaining_time":0.2790305738},
{"learn":[0.3952962072],"iteration":149,"passed_time":0.1667435114,"remaining_time":0.2779058523},
{"learn":[0.3947786724],"iteration":150,"passed_time":0.1677856502,"remaining_time":0.2766796484},
{"learn":[0.3942251128],"iteration":151,"passed_time":0.1688929983,"remaining_time":0.2755622604},
{"learn":[0.393510771],"iteration":152,"passed_time":0.1706222297,"remaining_time":0.275448959},
{"learn":[0.3931935538],"iteration":153,"passed_time":0.1716946189,"remaining_time":0.2742654303},
{"learn":[0.3929263145],"iteration":154,"passed_time":0.1728882598,"remaining_time":0.2732749913},
{"learn":[0.3921994504],"iteration":155,"passed_time":0.1739467323,"remaining_time":0.2720705299},
{"learn":[0.3918641893],"iteration":156,"passed_time":0.1750668305,"remaining_time":0.2709633109},
{"learn":[0.391568347],"iteration":157,"passed_time":0.1762223459,"remaining_time":0.2699101753},
{"learn":[0.3907576665],"iteration":158,"passed_time":0.1772855684,"remaining_time":0.2687158615},
{"learn":[0.3900011029],"iteration":159,"passed_time":0.1783590827,"remaining_time":0.267538624},
{"learn":[0.3896939448],"iteration":160,"passed_time":0.1793802212,"remaining_time":0.2662849247},
{"learn":[0.3892669751],"iteration":161,"passed_time":0.1805231531,"remaining_time":0.2652130274},
{"learn":[0.3887156987],"iteration":162,"passed_time":0.1816665017,"remaining_time":0.2641408644},
{"learn":[0.3882799657],"iteration":163,"passed_time":0.1828028501,"remaining_time":0.26305776},
{"learn":[0.3878736136],"iteration":164,"passed_time":0.1839560322,"remaining_time":0.2619979852},
{"learn":[0.3873377012],"iteration":165,"passed_time":0.1850520051,"remaining_time":0.2608564409},
{"learn":[0.3868683205],"iteration":166,"passed_time":0.1861906452,"remaining_time":0.2597749721},
{"learn":[0.3863639324],"iteration":167,"passed_time":0.1872421176,"remaining_time":0.2585724481},
{"learn":[0.3856756608],"iteration":168,"passed_time":0.1883451739,"remaining_time":0.25744222},
{"learn":[0.3851101196],"iteration":169,"passed_time":0.1894709389,"remaining_time":0.256343035},
{"learn":[0.3845899076],"iteration":170,"passed_time":0.1905734536,"remaining_time":0.2552124028},
{"learn":[0.3842809463],"iteration":171,"passed_time":0.1917395108,"remaining_time":0.2541663282},
{"learn":[0.3838979772],"iteration":172,"passed_time":0.1928156501,"remaining_time":0.2530008819},
{"learn":[0.3835421864],"iteration":173,"passed_time":0.1939655821,"remaining_time":0.2519323078},
{"learn":[0.3831593151],"iteration":174,"passed_time":0.1951238058,"remaining_time":0.2508734646},
{"learn":[0.3824219971],"iteration":175,"passed_time":0.1961889867,"remaining_time":0.2496950739},
{"learn":[0.3818750513],"iteration":176,"passed_time":0.1972604593,"remaining_time":0.2485258894},
{"learn":[0.3814587697],"iteration":177,"passed_time":0.1984253498,"remaining_time":0.2474743126},
{"learn":[0.3811315933],"iteration":178,"passed_time":0.1995047391,"remaining_time":0.246315907},
{"learn":[0.3806289168],"iteration":179,"passed_time":0.2005956703,"remaining_time":0.245172486},
{"learn":[0.3801948808],"iteration":180,"passed_time":0.2016544344,"remaining_time":0.2439907245},
{"learn":[0.3793927537],"iteration":181,"passed_time":0.2026815314,"remaining_time":0.2427723838},
{"learn":[0.379061847],"iteration":182,"passed_time":0.2039010477,"remaining_time":0.2417843024},
{"learn":[0.3786859738],"iteration":183,"passed_time":0.2050741883,"remaining_time":0.2407392645},
{"learn":[0.3783497847],"iteration":184,"passed_time":0.2063676222,"remaining_time":0.239832642},
{"learn":[0.3780392163],"iteration":185,"passed_time":0.2075032623,"remaining_time":0.2387403125},
{"learn":[0.3773187067],"iteration":186,"passed_time":0.2086255689,"remaining_time":0.2376323325},
{"learn":[0.3768762307],"iteration":187,"passed_time":0.2097723758,"remaining_time":0.2365518281},
{"learn":[0.3763556852],"iteration":188,"passed_time":0.2108025562,"remaining_time":0.2353404199},
{"learn":[0.3756938863],"iteration":189,"passed_time":0.2118649037,"remaining_time":0.2341664725},
{"learn":[0.3752401881],"iteration":190,"passed_time":0.2130044189,"remaining_time":0.2330781337},
{"learn":[0.3747042165],"iteration":191,"passed_time":0.2140860166,"remaining_time":0.231926518},
{"learn":[0.3741421572],"iteration":192,"passed_time":0.2152354486,"remaining_time":0.2308483826},
{"learn":[0.3737531083],"iteration":193,"passed_time":0.2163026711,"remaining_time":0.2296822178},
{"learn":[0.3729714636],"iteration":194,"passed_time":0.2173279764,"remaining_time":0.2284730008},
{"learn":[0.3723401504],"iteration":195,"passed_time":0.2184194909,"remaining_time":0.2273345722},
{"learn":[0.3717195748],"iteration":196,"passed_time":0.2195059221,"remaining_time":0.2261913816},
{"learn":[0.3713120882],"iteration":197,"passed_time":0.220651104,"remaining_time":0.225108702},
{"learn":[0.3706316865],"iteration":198,"passed_time":0.2217496603,"remaining_time":0.2239783001},
{"learn":[0.3702966116],"iteration":199,"passed_time":0.2229138841,"remaining_time":0.2229138841},
{"learn":[0.3697721904],"iteration":200,"passed_time":0.2240036069,"remaining_time":0.2217747153},
{"learn":[0.3690342594],"iteration":201,"passed_time":0.2250807463,"remaining_time":0.2206237018},
{"learn":[0.3685483475],"iteration":202,"passed_time":0.2262793039,"remaining_time":0.2195912457},
{"learn":[0.3679488892],"iteration":203,"passed_time":0.2273438597,"remaining_time":0.2184284143},
{"learn":[0.3674652876],"iteration":204,"passed_time":0.2285949181,"remaining_time":0.2174439465},
{"learn":[0.3661867815],"iteration":205,"passed_time":0.2296574322,"remaining_time":0.2162793294},
{"learn":[0.3655245649],"iteration":206,"passed_time":0.2307709887,"remaining_time":0.215163289},
{"learn":[0.3651419912],"iteration":207,"passed_time":0.2319487544,"remaining_time":0.2141065425},
{"learn":[0.3648638467],"iteration":208,"passed_time":0.2331167699,"remaining_time":0.2130397275},
{"learn":[0.3645890135],"iteration":209,"passed_time":0.234272952,"remaining_time":0.2119612423},
{"learn":[0.3641188983],"iteration":210,"passed_time":0.2353604665,"remaining_time":0.2108205126},
{"learn":[0.3636023273],"iteration":211,"passed_time":0.2365067734,"remaining_time":0.2097324217},
{"learn":[0.3625971287],"iteration":212,"passed_time":0.237603163,"remaining_time":0.20859996},
{"learn":[0.3620963436],"iteration":213,"passed_time":0.2387020943,"remaining_time":0.2074700446},
{"learn":[0.3613752339],"iteration":214,"passed_time":0.239779317,"remaining_time":0.2063217378},
{"learn":[0.3609288026],"iteration":215,"passed_time":0.2409774579,"remaining_time":0.2052770938},
{"learn":[0.3602546044],"iteration":216,"passed_time":0.2420783892,"remaining_time":0.2041490563},
{"learn":[0.3596176626],"iteration":217,"passed_time":0.2431287365,"remaining_time":0.2029790369},
{"learn":[0.3591174894],"iteration":218,"passed_time":0.2443525445,"remaining_time":0.2019534728},
{"learn":[0.3584672055],"iteration":219,"passed_time":0.2454519758,"remaining_time":0.2008243438},
{"learn":[0.3579661615],"iteration":220,"passed_time":0.2465854492,"remaining_time":0.1997230562},
{"learn":[0.3575125863],"iteration":221,"passed_time":0.2476947973,"remaining_time":0.1986021348},
{"learn":[0.3570908255],"iteration":222,"passed_time":0.2488168539,"remaining_time":0.1974914042},
{"learn":[0.3565320443],"iteration":223,"passed_time":0.2499274937,"remaining_time":0.1963716022},
{"learn":[0.3557740348],"iteration":224,"passed_time":0.2510059664,"remaining_time":0.1952268628},
{"learn":[0.3552039883],"iteration":225,"passed_time":0.2521369815,"remaining_time":0.1941231627},
{"learn":[0.3546823154],"iteration":226,"passed_time":0.2532487879,"remaining_time":0.1930045829},
{"learn":[0.3542588096],"iteration":227,"passed_time":0.2543872197,"remaining_time":0.1919061482},
{"learn":[0.3539054745],"iteration":228,"passed_time":0.2556031526,"remaining_time":0.1908652362},
{"learn":[0.3532278683],"iteration":229,"passed_time":0.2566931254,"remaining_time":0.1897297014},
{"learn":[0.3529230362],"iteration":230,"passed_time":0.2578798912,"remaining_time":0.188665375},
{"learn":[0.352381597],"iteration":231,"passed_time":0.2589980311,"remaining_time":0.1875502984},
{"learn":[0.3518928383],"iteration":232,"passed_time":0.2601070459,"remaining_time":0.1864286552},
{"learn":[0.3513050813],"iteration":233,"passed_time":0.2611858102,"remaining_time":0.1852856603},
{"learn":[0.3508996451],"iteration":234,"passed_time":0.262347159,"remaining_time":0.1842011968},
{"learn":[0.3504190546],"iteration":235,"passed_time":0.2635076745,"remaining_time":0.1831155026},
{"learn":[0.350020568],"iteration":236,"passed_time":0.2645913556,"remaining_time":0.1819763332},
{"learn":[0.3495522954],"iteration":237,"passed_time":0.265650578,"remaining_time":0.1808209817},
{"learn":[0.349180171],"iteration":238,"passed_time":0.2667622178,"remaining_time":0.1797017451},
{"learn":[0.3488403456],"iteration":239,"passed_time":0.2679780257,"remaining_time":0.1786520171},
{"learn":[0.348326175],"iteration":240,"passed_time":0.2690999573,"remaining_time":0.177538976},
{"learn":[0.3480609146],"iteration":241,"passed_time":0.2704532669,"remaining_time":0.1765769264},
{"learn":[0.3474846933],"iteration":242,"passed_time":0.271532448,"remaining_time":0.1754345446},
{"learn":[0.3470838691],"iteration":243,"passed_time":0.2727193804,"remaining_time":0.1743615711},
{"learn":[0.3464878166],"iteration":244,"passed_time":0.2737749778,"remaining_time":0.1732045778},
{"learn":[0.3461395179],"iteration":245,"passed_time":0.2749240348,"remaining_time":0.1721069161},
{"learn":[0.3452807894],"iteration":246,"passed_time":0.2759993824,"remaining_time":0.1709631802},
{"learn":[0.3449142029],"iteration":247,"passed_time":0.2772472741,"remaining_time":0.1699257486},
{"learn":[0.3443799395],"iteration":248,"passed_time":0.2783343302,"remaining_time":0.1687890918},
{"learn":[0.3438780899],"iteration":249,"passed_time":0.2794902206,"remaining_time":0.1676941324},
{"learn":[0.343511803],"iteration":250,"passed_time":0.2805435263,"remaining_time":0.1665377905},
{"learn":[0.3430115446],"iteration":251,"passed_time":0.2816808747,"remaining_time":0.1654316249},
{"learn":[0.3424726164],"iteration":252,"passed_time":0.2828335984,"remaining_time":0.1643341461},
{"learn":[0.3420562225],"iteration":253,"passed_time":0.2839551134,"remaining_time":0.1632182935},
{"learn":[0.34149691],"iteration":254,"passed_time":0.285008294,"remaining_time":0.1620635397},
{"learn":[0.3409610654],"iteration":255,"passed_time":0.2860447662,"remaining_time":0.160900181},
{"learn":[0.3405231536],"iteration":256,"passed_time":0.2871926148,"remaining_time":0.1597997818},
{"learn":[0.340034093],"iteration":257,"passed_time":0.2882568373,"remaining_time":0.158652988},
{"learn":[0.3397309627],"iteration":258,"passed_time":0.2893273515,"remaining_time":0.157510257},
{"learn":[0.339253501],"iteration":259,"passed_time":0.2904178244,"remaining_time":0.1563788285},
{"learn":[0.3388066139],"iteration":260,"passed_time":0.2915355476,"remaining_time":0.1552622265},
{"learn":[0.3384464664],"iteration":261,"passed_time":0.292620937,"remaining_time":0.1541285852},
{"learn":[0.3379404375],"iteration":262,"passed_time":0.2936824928,"remaining_time":0.1529828955},
{"learn":[0.3375414354],"iteration":263,"passed_time":0.2948104245,"remaining_time":0.1518720369},
{"learn":[0.3370821259],"iteration":264,"passed_time":0.295924856,"remaining_time":0.1507541719},
{"learn":[0.336602236],"iteration":265,"passed_time":0.2970121205,"remaining_time":0.1496226472},
{"learn":[0.3362749],"iteration":266,"passed_time":0.2981132185,"remaining_time":0.1484983448},
{"learn":[0.3356858224],"iteration":267,"passed_time":0.2991777743,"remaining_time":0.1473562172},
{"learn":[0.3352310019],"iteration":268,"passed_time":0.3003209145,"remaining_time":0.1462529361},
{"learn":[0.3348569493],"iteration":269,"passed_time":0.3014208042,"remaining_time":0.1451285354},
{"learn":[0.3343571837],"iteration":270,"passed_time":0.3025719445,"remaining_time":0.1440287116},
{"learn":[0.333972653],"iteration":271,"passed_time":0.3036274169,"remaining_time":0.1428834903},
{"learn":[0.3334731775],"iteration":272,"passed_time":0.3047476818,"remaining_time":0.1417690681},
{"learn":[0.3330291212],"iteration":273,"passed_time":0.3058505715,"remaining_time":0.1406466132},
{"learn":[0.3326605023],"iteration":274,"passed_time":0.3069655863,"remaining_time":0.139529812},
{"learn":[0.3321437127],"iteration":275,"passed_time":0.3080452674,"remaining_time":0.1383971491},
{"learn":[0.3315365701],"iteration":276,"passed_time":0.3091012398,"remaining_time":0.1372543411},
{"learn":[0.3310604688],"iteration":277,"passed_time":0.3101988377,"remaining_time":0.1361304252},
{"learn":[0.3306178809],"iteration":278,"passed_time":0.3113700616,"remaining_time":0.1350386289},
{"learn":[0.3302189522],"iteration":279,"passed_time":0.3124655346,"remaining_time":0.1339138005},
{"learn":[0.3298908388],"iteration":280,"passed_time":0.3135639658,"remaining_time":0.1327904339},
{"learn":[0.3296290713],"iteration":281,"passed_time":0.3147306064,"remaining_time":0.1316957856},
{"learn":[0.3292322275],"iteration":282,"passed_time":0.3159200389,"remaining_time":0.1306100514},
{"learn":[0.3289530144],"iteration":283,"passed_time":0.3171967225,"remaining_time":0.1295592247},
{"learn":[0.3283868788],"iteration":284,"passed_time":0.3182564866,"remaining_time":0.1284192841},
{"learn":[0.3279859547],"iteration":285,"passed_time":0.3193458345,"remaining_time":0.1272916963},
{"learn":[0.3276029024],"iteration":286,"passed_time":0.3205133917,"remaining_time":0.1261951682},
{"learn":[0.3269980903],"iteration":287,"passed_time":0.3216701571,"remaining_time":0.12509395},
{"learn":[0.3265024345],"iteration":288,"passed_time":0.3228997151,"remaining_time":0.1240203058},
{"learn":[0.3260926102],"iteration":289,"passed_time":0.3239976464,"remaining_time":0.122895659},
{"learn":[0.3255902536],"iteration":290,"passed_time":0.3250561605,"remaining_time":0.1217564312},
{"learn":[0.3253374601],"iteration":291,"passed_time":0.3262455513,"remaining_time":0.1206661628},
{"learn":[0.3249964957],"iteration":292,"passed_time":0.3274385255,"remaining_time":0.1195765264},
{"learn":[0.3247110169],"iteration":293,"passed_time":0.3286553334,"remaining_time":0.1184947801},
{"learn":[0.3244365598],"iteration":294,"passed_time":0.3297882652,"remaining_time":0.1173822639},
{"learn":[0.3236145686],"iteration":295,"passed_time":0.3309152385,"remaining_time":0.1162675162},
{"learn":[0.3232270981],"iteration":296,"passed_time":0.332130463,"remaining_time":0.1151832919},
{"learn":[0.3228851393],"iteration":297,"passed_time":0.3332317693,"remaining_time":0.1140591962},
{"learn":[0.3225358685],"iteration":298,"passed_time":0.3343837013,"remaining_time":0.112952354},
{"learn":[0.3221528653],"iteration":299,"passed_time":0.3356189678,"remaining_time":0.1118729893},
{"learn":[0.3214501982],"iteration":300,"passed_time":0.3367013988,"remaining_time":0.1107423206},
{"learn":[0.320997221],"iteration":301,"passed_time":0.3378206637,"remaining_time":0.109623924},
{"learn":[0.3206101631],"iteration":302,"passed_time":0.3389297202,"remaining_time":0.1085022537},
{"learn":[0.3201732621],"iteration":303,"passed_time":0.3399921927,"remaining_time":0.1073659556},
{"learn":[0.3199084998],"iteration":304,"passed_time":0.3411286661,"remaining_time":0.1062531911},
{"learn":[0.3195992788],"iteration":305,"passed_time":0.3422892649,"remaining_time":0.1051476827},
{"learn":[0.3191488459],"iteration":306,"passed_time":0.3433914879,"remaining_time":0.1040241315},
{"learn":[0.3187874781],"iteration":307,"passed_time":0.3444620855,"remaining_time":0.1028912723},
{"learn":[0.3185523705],"iteration":308,"passed_time":0.3456197676,"remaining_time":0.1017844623},
{"learn":[0.3183052639],"iteration":309,"passed_time":0.3467240323,"remaining_time":0.1006618158},
{"learn":[0.3179523493],"iteration":310,"passed_time":0.3479116314,"remaining_time":0.09956313568},
{"learn":[0.3173939542],"iteration":311,"passed_time":0.3490191878,"remaining_time":0.09844130939},
{"learn":[0.3170235217],"iteration":312,"passed_time":0.3500825353,"remaining_time":0.09730728617},
{"learn":[0.3167426475],"iteration":313,"passed_time":0.3512368007,"remaining_time":0.0961986142},
{"learn":[0.3163718121],"iteration":314,"passed_time":0.3523208568,"remaining_time":0.09507070738},
{"learn":[0.3158370493],"iteration":315,"passed_time":0.3534916224,"remaining_time":0.09396612746},
{"learn":[0.3155503527],"iteration":316,"passed_time":0.3545707201,"remaining_time":0.0928371286},
{"learn":[0.3151236337],"iteration":317,"passed_time":0.3557036935,"remaining_time":0.09172233605},
{"learn":[0.3148689295],"iteration":318,"passed_time":0.3567603742,"remaining_time":0.0905880574},
{"learn":[0.3146299768],"iteration":319,"passed_time":0.3578028881,"remaining_time":0.08945072202},
{"learn":[0.3142772407],"iteration":320,"passed_time":0.3588606938,"remaining_time":0.08831774085},
{"learn":[0.3138530784],"iteration":321,"passed_time":0.360001834,"remaining_time":0.08720541321},
{"learn":[0.3135854205],"iteration":322,"passed_time":0.3611158489,"remaining_time":0.08608644075},
{"learn":[0.3131214904],"iteration":323,"passed_time":0.3621631545,"remaining_time":0.08495185105},
{"learn":[0.3127659838],"iteration":324,"passed_time":0.3632967112,"remaining_time":0.08383770259},
{"learn":[0.3122350721],"iteration":325,"passed_time":0.3643763506,"remaining_time":0.08271119615},
{"learn":[0.3118475636],"iteration":326,"passed_time":0.3655228659,"remaining_time":0.08159990583},
{"learn":[0.3115344437],"iteration":327,"passed_time":0.3666650894,"remaining_time":0.08048745865},
{"learn":[0.311237246],"iteration":328,"passed_time":0.3677735625,"remaining_time":0.07936754692},
{"learn":[0.3109110889],"iteration":329,"passed_time":0.3688446184,"remaining_time":0.07823976754},
{"learn":[0.310639938],"iteration":330,"passed_time":0.37009251,"remaining_time":0.07714919393},
{"learn":[0.3103155862],"iteration":331,"passed_time":0.3711809828,"remaining_time":0.07602502058},
{"learn":[0.3098221248],"iteration":332,"passed_time":0.3723168313,"remaining_time":0.07491059368},
{"learn":[0.309423914],"iteration":333,"passed_time":0.3734389712,"remaining_time":0.07379332964},
{"learn":[0.3091671621],"iteration":334,"passed_time":0.3746966546,"remaining_time":0.07270233598},
{"learn":[0.308852111],"iteration":335,"passed_time":0.3758094611,"remaining_time":0.0715827545},
{"learn":[0.3084452031],"iteration":336,"passed_time":0.3769338511,"remaining_time":0.07046537869},
{"learn":[0.30805284],"iteration":337,"passed_time":0.3780220739,"remaining_time":0.06934132717},
{"learn":[0.307790852],"iteration":338,"passed_time":0.3791067133,"remaining_time":0.06821684222},
{"learn":[0.3075070726],"iteration":339,"passed_time":0.3801461439,"remaining_time":0.06708461362},
{"learn":[0.3070106772],"iteration":340,"passed_time":0.3812151164,"remaining_time":0.06595804067},
{"learn":[0.3063522606],"iteration":341,"passed_time":0.3823247145,"remaining_time":0.06483869428},
{"learn":[0.306023137],"iteration":342,"passed_time":0.3834944384,"remaining_time":0.06372939647},
{"learn":[0.3056081686],"iteration":343,"passed_time":0.3845728694,"remaining_time":0.06260488572},
{"learn":[0.3052908972],"iteration":344,"passed_time":0.3857046345,"remaining_time":0.06148914463},
{"learn":[0.3050698337],"iteration":345,"passed_time":0.3867824405,"remaining_time":0.06036488956},
{"learn":[0.304718801],"iteration":346,"passed_time":0.3878819552,"remaining_time":0.05924421794},
{"learn":[0.3043544625],"iteration":347,"passed_time":0.3890576375,"remaining_time":0.05813504928},
{"learn":[0.3041033502],"iteration":348,"passed_time":0.3902497784,"remaining_time":0.05702790457},
{"learn":[0.3037743316],"iteration":349,"passed_time":0.3913301677,"remaining_time":0.05590430968},
{"learn":[0.3034668293],"iteration":350,"passed_time":0.392504225,"remaining_time":0.05479403711},
{"learn":[0.3030885587],"iteration":351,"passed_time":0.3938031173,"remaining_time":0.05370042509},
{"learn":[0.3026812327],"iteration":352,"passed_time":0.3948736316,"remaining_time":0.05257524273},
{"learn":[0.3021014274],"iteration":353,"passed_time":0.3959924381,"remaining_time":0.0514566445},
{"learn":[0.3018628727],"iteration":354,"passed_time":0.3971618287,"remaining_time":0.05034445716},
{"learn":[0.3015681515],"iteration":355,"passed_time":0.398210676,"remaining_time":0.04921704984},
{"learn":[0.3012563129],"iteration":356,"passed_time":0.3994373173,"remaining_time":0.0481114976},
{"learn":[0.3008425713],"iteration":357,"passed_time":0.4005401653,"remaining_time":0.04699074565},
{"learn":[0.3006504824],"iteration":358,"passed_time":0.4017283478,"remaining_time":0.04587983917},
{"learn":[0.3002997122],"iteration":359,"passed_time":0.4028637796,"remaining_time":0.04476264218},
{"learn":[0.29986022],"iteration":360,"passed_time":0.4039345855,"remaining_time":0.04363836243},
{"learn":[0.2994157375],"iteration":361,"passed_time":0.4049831411,"remaining_time":0.04251204244},
{"learn":[0.2991488897],"iteration":362,"passed_time":0.4060736973,"remaining_time":0.04139043196},
{"learn":[0.2987604674],"iteration":363,"passed_time":0.4071648369,"remaining_time":0.0402690498},
{"learn":[0.2984520322],"iteration":364,"passed_time":0.4083211439,"remaining_time":0.03915408229},
{"learn":[0.2980086594],"iteration":365,"passed_time":0.4094280337,"remaining_time":0.03803429821},
{"learn":[0.2976722806],"iteration":366,"passed_time":0.4105029646,"remaining_time":0.03691171072},
{"learn":[0.297418779],"iteration":367,"passed_time":0.4116947305,"remaining_time":0.03579954178},
{"learn":[0.2970540834],"iteration":368,"passed_time":0.4128054119,"remaining_time":0.03468012946},
{"learn":[0.2968505628],"iteration":369,"passed_time":0.4138733428,"remaining_time":0.03355729807},
{"learn":[0.2966096352],"iteration":370,"passed_time":0.4149656907,"remaining_time":0.03243667124},
{"learn":[0.2962534879],"iteration":371,"passed_time":0.4159768292,"remaining_time":0.03131008392},
{"learn":[0.2956966575],"iteration":372,"passed_time":0.4170019261,"remaining_time":0.03018512602},
{"learn":[0.295467724],"iteration":373,"passed_time":0.4181140243,"remaining_time":0.02906675035},
{"learn":[0.295198672],"iteration":374,"passed_time":0.4192409559,"remaining_time":0.02794939706},
{"learn":[0.2948654216],"iteration":375,"passed_time":0.4202776364,"remaining_time":0.02682623211},
{"learn":[0.2944509322],"iteration":376,"passed_time":0.4213771094,"remaining_time":0.02570735681},
{"learn":[0.294163659],"iteration":377,"passed_time":0.4226436679,"remaining_time":0.02459830871},
{"learn":[0.2938644764],"iteration":378,"passed_time":0.4237322241,"remaining_time":0.02347856651},
{"learn":[0.293532816],"iteration":379,"passed_time":0.4248420722,"remaining_time":0.02236010906},
{"learn":[0.2932769543],"iteration":380,"passed_time":0.4259474202,"remaining_time":0.0212414724},
{"learn":[0.2930012713],"iteration":381,"passed_time":0.4270412265,"remaining_time":0.02012236146},
{"learn":[0.2927528101],"iteration":382,"passed_time":0.4281576163,"remaining_time":0.01900438506},
{"learn":[0.2924546703],"iteration":383,"passed_time":0.4292129637,"remaining_time":0.01788387349},
{"learn":[0.2921348133],"iteration":384,"passed_time":0.4303516039,"remaining_time":0.0167669456},
{"learn":[0.2918413938],"iteration":385,"passed_time":0.4314503685,"remaining_time":0.01564845896},
{"learn":[0.2914998283],"iteration":386,"passed_time":0.4325481331,"remaining_time":0.01453004065},
{"learn":[0.2912741093],"iteration":387,"passed_time":0.4336954817,"remaining_time":0.01341326232},
{"learn":[0.2910467504],"iteration":388,"passed_time":0.4347749961,"remaining_time":0.01229440863},
{"learn":[0.2908811787],"iteration":389,"passed_time":0.4359572618,"remaining_time":0.01117839133},
{"learn":[0.29031764],"iteration":390,"passed_time":0.4370190259,"remaining_time":0.01005926147},
{"learn":[0.2900000009],"iteration":391,"passed_time":0.4381199989,"remaining_time":0.008941224468},
{"learn":[0.2897507124],"iteration":392,"passed_time":0.4392080968,"remaining_time":0.00782304498},
{"learn":[0.2895248451],"iteration":393,"passed_time":0.4403091947,"remaining_time":0.006705216164},
{"learn":[0.2892178364],"iteration":394,"passed_time":0.4414087927,"remaining_time":0.005587453072},
{"learn":[0.2888956874],"iteration":395,"passed_time":0.442581475,"remaining_time":0.004470519949},
{"learn":[0.2885872177],"iteration":396,"passed_time":0.443805658,"remaining_time":0.003353695148},
{"learn":[0.2883226548],"iteration":397,"passed_time":0.4449120477,"remaining_time":0.002235738933},
{"learn":[0.2880616544],"iteration":398,"passed_time":0.4460379793,"remaining_time":0.001117889673},
{"learn":[0.2877225749],"iteration":399,"passed_time":0.4471239521,"remaining_time":0}
]}
@@ -0,0 +1,401 @@
iter Logloss
0 0.6752574527
1 0.6590158329
2 0.6439053461
3 0.6300318652
4 0.6176080869
5 0.6072057723
6 0.5978862443
7 0.5892253742
8 0.5808671388
9 0.5732077946
10 0.5661847426
11 0.5600289293
12 0.5530962469
13 0.5481010119
14 0.5434953481
15 0.5404101637
16 0.5361341938
17 0.5317763411
18 0.5268163473
19 0.5245315654
20 0.5205327316
21 0.5177701576
22 0.5137445796
23 0.5105456834
24 0.5080257838
25 0.5054934276
26 0.503296382
27 0.5006211207
28 0.4985921934
29 0.4961473489
30 0.4946219665
31 0.4925272328
32 0.4898936852
33 0.4884288887
34 0.4863838977
35 0.4845515615
36 0.4824883347
37 0.4804030524
38 0.4785388461
39 0.4770942099
40 0.4756384413
41 0.4747696424
42 0.4736129814
43 0.4725400991
44 0.4712424271
45 0.4701835699
46 0.4690223311
47 0.4682401998
48 0.4663252757
49 0.4651951732
50 0.4643129126
51 0.4634919617
52 0.4627711631
53 0.4618109601
54 0.460959898
55 0.4594625002
56 0.4584854101
57 0.4570498581
58 0.455880592
59 0.4550663099
60 0.4542687957
61 0.4535032807
62 0.4526542794
63 0.4514785115
64 0.4507802979
65 0.4491962574
66 0.4485895185
67 0.4478692379
68 0.4463417221
69 0.4452451739
70 0.4444830618
71 0.4435724065
72 0.4420487712
73 0.441478802
74 0.4410124289
75 0.4401138277
76 0.4394535191
77 0.4388369011
78 0.4379911776
79 0.4374327656
80 0.4364149666
81 0.4358972456
82 0.4352582245
83 0.4345396736
84 0.4341003864
85 0.4332298157
86 0.43230384
87 0.4316562364
88 0.4309618622
89 0.4298558624
90 0.4291876524
91 0.4282528408
92 0.4277131957
93 0.4271829294
94 0.4264580876
95 0.4253379692
96 0.424511763
97 0.4239388347
98 0.4232630534
99 0.4226485557
100 0.4222437514
101 0.4213299083
102 0.4208753627
103 0.420347864
104 0.4191908122
105 0.4183297442
106 0.417987752
107 0.4174588649
108 0.4169787866
109 0.4159189441
110 0.4153188878
111 0.4148918317
112 0.4144564688
113 0.4138592532
114 0.4133895004
115 0.4127703464
116 0.4124298162
117 0.4120395574
118 0.4107360285
119 0.4101591941
120 0.4092665733
121 0.4088576793
122 0.408361342
123 0.4078673303
124 0.4073910152
125 0.4066843028
126 0.4062068195
127 0.4054839673
128 0.4049627816
129 0.4042386686
130 0.4036896032
131 0.4030055463
132 0.4025982201
133 0.4021507256
134 0.4017130107
135 0.4010693391
136 0.400549588
137 0.3999916469
138 0.3996655064
139 0.3993175997
140 0.3989923873
141 0.3985453884
142 0.3980582085
143 0.3978472172
144 0.3973697391
145 0.3970929708
146 0.3966356443
147 0.3962418114
148 0.3958183212
149 0.3952962072
150 0.3947786724
151 0.3942251128
152 0.393510771
153 0.3931935538
154 0.3929263145
155 0.3921994504
156 0.3918641893
157 0.391568347
158 0.3907576665
159 0.3900011029
160 0.3896939448
161 0.3892669751
162 0.3887156987
163 0.3882799657
164 0.3878736136
165 0.3873377012
166 0.3868683205
167 0.3863639324
168 0.3856756608
169 0.3851101196
170 0.3845899076
171 0.3842809463
172 0.3838979772
173 0.3835421864
174 0.3831593151
175 0.3824219971
176 0.3818750513
177 0.3814587697
178 0.3811315933
179 0.3806289168
180 0.3801948808
181 0.3793927537
182 0.379061847
183 0.3786859738
184 0.3783497847
185 0.3780392163
186 0.3773187067
187 0.3768762307
188 0.3763556852
189 0.3756938863
190 0.3752401881
191 0.3747042165
192 0.3741421572
193 0.3737531083
194 0.3729714636
195 0.3723401504
196 0.3717195748
197 0.3713120882
198 0.3706316865
199 0.3702966116
200 0.3697721904
201 0.3690342594
202 0.3685483475
203 0.3679488892
204 0.3674652876
205 0.3661867815
206 0.3655245649
207 0.3651419912
208 0.3648638467
209 0.3645890135
210 0.3641188983
211 0.3636023273
212 0.3625971287
213 0.3620963436
214 0.3613752339
215 0.3609288026
216 0.3602546044
217 0.3596176626
218 0.3591174894
219 0.3584672055
220 0.3579661615
221 0.3575125863
222 0.3570908255
223 0.3565320443
224 0.3557740348
225 0.3552039883
226 0.3546823154
227 0.3542588096
228 0.3539054745
229 0.3532278683
230 0.3529230362
231 0.352381597
232 0.3518928383
233 0.3513050813
234 0.3508996451
235 0.3504190546
236 0.350020568
237 0.3495522954
238 0.349180171
239 0.3488403456
240 0.348326175
241 0.3480609146
242 0.3474846933
243 0.3470838691
244 0.3464878166
245 0.3461395179
246 0.3452807894
247 0.3449142029
248 0.3443799395
249 0.3438780899
250 0.343511803
251 0.3430115446
252 0.3424726164
253 0.3420562225
254 0.34149691
255 0.3409610654
256 0.3405231536
257 0.340034093
258 0.3397309627
259 0.339253501
260 0.3388066139
261 0.3384464664
262 0.3379404375
263 0.3375414354
264 0.3370821259
265 0.336602236
266 0.3362749
267 0.3356858224
268 0.3352310019
269 0.3348569493
270 0.3343571837
271 0.333972653
272 0.3334731775
273 0.3330291212
274 0.3326605023
275 0.3321437127
276 0.3315365701
277 0.3310604688
278 0.3306178809
279 0.3302189522
280 0.3298908388
281 0.3296290713
282 0.3292322275
283 0.3289530144
284 0.3283868788
285 0.3279859547
286 0.3276029024
287 0.3269980903
288 0.3265024345
289 0.3260926102
290 0.3255902536
291 0.3253374601
292 0.3249964957
293 0.3247110169
294 0.3244365598
295 0.3236145686
296 0.3232270981
297 0.3228851393
298 0.3225358685
299 0.3221528653
300 0.3214501982
301 0.320997221
302 0.3206101631
303 0.3201732621
304 0.3199084998
305 0.3195992788
306 0.3191488459
307 0.3187874781
308 0.3185523705
309 0.3183052639
310 0.3179523493
311 0.3173939542
312 0.3170235217
313 0.3167426475
314 0.3163718121
315 0.3158370493
316 0.3155503527
317 0.3151236337
318 0.3148689295
319 0.3146299768
320 0.3142772407
321 0.3138530784
322 0.3135854205
323 0.3131214904
324 0.3127659838
325 0.3122350721
326 0.3118475636
327 0.3115344437
328 0.311237246
329 0.3109110889
330 0.310639938
331 0.3103155862
332 0.3098221248
333 0.309423914
334 0.3091671621
335 0.308852111
336 0.3084452031
337 0.30805284
338 0.307790852
339 0.3075070726
340 0.3070106772
341 0.3063522606
342 0.306023137
343 0.3056081686
344 0.3052908972
345 0.3050698337
346 0.304718801
347 0.3043544625
348 0.3041033502
349 0.3037743316
350 0.3034668293
351 0.3030885587
352 0.3026812327
353 0.3021014274
354 0.3018628727
355 0.3015681515
356 0.3012563129
357 0.3008425713
358 0.3006504824
359 0.3002997122
360 0.29986022
361 0.2994157375
362 0.2991488897
363 0.2987604674
364 0.2984520322
365 0.2980086594
366 0.2976722806
367 0.297418779
368 0.2970540834
369 0.2968505628
370 0.2966096352
371 0.2962534879
372 0.2956966575
373 0.295467724
374 0.295198672
375 0.2948654216
376 0.2944509322
377 0.294163659
378 0.2938644764
379 0.293532816
380 0.2932769543
381 0.2930012713
382 0.2927528101
383 0.2924546703
384 0.2921348133
385 0.2918413938
386 0.2914998283
387 0.2912741093
388 0.2910467504
389 0.2908811787
390 0.29031764
391 0.2900000009
392 0.2897507124
393 0.2895248451
394 0.2892178364
395 0.2888956874
396 0.2885872177
397 0.2883226548
398 0.2880616544
399 0.2877225749
1 iter Logloss
2 0 0.6752574527
3 1 0.6590158329
4 2 0.6439053461
5 3 0.6300318652
6 4 0.6176080869
7 5 0.6072057723
8 6 0.5978862443
9 7 0.5892253742
10 8 0.5808671388
11 9 0.5732077946
12 10 0.5661847426
13 11 0.5600289293
14 12 0.5530962469
15 13 0.5481010119
16 14 0.5434953481
17 15 0.5404101637
18 16 0.5361341938
19 17 0.5317763411
20 18 0.5268163473
21 19 0.5245315654
22 20 0.5205327316
23 21 0.5177701576
24 22 0.5137445796
25 23 0.5105456834
26 24 0.5080257838
27 25 0.5054934276
28 26 0.503296382
29 27 0.5006211207
30 28 0.4985921934
31 29 0.4961473489
32 30 0.4946219665
33 31 0.4925272328
34 32 0.4898936852
35 33 0.4884288887
36 34 0.4863838977
37 35 0.4845515615
38 36 0.4824883347
39 37 0.4804030524
40 38 0.4785388461
41 39 0.4770942099
42 40 0.4756384413
43 41 0.4747696424
44 42 0.4736129814
45 43 0.4725400991
46 44 0.4712424271
47 45 0.4701835699
48 46 0.4690223311
49 47 0.4682401998
50 48 0.4663252757
51 49 0.4651951732
52 50 0.4643129126
53 51 0.4634919617
54 52 0.4627711631
55 53 0.4618109601
56 54 0.460959898
57 55 0.4594625002
58 56 0.4584854101
59 57 0.4570498581
60 58 0.455880592
61 59 0.4550663099
62 60 0.4542687957
63 61 0.4535032807
64 62 0.4526542794
65 63 0.4514785115
66 64 0.4507802979
67 65 0.4491962574
68 66 0.4485895185
69 67 0.4478692379
70 68 0.4463417221
71 69 0.4452451739
72 70 0.4444830618
73 71 0.4435724065
74 72 0.4420487712
75 73 0.441478802
76 74 0.4410124289
77 75 0.4401138277
78 76 0.4394535191
79 77 0.4388369011
80 78 0.4379911776
81 79 0.4374327656
82 80 0.4364149666
83 81 0.4358972456
84 82 0.4352582245
85 83 0.4345396736
86 84 0.4341003864
87 85 0.4332298157
88 86 0.43230384
89 87 0.4316562364
90 88 0.4309618622
91 89 0.4298558624
92 90 0.4291876524
93 91 0.4282528408
94 92 0.4277131957
95 93 0.4271829294
96 94 0.4264580876
97 95 0.4253379692
98 96 0.424511763
99 97 0.4239388347
100 98 0.4232630534
101 99 0.4226485557
102 100 0.4222437514
103 101 0.4213299083
104 102 0.4208753627
105 103 0.420347864
106 104 0.4191908122
107 105 0.4183297442
108 106 0.417987752
109 107 0.4174588649
110 108 0.4169787866
111 109 0.4159189441
112 110 0.4153188878
113 111 0.4148918317
114 112 0.4144564688
115 113 0.4138592532
116 114 0.4133895004
117 115 0.4127703464
118 116 0.4124298162
119 117 0.4120395574
120 118 0.4107360285
121 119 0.4101591941
122 120 0.4092665733
123 121 0.4088576793
124 122 0.408361342
125 123 0.4078673303
126 124 0.4073910152
127 125 0.4066843028
128 126 0.4062068195
129 127 0.4054839673
130 128 0.4049627816
131 129 0.4042386686
132 130 0.4036896032
133 131 0.4030055463
134 132 0.4025982201
135 133 0.4021507256
136 134 0.4017130107
137 135 0.4010693391
138 136 0.400549588
139 137 0.3999916469
140 138 0.3996655064
141 139 0.3993175997
142 140 0.3989923873
143 141 0.3985453884
144 142 0.3980582085
145 143 0.3978472172
146 144 0.3973697391
147 145 0.3970929708
148 146 0.3966356443
149 147 0.3962418114
150 148 0.3958183212
151 149 0.3952962072
152 150 0.3947786724
153 151 0.3942251128
154 152 0.393510771
155 153 0.3931935538
156 154 0.3929263145
157 155 0.3921994504
158 156 0.3918641893
159 157 0.391568347
160 158 0.3907576665
161 159 0.3900011029
162 160 0.3896939448
163 161 0.3892669751
164 162 0.3887156987
165 163 0.3882799657
166 164 0.3878736136
167 165 0.3873377012
168 166 0.3868683205
169 167 0.3863639324
170 168 0.3856756608
171 169 0.3851101196
172 170 0.3845899076
173 171 0.3842809463
174 172 0.3838979772
175 173 0.3835421864
176 174 0.3831593151
177 175 0.3824219971
178 176 0.3818750513
179 177 0.3814587697
180 178 0.3811315933
181 179 0.3806289168
182 180 0.3801948808
183 181 0.3793927537
184 182 0.379061847
185 183 0.3786859738
186 184 0.3783497847
187 185 0.3780392163
188 186 0.3773187067
189 187 0.3768762307
190 188 0.3763556852
191 189 0.3756938863
192 190 0.3752401881
193 191 0.3747042165
194 192 0.3741421572
195 193 0.3737531083
196 194 0.3729714636
197 195 0.3723401504
198 196 0.3717195748
199 197 0.3713120882
200 198 0.3706316865
201 199 0.3702966116
202 200 0.3697721904
203 201 0.3690342594
204 202 0.3685483475
205 203 0.3679488892
206 204 0.3674652876
207 205 0.3661867815
208 206 0.3655245649
209 207 0.3651419912
210 208 0.3648638467
211 209 0.3645890135
212 210 0.3641188983
213 211 0.3636023273
214 212 0.3625971287
215 213 0.3620963436
216 214 0.3613752339
217 215 0.3609288026
218 216 0.3602546044
219 217 0.3596176626
220 218 0.3591174894
221 219 0.3584672055
222 220 0.3579661615
223 221 0.3575125863
224 222 0.3570908255
225 223 0.3565320443
226 224 0.3557740348
227 225 0.3552039883
228 226 0.3546823154
229 227 0.3542588096
230 228 0.3539054745
231 229 0.3532278683
232 230 0.3529230362
233 231 0.352381597
234 232 0.3518928383
235 233 0.3513050813
236 234 0.3508996451
237 235 0.3504190546
238 236 0.350020568
239 237 0.3495522954
240 238 0.349180171
241 239 0.3488403456
242 240 0.348326175
243 241 0.3480609146
244 242 0.3474846933
245 243 0.3470838691
246 244 0.3464878166
247 245 0.3461395179
248 246 0.3452807894
249 247 0.3449142029
250 248 0.3443799395
251 249 0.3438780899
252 250 0.343511803
253 251 0.3430115446
254 252 0.3424726164
255 253 0.3420562225
256 254 0.34149691
257 255 0.3409610654
258 256 0.3405231536
259 257 0.340034093
260 258 0.3397309627
261 259 0.339253501
262 260 0.3388066139
263 261 0.3384464664
264 262 0.3379404375
265 263 0.3375414354
266 264 0.3370821259
267 265 0.336602236
268 266 0.3362749
269 267 0.3356858224
270 268 0.3352310019
271 269 0.3348569493
272 270 0.3343571837
273 271 0.333972653
274 272 0.3334731775
275 273 0.3330291212
276 274 0.3326605023
277 275 0.3321437127
278 276 0.3315365701
279 277 0.3310604688
280 278 0.3306178809
281 279 0.3302189522
282 280 0.3298908388
283 281 0.3296290713
284 282 0.3292322275
285 283 0.3289530144
286 284 0.3283868788
287 285 0.3279859547
288 286 0.3276029024
289 287 0.3269980903
290 288 0.3265024345
291 289 0.3260926102
292 290 0.3255902536
293 291 0.3253374601
294 292 0.3249964957
295 293 0.3247110169
296 294 0.3244365598
297 295 0.3236145686
298 296 0.3232270981
299 297 0.3228851393
300 298 0.3225358685
301 299 0.3221528653
302 300 0.3214501982
303 301 0.320997221
304 302 0.3206101631
305 303 0.3201732621
306 304 0.3199084998
307 305 0.3195992788
308 306 0.3191488459
309 307 0.3187874781
310 308 0.3185523705
311 309 0.3183052639
312 310 0.3179523493
313 311 0.3173939542
314 312 0.3170235217
315 313 0.3167426475
316 314 0.3163718121
317 315 0.3158370493
318 316 0.3155503527
319 317 0.3151236337
320 318 0.3148689295
321 319 0.3146299768
322 320 0.3142772407
323 321 0.3138530784
324 322 0.3135854205
325 323 0.3131214904
326 324 0.3127659838
327 325 0.3122350721
328 326 0.3118475636
329 327 0.3115344437
330 328 0.311237246
331 329 0.3109110889
332 330 0.310639938
333 331 0.3103155862
334 332 0.3098221248
335 333 0.309423914
336 334 0.3091671621
337 335 0.308852111
338 336 0.3084452031
339 337 0.30805284
340 338 0.307790852
341 339 0.3075070726
342 340 0.3070106772
343 341 0.3063522606
344 342 0.306023137
345 343 0.3056081686
346 344 0.3052908972
347 345 0.3050698337
348 346 0.304718801
349 347 0.3043544625
350 348 0.3041033502
351 349 0.3037743316
352 350 0.3034668293
353 351 0.3030885587
354 352 0.3026812327
355 353 0.3021014274
356 354 0.3018628727
357 355 0.3015681515
358 356 0.3012563129
359 357 0.3008425713
360 358 0.3006504824
361 359 0.3002997122
362 360 0.29986022
363 361 0.2994157375
364 362 0.2991488897
365 363 0.2987604674
366 364 0.2984520322
367 365 0.2980086594
368 366 0.2976722806
369 367 0.297418779
370 368 0.2970540834
371 369 0.2968505628
372 370 0.2966096352
373 371 0.2962534879
374 372 0.2956966575
375 373 0.295467724
376 374 0.295198672
377 375 0.2948654216
378 376 0.2944509322
379 377 0.294163659
380 378 0.2938644764
381 379 0.293532816
382 380 0.2932769543
383 381 0.2930012713
384 382 0.2927528101
385 383 0.2924546703
386 384 0.2921348133
387 385 0.2918413938
388 386 0.2914998283
389 387 0.2912741093
390 388 0.2910467504
391 389 0.2908811787
392 390 0.29031764
393 391 0.2900000009
394 392 0.2897507124
395 393 0.2895248451
396 394 0.2892178364
397 395 0.2888956874
398 396 0.2885872177
399 397 0.2883226548
400 398 0.2880616544
401 399 0.2877225749
@@ -0,0 +1,401 @@
iter Passed Remaining
0 1 459
1 2 459
2 3 445
3 4 443
4 5 441
5 6 437
6 7 434
7 8 435
8 9 433
9 11 429
10 12 429
11 13 427
12 14 424
13 15 421
14 16 421
15 17 421
16 18 419
17 19 418
18 20 417
19 21 414
20 22 413
21 24 412
22 25 410
23 26 409
24 27 409
25 28 409
26 29 408
27 30 407
28 31 407
29 33 407
30 34 406
31 35 406
32 36 405
33 37 405
34 38 404
35 39 403
36 41 403
37 42 402
38 43 401
39 44 401
40 45 399
41 46 398
42 48 398
43 49 397
44 50 395
45 51 395
46 52 394
47 53 393
48 54 391
49 55 390
50 56 389
51 57 387
52 59 387
53 60 385
54 61 384
55 62 382
56 63 381
57 64 380
58 65 378
59 66 377
60 67 376
61 68 374
62 69 373
63 71 372
64 72 371
65 73 370
66 74 369
67 75 368
68 76 367
69 77 366
70 78 364
71 79 363
72 80 362
73 81 361
74 83 360
75 84 358
76 85 357
77 86 356
78 87 355
79 88 354
80 89 353
81 90 352
82 91 351
83 93 349
84 94 348
85 95 347
86 96 346
87 97 345
88 98 344
89 99 342
90 100 341
91 101 340
92 102 339
93 103 338
94 104 336
95 105 335
96 107 334
97 108 333
98 109 332
99 110 331
100 111 330
101 112 329
102 113 328
103 115 327
104 116 326
105 117 325
106 118 324
107 119 323
108 120 322
109 121 321
110 122 320
111 124 318
112 125 317
113 126 316
114 127 315
115 128 314
116 129 313
117 130 312
118 131 311
119 132 310
120 134 309
121 135 307
122 136 306
123 137 305
124 138 304
125 139 303
126 140 302
127 142 301
128 143 300
129 144 299
130 145 298
131 146 297
132 147 296
133 148 295
134 149 293
135 150 292
136 152 291
137 153 290
138 154 289
139 155 288
140 156 287
141 157 286
142 158 285
143 159 284
144 161 283
145 162 282
146 163 281
147 164 280
148 165 279
149 166 277
150 167 276
151 168 275
152 170 275
153 171 274
154 172 273
155 173 272
156 175 270
157 176 269
158 177 268
159 178 267
160 179 266
161 180 265
162 181 264
163 182 263
164 183 261
165 185 260
166 186 259
167 187 258
168 188 257
169 189 256
170 190 255
171 191 254
172 192 253
173 193 251
174 195 250
175 196 249
176 197 248
177 198 247
178 199 246
179 200 245
180 201 243
181 202 242
182 203 241
183 205 240
184 206 239
185 207 238
186 208 237
187 209 236
188 210 235
189 211 234
190 213 233
191 214 231
192 215 230
193 216 229
194 217 228
195 218 227
196 219 226
197 220 225
198 221 223
199 222 222
200 224 221
201 225 220
202 226 219
203 227 218
204 228 217
205 229 216
206 230 215
207 231 214
208 233 213
209 234 211
210 235 210
211 236 209
212 237 208
213 238 207
214 239 206
215 240 205
216 242 204
217 243 202
218 244 201
219 245 200
220 246 199
221 247 198
222 248 197
223 249 196
224 251 195
225 252 194
226 253 193
227 254 191
228 255 190
229 256 189
230 257 188
231 258 187
232 260 186
233 261 185
234 262 184
235 263 183
236 264 181
237 265 180
238 266 179
239 267 178
240 269 177
241 270 176
242 271 175
243 272 174
244 273 173
245 274 172
246 275 170
247 277 169
248 278 168
249 279 167
250 280 166
251 281 165
252 282 164
253 283 163
254 285 162
255 286 160
256 287 159
257 288 158
258 289 157
259 290 156
260 291 155
261 292 154
262 293 152
263 294 151
264 295 150
265 297 149
266 298 148
267 299 147
268 300 146
269 301 145
270 302 144
271 303 142
272 304 141
273 305 140
274 306 139
275 308 138
276 309 137
277 310 136
278 311 135
279 312 133
280 313 132
281 314 131
282 315 130
283 317 129
284 318 128
285 319 127
286 320 126
287 321 125
288 322 124
289 323 122
290 325 121
291 326 120
292 327 119
293 328 118
294 329 117
295 330 116
296 332 115
297 333 114
298 334 112
299 335 111
300 336 110
301 337 109
302 338 108
303 339 107
304 341 106
305 342 105
306 343 104
307 344 102
308 345 101
309 346 100
310 347 99
311 349 98
312 350 97
313 351 96
314 352 95
315 353 93
316 354 92
317 355 91
318 356 90
319 357 89
320 358 88
321 360 87
322 361 86
323 362 84
324 363 83
325 364 82
326 365 81
327 366 80
328 367 79
329 368 78
330 370 77
331 371 76
332 372 74
333 373 73
334 374 72
335 375 71
336 376 70
337 378 69
338 379 68
339 380 67
340 381 65
341 382 64
342 383 63
343 384 62
344 385 61
345 386 60
346 387 59
347 389 58
348 390 57
349 391 55
350 392 54
351 393 53
352 394 52
353 395 51
354 397 50
355 398 49
356 399 48
357 400 46
358 401 45
359 402 44
360 403 43
361 404 42
362 406 41
363 407 40
364 408 39
365 409 38
366 410 36
367 411 35
368 412 34
369 413 33
370 414 32
371 415 31
372 417 30
373 418 29
374 419 27
375 420 26
376 421 25
377 422 24
378 423 23
379 424 22
380 425 21
381 427 20
382 428 19
383 429 17
384 430 16
385 431 15
386 432 14
387 433 13
388 434 12
389 435 11
390 437 10
391 438 8
392 439 7
393 440 6
394 441 5
395 442 4
396 443 3
397 444 2
398 446 1
399 447 0
1 iter Passed Remaining
2 0 1 459
3 1 2 459
4 2 3 445
5 3 4 443
6 4 5 441
7 5 6 437
8 6 7 434
9 7 8 435
10 8 9 433
11 9 11 429
12 10 12 429
13 11 13 427
14 12 14 424
15 13 15 421
16 14 16 421
17 15 17 421
18 16 18 419
19 17 19 418
20 18 20 417
21 19 21 414
22 20 22 413
23 21 24 412
24 22 25 410
25 23 26 409
26 24 27 409
27 25 28 409
28 26 29 408
29 27 30 407
30 28 31 407
31 29 33 407
32 30 34 406
33 31 35 406
34 32 36 405
35 33 37 405
36 34 38 404
37 35 39 403
38 36 41 403
39 37 42 402
40 38 43 401
41 39 44 401
42 40 45 399
43 41 46 398
44 42 48 398
45 43 49 397
46 44 50 395
47 45 51 395
48 46 52 394
49 47 53 393
50 48 54 391
51 49 55 390
52 50 56 389
53 51 57 387
54 52 59 387
55 53 60 385
56 54 61 384
57 55 62 382
58 56 63 381
59 57 64 380
60 58 65 378
61 59 66 377
62 60 67 376
63 61 68 374
64 62 69 373
65 63 71 372
66 64 72 371
67 65 73 370
68 66 74 369
69 67 75 368
70 68 76 367
71 69 77 366
72 70 78 364
73 71 79 363
74 72 80 362
75 73 81 361
76 74 83 360
77 75 84 358
78 76 85 357
79 77 86 356
80 78 87 355
81 79 88 354
82 80 89 353
83 81 90 352
84 82 91 351
85 83 93 349
86 84 94 348
87 85 95 347
88 86 96 346
89 87 97 345
90 88 98 344
91 89 99 342
92 90 100 341
93 91 101 340
94 92 102 339
95 93 103 338
96 94 104 336
97 95 105 335
98 96 107 334
99 97 108 333
100 98 109 332
101 99 110 331
102 100 111 330
103 101 112 329
104 102 113 328
105 103 115 327
106 104 116 326
107 105 117 325
108 106 118 324
109 107 119 323
110 108 120 322
111 109 121 321
112 110 122 320
113 111 124 318
114 112 125 317
115 113 126 316
116 114 127 315
117 115 128 314
118 116 129 313
119 117 130 312
120 118 131 311
121 119 132 310
122 120 134 309
123 121 135 307
124 122 136 306
125 123 137 305
126 124 138 304
127 125 139 303
128 126 140 302
129 127 142 301
130 128 143 300
131 129 144 299
132 130 145 298
133 131 146 297
134 132 147 296
135 133 148 295
136 134 149 293
137 135 150 292
138 136 152 291
139 137 153 290
140 138 154 289
141 139 155 288
142 140 156 287
143 141 157 286
144 142 158 285
145 143 159 284
146 144 161 283
147 145 162 282
148 146 163 281
149 147 164 280
150 148 165 279
151 149 166 277
152 150 167 276
153 151 168 275
154 152 170 275
155 153 171 274
156 154 172 273
157 155 173 272
158 156 175 270
159 157 176 269
160 158 177 268
161 159 178 267
162 160 179 266
163 161 180 265
164 162 181 264
165 163 182 263
166 164 183 261
167 165 185 260
168 166 186 259
169 167 187 258
170 168 188 257
171 169 189 256
172 170 190 255
173 171 191 254
174 172 192 253
175 173 193 251
176 174 195 250
177 175 196 249
178 176 197 248
179 177 198 247
180 178 199 246
181 179 200 245
182 180 201 243
183 181 202 242
184 182 203 241
185 183 205 240
186 184 206 239
187 185 207 238
188 186 208 237
189 187 209 236
190 188 210 235
191 189 211 234
192 190 213 233
193 191 214 231
194 192 215 230
195 193 216 229
196 194 217 228
197 195 218 227
198 196 219 226
199 197 220 225
200 198 221 223
201 199 222 222
202 200 224 221
203 201 225 220
204 202 226 219
205 203 227 218
206 204 228 217
207 205 229 216
208 206 230 215
209 207 231 214
210 208 233 213
211 209 234 211
212 210 235 210
213 211 236 209
214 212 237 208
215 213 238 207
216 214 239 206
217 215 240 205
218 216 242 204
219 217 243 202
220 218 244 201
221 219 245 200
222 220 246 199
223 221 247 198
224 222 248 197
225 223 249 196
226 224 251 195
227 225 252 194
228 226 253 193
229 227 254 191
230 228 255 190
231 229 256 189
232 230 257 188
233 231 258 187
234 232 260 186
235 233 261 185
236 234 262 184
237 235 263 183
238 236 264 181
239 237 265 180
240 238 266 179
241 239 267 178
242 240 269 177
243 241 270 176
244 242 271 175
245 243 272 174
246 244 273 173
247 245 274 172
248 246 275 170
249 247 277 169
250 248 278 168
251 249 279 167
252 250 280 166
253 251 281 165
254 252 282 164
255 253 283 163
256 254 285 162
257 255 286 160
258 256 287 159
259 257 288 158
260 258 289 157
261 259 290 156
262 260 291 155
263 261 292 154
264 262 293 152
265 263 294 151
266 264 295 150
267 265 297 149
268 266 298 148
269 267 299 147
270 268 300 146
271 269 301 145
272 270 302 144
273 271 303 142
274 272 304 141
275 273 305 140
276 274 306 139
277 275 308 138
278 276 309 137
279 277 310 136
280 278 311 135
281 279 312 133
282 280 313 132
283 281 314 131
284 282 315 130
285 283 317 129
286 284 318 128
287 285 319 127
288 286 320 126
289 287 321 125
290 288 322 124
291 289 323 122
292 290 325 121
293 291 326 120
294 292 327 119
295 293 328 118
296 294 329 117
297 295 330 116
298 296 332 115
299 297 333 114
300 298 334 112
301 299 335 111
302 300 336 110
303 301 337 109
304 302 338 108
305 303 339 107
306 304 341 106
307 305 342 105
308 306 343 104
309 307 344 102
310 308 345 101
311 309 346 100
312 310 347 99
313 311 349 98
314 312 350 97
315 313 351 96
316 314 352 95
317 315 353 93
318 316 354 92
319 317 355 91
320 318 356 90
321 319 357 89
322 320 358 88
323 321 360 87
324 322 361 86
325 323 362 84
326 324 363 83
327 325 364 82
328 326 365 81
329 327 366 80
330 328 367 79
331 329 368 78
332 330 370 77
333 331 371 76
334 332 372 74
335 333 373 73
336 334 374 72
337 335 375 71
338 336 376 70
339 337 378 69
340 338 379 68
341 339 380 67
342 340 381 65
343 341 382 64
344 342 383 63
345 343 384 62
346 344 385 61
347 345 386 60
348 346 387 59
349 347 389 58
350 348 390 57
351 349 391 55
352 350 392 54
353 351 393 53
354 352 394 52
355 353 395 51
356 354 397 50
357 355 398 49
358 356 399 48
359 357 400 46
360 358 401 45
361 359 402 44
362 360 403 43
363 361 404 42
364 362 406 41
365 363 407 40
366 364 408 39
367 365 409 38
368 366 410 36
369 367 411 35
370 368 412 34
371 369 413 33
372 370 414 32
373 371 415 31
374 372 417 30
375 373 418 29
376 374 419 27
377 375 420 26
378 376 421 25
379 377 422 24
380 378 423 23
381 379 424 22
382 380 425 21
383 381 427 20
384 382 428 19
385 383 429 17
386 384 430 16
387 385 431 15
388 386 432 14
389 387 433 13
390 388 434 12
391 389 435 11
392 390 437 10
393 391 438 8
394 392 439 7
395 393 440 6
396 394 441 5
397 395 442 4
398 396 443 3
399 397 444 2
400 398 446 1
401 399 447 0
@@ -0,0 +1,181 @@
# Design notes — why the preprocessing modules do what they do
Reference for the methodology behind `src/`. The code carries short contract
docstrings; the reasoning lives here. Results and model performance are in the
top-level [README.md](../README.md); the production contract is in
[`production/classifier_symmetric/README.md`](../production/classifier_symmetric/README.md).
---
## `config.py` — why whole column families are excluded
The `hist_*_FN[+-]k`, `*_before_founding` and `*_after_founding` columns are
computed relative to a founding event and are **identically zero for every
non-founder row** in `datasets_complete`. In RQ1 (full-profile founder vs.
non-founder) a model would separate the classes on that artifact rather than on
signal, so they are excluded from `RQ1_FEATURE_COLUMNS`.
`RQ1_PREFOUNDING_PAIRS` handles the opposite direction. For founders, lifetime
totals include **post**-founding activity (e.g. continuing to publish part-time
after founding) — a reverse-causation confound that lets a model key off a
downstream *effect* of founding. Non-founders have no equivalent issue: their
full total is inherently "pre-founding". For the four metrics where a validated
`_before_founding` split exists, `data._apply_prefounding_equivalent` swaps it in.
## `data.py` — leakage-safe loading for RQ1 and RQ2
**RQ1** reads `evaluation/datasets_complete`, drops identifier and leaky columns
(`config.RQ1_DROP_COLUMNS`) and keeps the remaining full-career aggregates.
**RQ2** ("founds within N years") reads the curated 13-column half-profile
datasets (`datasets_halfprofiles_offset{1,2,3}`) as the positive class at each
horizon, paired with non-founders from `datasets_complete` on the same curated
columns, which are legitimate and non-degenerate for non-founders too.
Non-founders are split 70/30 per institution **once** (fixed `random_state`)
into a training pool (offsets 1–3) and a holdout pool reserved exclusively for
the offset-3/5 horizon-validation sets, so no individual is ever seen in both
training and horizon-generalization testing.
## `outliers.py` — two-stage multivariate outlier detection
Replaces the original `publications < 1000` / `patents < 1000` guard inherited
from the source notebooks. That guard does remove real rows (677 of them), but
the underlying problem is worse than a long tail: several of the most extreme
rows — "Hui Zhang" with 20,703 publications and 49,398 patents, "David Smith"
with 16,713 publications — are almost certainly **common-name collisions**.
Dimensions' name-based researcher matching merges dozens of distinct real people
who share a common name into one aggregated profile; these are not genuinely
hyper-prolific individuals.
A single hand-picked threshold on one or two columns cannot reliably separate
"very productive but real" from "impossible amalgamation of several people", so
outlier handling is two-staged:
1. A generous, documented **sanity ceiling** — any individual researcher with
more than 5,000 lifetime publications or patents is implausible even for
extreme large-collaboration physics — to drop flagrant collisions outright.
2. An **Isolation Forest** fit in log-space on the remaining rows across the
full numeric feature set (not just publications/patents), to catch subtler
multivariate anomalies — e.g. an internally inconsistent feature combination
that no single-column cutoff would flag.
## `yearly_counts.py` — per-person, per-year activity from the raw exports
The raw files in `dimensions_data/` are per-person record lists: each row is one
(record × tracked person) pair, keyed by `author_people`. They cover the
**founder cohort only** — non-founders were extracted live from the Dimensions
API, their per-record data was never saved, and the API key has since expired.
These exact yearly counts are used two ways:
1. Exact truncation of founder features at the founding year, replacing the
coarser `*_before_founding` splits.
2. Fitting the empirical career-trajectory curves in `career_curves.py`, which
calibrate the truncation of non-founder lifetime totals at a pseudo-founding
year — validated against the founders' exact counts, where both are known.
**Grants cap.** The `grants` feature counts grant IDs acknowledged on a person's
publications, so a single consortium paper can contribute 100+ "grants". The
module also emits a capped variant crediting at most `GRANTS_PER_PAPER_CAP`
distinct grant IDs per publication, mirroring the hyperauthorship cap in the
production profiling module. The empirical distribution of grants per linked
paper is p50 = 3, p90 ≈ 6–14 depending on institution, with a consortium tail
reaching 409. The cap sits above ordinary multi-grant papers and below the
consortium artifacts (~100+/paper) that inflated `grants` roughly 100×.
## `career_curves.py` — index-date truncation of lifetime totals
The symmetric redesign needs every person's activity counts **as of an index
year** (real founding year for founders, sampled pseudo-founding year for
non-founders). Exact per-year records exist only for founders; non-founders have
lifetime totals plus first/last activity years.
We therefore estimate, from the founders' raw trajectories, the average
cumulative-share curve
```
F(u) = expected fraction of lifetime output accumulated by career fraction u
u = (index_year - first_year) / (last_year + 1 - first_year)
```
separately per activity type (pubs / patents / grants) and career-length
stratum, and truncate totals as `total_at_index = total * F(u)`.
**Critical symmetry rule:** this construction is applied to **both** classes.
Founders' exact counts are used only to (a) fit the curves and (b) quantify the
approximation error against ground truth (`validate_on_founders`, log-space
R² 0.89–0.94). If founders got exact counts while non-founders got smoothed
ones, the residual noise texture alone would separate the classes — the exact
artifact this redesign removes.
## `symmetric.py` — the landmark design
Replaces the asymmetric RQ1/RQ2 preprocessing in `data.py`, where founders'
lifetime totals were truncated at their founding year while non-founders kept
full-career totals. That made observation-window length a function of the label:
the classifier's dominant feature (`publications`) partly encoded the truncation
rather than productivity — probability of founding fell monotonically with
output, and the 0.918 → 0.976 ROC-AUC "improvement" of the asymmetric fix was a
class-separability artifact.
1. **Index year.** Founders get their cleaned founding year; non-founders a
pseudo-founding year sampled from the founders' empirical
career-age-at-founding distribution, matched on career-start cohort
(landmark / matched index-date design, cf. immortal-time bias).
2. **Identical feature construction for both classes**, as deterministic
functions of (lifetime totals, first/last activity years, index year) via
`career_curves.py`. Founders' exact per-year records are used only to fit and
validate those curves — never as a founder-only feature pathway.
3. **Citation features excluded** (h-index, i10, g-index, citation sums/means):
citations cannot be historicized to the index year for either class, and
their full-career values are window-contaminated.
4. **`grants` de-inflated** with the per-paper cap from `yearly_counts.py`,
applied through a ratio curve so both classes go through the same mapping.
Two further filters, both applied to **both** classes:
- **Population definition.** The coach-facing tool scores academics, so the
modelled population requires a minimal academic record at the index date
(≥ 4 publications). Without it, a sampling-frame clash dominates the
thin-profile region: founders come from company databases (people with 1–3
lifetime papers included), non-founders from institutional researcher lists
(thin profiles underrepresented), making "long career + tiny record" read as
65–72% founder. Those people are out of scope for the product, not evidence.
- **Plausibility filter.** Profiles with a > 60-year publishing span or a
sustained lifetime rate above 25 papers/year are name-collision aggregates
(e.g. an "M Nakamura" spanning 1919–2023 with 28k papers). These concentrate
in the non-founder class — matched by name alone, vs company + name for
founders — so left in they asymmetrically inflate non-founder output.
## `sequence_data.py` — founder-only sequence dataset
Task: predict career-relative founding timing from pre-founding activity, using
the `hist_{pub,pat,grant}_FN-1..FN-20` columns (chronological yearly counts in
the 20 years strictly before founding).
**Non-founders are not included.** Their equivalent columns are computed with
`founded_year` hardcoded to literal year 0 in
`extraction/non_founders_scripts.ipynb` (`generate_history(..., nonstartup=True)`
forces `founded_year = 0`), so they are all-zero placeholders anchored at
1 BCE/1 CE — not real "N years before some reference point" sequences. There is
no valid apples-to-apples non-founder sequence in the extracted data; see
`experiments/run_sequence_reconstruction_spike.py` for an attempt to build one
from the raw per-paper/per-patent data instead.
**Target:** `founding_age = founded_on (year) - first_publication_year`, i.e.
how many years into their publishing career a founder started their company.
Only well-posed when `founding_age <= WINDOW` (20): the input window is a fixed
20-year lookback, so a longer real pre-founding career would look identical to a
≥ 20-year case regardless of the true value. This is a structural
right-censoring limit of the fixed window, not a modeling failure, so those rows
are excluded from the regression task by default and the excluded count is
always reported.
## `run_rq1_robustness.py` — `scale_pos_weight` under StratifiedKFold
StratifiedKFold keeps each fold's class ratio approximately equal to the
full-data ratio, so a single overall `scale_pos_weight` is a good per-fold
approximation for xgboost — which, unlike RF/LightGBM's
`class_weight="balanced"`, needs it set explicitly to correct for the ~37%
founder rate.
@@ -0,0 +1,149 @@
name: potential
channels:
- conda-forge
- defaults
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
dependencies:
- _openmp_mutex=4.5
- brotli=1.2.0
- brotli-bin=1.2.0
- bzip2=1.0.8
- ca-certificates=2026.7.22
- cairo=1.18.4
- contourpy=1.3.3
- cpython=3.11.15
- cycler=0.12.1
- filelock=3.32.2
- fmt=12.1.0
- font-ttf-dejavu-sans-mono=2.37
- font-ttf-inconsolata=3.000
- font-ttf-source-code-pro=2.038
- font-ttf-ubuntu=0.83
- fontconfig=2.18.2
- fonts-conda-ecosystem=1
- fonts-conda-forge=1
- fonttools=4.63.0
- freetype=2.14.3
- fribidi=1.0.16
- fsspec=2026.7.0
- gmp=6.3.0
- gmpy2=2.3.0
- graphite2=1.3.15
- icu=78.3
- jinja2=3.1.6
- joblib=1.5.3
- kiwisolver=1.5.0
- lcms2=2.19.1
- lerc=4.2.0
- libabseil=20260526.0
- libblas=3.11.0
- libbrotlicommon=1.2.0
- libbrotlidec=1.2.0
- libbrotlienc=1.2.0
- libcblas=3.11.0
- libcxx=22.1.8
- libdeflate=1.25
- libexpat=2.8.1
- libffi=3.5.2
- libfreetype=2.14.3
- libfreetype6=2.14.3
- libgcc=16.1.0
- libgfortran=16.1.0
- libgfortran5=16.1.0
- libglib=2.88.3
- libharfbuzz=14.3.0
- libiconv=1.18
- libintl=0.25.1
- libjpeg-turbo=3.2.0
- liblapack=3.11.0
- liblzma=5.8.3
- libopenblas=0.3.33
- libpng=1.6.58
- libprotobuf=7.35.1
- libraqm=0.11.0
- libsqlite=3.53.4
- libtiff=4.7.2
- libtorch=2.13.0
- libuv=1.52.1
- libwebp-base=1.6.0
- libxcb=1.17.0
- libzlib=1.3.2
- llvm-openmp=22.1.8
- markupsafe=3.0.3
- matplotlib=3.11.1
- matplotlib-base=3.11.1
- mpc=1.4.0
- mpfr=4.2.2
- munkres=1.1.4
- narwhals=2.24.0
- ncurses=6.6
- networkx=3.6.1
- nomkl=1.0
- numpy=2.4.6
- onednn=3.12
- openjpeg=2.5.4
- openssl=3.6.3
- optree=0.19.1
- packaging=26.2
- patsy=1.0.2
- pcre2=10.47
- pillow=12.3.0
- pip=26.2
- pixman=0.46.4
- pthread-stubs=0.4
- pybind11=3.0.3
- pybind11-abi=11
- pybind11-global=3.0.3
- pyparsing=3.3.2
- python=3.11.15
- python-dateutil=2.9.0.post0
- python_abi=3.11
- pytorch=2.13.0
- qhull=2020.2
- readline=8.3
- scikit-learn=1.9.0
- scipy=1.17.1
- seaborn=0.13.2
- seaborn-base=0.13.2
- setuptools=81.0.0
- six=1.17.0
- sleef=3.9.0
- statsmodels=0.14.6
- sympy=1.14.0
- threadpoolctl=3.6.0
- tk=8.6.13
- tornado=6.5.7
- tqdm=4.70.0
- typing-extensions=4.16.0
- typing_extensions=4.16.0
- unicodedata2=17.0.1
- wheel=0.47.0
- xorg-libxau=1.0.12
- xorg-libxdmcp=1.1.5
- zlib-ng=2.3.3
- zstd=1.5.7
- pip:
- autograd==1.9.1
- autograd-gamma==0.5.0
- catboost==1.2.10
- cloudpickle==3.1.2
- formulaic==1.2.2
- graphviz==0.21
- imbalanced-learn==0.14.2
- interface-meta==2.0.1
- lifelines==0.30.3
- lightgbm==4.7.0
- llvmlite==0.48.0
- mpmath==1.3.0
- numba==0.66.0
- pandas==2.3.3
- plotly==6.9.0
- pytz==2026.3.post1
- shap==0.51.0
- sklearn-compat==0.1.6
- slicer==0.0.8
- tabulate==0.10.0
- tzdata==2026.3
- wrapt==2.3.0
- xgboost==3.2.0
@@ -0,0 +1,255 @@
# Founder-Potential Classifier — Production Guide
Predicts whether a researcher will found a company ("founder" vs. "non-founder")
from their **full career profile** (publications, patents, grants, affiliations).
This is the RQ1 model from the research pipeline, re-packaged and validated for
an OpenAlex + patents + grants production data source.
## 1. Which two models, and why
Ranked empirically on the actual production feature set (87 columns — see
§3), by PR-AUC on a held-out 20% stratified split (`validated_holdout_metrics.csv`):
| rank | model | roc_auc | pr_auc | mcc | f1 | notes |
|------|----------------------|---------|--------|-------|-------|-------|
| 1 | **lightgbm** | 0.9764 | 0.9681 | 0.848 | 0.903 | single model, 1.3 MB, fastest |
| 2 | **stacking_ensemble**| 0.9748 | 0.9657 | 0.846 | 0.903 | RF+XGBoost+LightGBM blended by a logistic meta-learner, 29 MB, ~3x slower |
| 3 | xgboost | 0.9728 | 0.9640 | 0.843 | 0.900 | close 3rd, not shipped |
| 4 | catboost | 0.9710 | 0.9616 | 0.834 | 0.894 | not shipped |
`lightgbm` and `stacking_ensemble` are shipped in `models/`. They are within
noise of each other (Δpr_auc = 0.002); `lightgbm` is recommended as the default
for a production system (simpler, smaller, faster, marginally best), with
`stacking_ensemble` as a fallback/cross-check if you want a second opinion or
slightly better recall (0.905 vs. 0.890).
## 2. Files
```
production/classifier/
founder_classifier.py <- self-contained wrapper (pandas/numpy/joblib only)
models/
lightgbm.joblib <- recommended default
stacking_ensemble.joblib <- alternative / second opinion
feature_importance_lightgbm.csv
feature_importance_stacking_ensemble.csv
validated_holdout_metrics.csv <- honest held-out metrics for every candidate model
manifest.json
export_classifier.py <- reproducible export/training script
```
Each `.joblib` is a single self-contained bundle: `{model, feature_columns,
numeric_columns, log_columns, research_area_columns, research_area_categories,
label_meaning}`. You only need `founder_classifier.py` + one `.joblib` file to
run predictions — no dependency on the rest of this repository.
## 3. OpenAlex / production data compatibility
Your data comes from OpenAlex (publications + author metrics) with patents and
grants matched separately to OpenAlex author IDs. Two adjustments were made
relative to the original research pipeline, **both validated empirically, no
other change to the model was needed**:
### 3.1 Institution one-hot dropped
The research dataset one-hot-encodes 8 training institutions. A model trained
that way cannot be meaningfully applied to a 9th, unseen institution (its
one-hot vector would be all zeros — out of distribution). This production
model was trained **without** institution one-hot at all, so it works for any
institution, including yours. Cost: ROC-AUC drops from ~0.976 to ~0.95 in a
leave-one-institution-out test (see `experiments/README.md` §RQ1) — a modest,
worthwhile trade for portability.
### 3.2 Four Dimensions-specific columns dropped
| column | what it needs | why it's likely unavailable to you |
|---|---|---|
| `pat_citation_mean`, `pat_citation_sum` | citation counts **to** each patent | requires a patent source that tracks patent-citing-patent counts (e.g. USPTO/PatentsView citation graph); a simple OpenAlex-author-matched patent list usually won't have this |
| `linked_patents_to_publications` | patents that **cite the person's own papers** (non-patent-literature citations) | requires patent-to-paper citation linkage, which most patent sources don't expose |
| `grant_innovation_impact` | count of patents **linked to a specific grant** the person received | requires grant-to-patent linkage, on top of grant-to-person matching |
These were the exact "things we don't have" flagged as a concern. An ablation
(same data, same models, same split, only these 4 of 87 columns removed)
showed the difference is within noise:
| feature set | model | roc_auc | pr_auc | mcc |
|---|---|---|---|---|
| full (includes the 4 columns) | lightgbm | 0.9763 | 0.9685 | 0.8483 |
| **without the 4 columns** | lightgbm | 0.9765 | 0.9689 | 0.8514 |
| full (includes the 4 columns) | xgboost | 0.9744 | 0.9666 | 0.8426 |
| **without the 4 columns** | xgboost | 0.9741 | 0.9657 | 0.8437 |
Performance doesn't degrade (if anything, it's marginally better without
them — consistent with their near-zero permutation importance, see §6). **No
architecture/feature-engineering change was made** beyond simply not including
these 4 columns — per "if the model can function without it, don't adjust the
model," this is confirmed and no further adaptation was necessary.
### 3.3 Research-area categories
`publication_research_area`, `patent_research_area`, `grant_research_area` were
trained on the first 2 characters of Dimensions' FOR classification codes
(e.g. `"3202 Clinical Sciences"` → `"32"`). If your OpenAlex pipeline classifies
research area using OpenAlex Topics/Fields/Domains instead, the exact string
values will differ. You have two options:
1. **Do nothing.** Pass whatever string/code you have; unrecognized values
fall into an all-zero ("unknown") one-hot block for that column, which
tree models handle gracefully — you just lose the (modest, ~1-2% combined
importance, see §6) signal those columns carry.
2. **Map your OpenAlex field/domain names to the 2-digit codes** this model
was trained on for full signal. The 21 broad codes used are Dimensions
FOR 2-digit divisions (30=Agriculture, 31=Biological Sciences, 32=Biomedical
and Clinical Sciences, 33=Built Environment and Design, 34=Chemical
Sciences, 35=Commerce/Management/Tourism/Services, 36=Creative Arts and
Writing, 37=Earth Sciences, 38=Economics, 39=Education, 40=Engineering,
41=Environmental Sciences, 42=Health Sciences, 43=History/Heritage/
Archaeology, 44=Human Society, 46=Information and Computing Sciences,
47=Language/Communication/Culture, 48=Law and Legal Studies,
49=Mathematical Sciences, 50=Philosophy and Religious Studies,
51=Physical Sciences, 52=Psychology). `"n."` = unknown/not classified.
Institution and research-area handling aside, **h-index and i10-index are
natively provided by OpenAlex** (`summary_stats.h_index` /
`summary_stats.i10_index` on the Author object) — you do not need to compute
them yourself, despite them being "calculable."
## 4. Input schema
Pass a plain dict (or list of dicts for batch) with any subset of these keys —
missing numeric keys default to 0, missing categorical keys default to
"unknown". **Fields with no natural zero (the year fields, and any field where
"0" would be misleading) should always be supplied from real data** — see §7
caveats.
| field | type | description | source |
|---|---|---|---|
| `h-index` | int | author h-index | OpenAlex `summary_stats.h_index` (native) |
| `i10-index` | int | author i10-index | OpenAlex `summary_stats.i10_index` (native) |
| `publications` | int | total publication count | OpenAlex `works_count`, or count of that author's works |
| `pub_citation_mean` | float | mean citations per publication | mean of `cited_by_count` across the author's works |
| `pub_citation_sum` | float | total citations across publications | OpenAlex Author `cited_by_count` (native), or sum of works' `cited_by_count` |
| `first_publication_year` | int | year of first publication | min `publication_year` across works |
| `last_publication_year` | int | year of most recent publication | max `publication_year` across works |
| `patents` | int | total patent count | your patent-matching pipeline |
| `first_patent_year` | int | year of first patent | your patent-matching pipeline |
| `last_patent_year` | int | year of most recent patent | your patent-matching pipeline |
| `grants` | int | total grants/awards count | your grant-matching pipeline (or OpenAlex `awards` on works) |
| `first_grant_year` | int | year of first grant | your grant-matching pipeline |
| `last_grant_year` | int | year of most recent grant | your grant-matching pipeline |
| `affiliations` | int | count of distinct institutional affiliations | OpenAlex Author `affiliations` (native) |
| `activities_total` | int | publications + patents + grants | computed (sum) |
| `g-index` | int | g-index (largest g s.t. top-g works have ≥ g² combined citations) | computed from per-work `cited_by_count` — see §5 |
| `industry_collab_papers` | int | count of publications co-authored with a company-type institution | OpenAlex works' `authorships.institutions.type == "company"` |
| `grant_research_impact` | int | count of publications linked to a grant the person received | OpenAlex works' `awards` field, or your grant-to-publication matching |
| `publication_research_area` | str | broad research-area code of publications | see §3.3 |
| `patent_research_area` | str | broad research-area code of patents | see §3.3 |
| `grant_research_area` | str | broad research-area code of grants | see §3.3 |
Do **not** pass `institution` — it is not used by this model (see §3.1).
### 5. Computing g-index from OpenAlex
OpenAlex has no native g-index field. Compute it directly from a list of the
person's per-work citation counts (`cited_by_count`), sorted descending:
```python
def g_index(citation_counts: list[int]) -> int:
counts = sorted(citation_counts, reverse=True)
g = 0
cumulative = 0
for i, c in enumerate(counts, start=1):
cumulative += c
if cumulative >= i * i:
g = i
else:
break
return g
```
## 6. Output format
```python
clf.predict_one({...})
# {'prediction': 1, 'probability_founder': 0.87, 'label': 'founder', 'model': 'lightgbm'}
```
- `prediction`: 0 (non-founder) or 1 (founder), thresholded at `probability_founder >= 0.5`
- `probability_founder`: calibrated-ish probability in [0, 1] from `predict_proba`
- `label`: human-readable string version of `prediction`
`clf.predict([...])` (batch) returns a `pandas.DataFrame` with `prediction` and
`probability_founder` columns, one row per input record, in input order.
## 7. Usage example
```python
from founder_classifier import FounderClassifier
clf = FounderClassifier.load("models/lightgbm.joblib")
result = clf.predict_one({
"h-index": 12, "i10-index": 15, "publications": 40,
"pub_citation_mean": 22.5, "pub_citation_sum": 900,
"first_publication_year": 2005, "last_publication_year": 2021,
"patents": 2, "first_patent_year": 2015, "last_patent_year": 2018,
"grants": 3, "first_grant_year": 2010, "last_grant_year": 2019,
"affiliations": 2, "activities_total": 45, "g-index": 10,
"industry_collab_papers": 4, "grant_research_impact": 5,
"publication_research_area": "32", "patent_research_area": "32",
"grant_research_area": "32",
})
print(result)
# {'prediction': 1, 'probability_founder': 0.957, 'label': 'founder', 'model': 'lightgbm'}
```
For a second opinion, load `stacking_ensemble.joblib` the same way and compare.
## 8. Features that affect the classification most
Permutation importance (mean drop in PR-AUC when a feature is shuffled) on the
held-out test split, for both shipped models:
| feature | lightgbm | stacking_ensemble | OpenAlex availability |
|---|---|---|---|
| `publications` | **0.494** (dominant) | **0.323** (dominant) | native |
| `pub_citation_sum` | 0.100 | 0.069 | computed from works |
| `last_patent_year` | 0.089 | 0.081 | your patent pipeline |
| `pub_citation_mean` | 0.058 | 0.042 | computed from works |
| `i10-index` | 0.058 | 0.035 | native |
| `g-index` | 0.039 | 0.035 | computed (§5) |
| `activities_total` | 0.023 | 0.021 | computed |
| `grants` | 0.023 | 0.019 | your grant pipeline |
| `first_publication_year` | 0.016 | 0.015 | native |
| `last_publication_year` | 0.010 | — | native |
**`publications` alone dwarfs every other feature** — by a wide margin, the
single most important signal is simply how many papers someone has published.
Citation-based signals (`pub_citation_sum`/`mean`, `i10-index`, `g-index`) are
a clear second tier. Patent/grant *counts* matter far less than publication
volume, and the timing feature `last_patent_year` is surprisingly informative
(likely a proxy for "still recently active in applied/patentable work" close
to the founding decision). Research-area and institution-adjacent signals are
minor (each individual one-hot column contributes < 0.5% importance). Full
per-model tables: `feature_importance_lightgbm.csv`,
`feature_importance_stacking_ensemble.csv`.
## 9. Caveats
- **This is a full-career-profile model** (RQ1): it answers "does this
person's overall profile look like a founder's?", not "will they found a
company in the next N years?" — for the latter, see the sequence models
(`../sequence/README.md`).
- **Out-of-distribution inputs are not guarded against.** A record with almost
all fields missing/zero is nonsensical (every real researcher has *some*
publications) and can produce an unreliable, overconfident prediction —
this was observed directly (an all-empty dict predicts "founder" at 99.7%
confidence, an artifact of the model extrapolating into a region with no
real training examples, not a meaningful result). Only call this model with
real profile data for someone who has at least some publication history.
- **Retraining on your own labeled data** (once you have enough founder/
non-founder examples from your own institution) will likely outperform this
model, especially for the research-area categorical signal (§3.3). This
model is a strong starting point / cold-start solution before you have your
own labels.
- Reproduce or retrain via `export_classifier.py` (depends on the full
`experiments/src` research package + `evaluation/datasets_complete`).
@@ -0,0 +1,144 @@
"""Export the two best RQ1 classifiers as standalone production artifacts,
adapted for an OpenAlex + patents + grants data pipeline.
Two adaptations vs `src/data.py::build_rq1_matrix`: the `institution` one-hot is
dropped (a model trained on 8 one-hots cannot be applied to a 9th, unseen
institution), and four Dimensions-specific columns are dropped as unavailable
when patents are matched to OpenAlex authors. Measured cost of each: README.md
in this directory, "OpenAlex / production data compatibility".
Run: conda run -n potential python production/classifier/export_classifier.py
(from the experiments/ directory)
"""
import json
import sys
from pathlib import Path
import joblib
import numpy as np
import pandas as pd
from sklearn.inspection import permutation_importance
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from src import config, data, evaluate, models, splits # noqa: E402
OUT_DIR = Path(__file__).resolve().parent
MODELS_DIR = OUT_DIR / "models"
MODELS_DIR.mkdir(exist_ok=True)
# Columns dropped for OpenAlex/production compatibility -- see module docstring.
UNAVAILABLE_COLUMNS = [
"pat_citation_mean",
"pat_citation_sum",
"linked_patents_to_publications",
"grant_innovation_impact",
]
RESEARCH_AREA_COLUMNS = ["publication_research_area", "patent_research_area", "grant_research_area"]
# The two models to ship, chosen empirically (see rank_production_models below).
SHIP_MODELS = ["lightgbm", "stacking_ensemble"]
def build_production_matrix(df):
"""Same as data.build_rq1_matrix(include_institution=False) minus the four
OpenAlex/production-unavailable columns."""
X, y, groups = data.build_rq1_matrix(df, include_institution=False)
X = X.drop(columns=UNAVAILABLE_COLUMNS)
return X, y, groups
def rank_and_validate(X, y):
"""Fit every candidate on a held-out split so we get honest metrics + a
permutation importance ranking for the *actual shipped* feature set."""
X_train, X_test, y_train, y_test = splits.stratified_holdout(X, y, test_size=0.2)
spw = (y_train == 0).sum() / (y_train == 1).sum()
candidates = {
**models.advanced_models(scale_pos_weight=spw),
"stacking_ensemble": models.stacking_model(scale_pos_weight=spw),
}
rows, fitted = [], {}
for name, model in candidates.items():
model, metrics, pred, proba = evaluate.fit_and_evaluate(model, X_train, y_train, X_test, y_test)
rows.append({"model": name, **metrics})
fitted[name] = model
table = evaluate.results_table(rows, sort_by="pr_auc")
print("Validated performance (held-out 20% split, production feature set):")
print(table[["accuracy", "precision", "recall", "f1", "roc_auc", "pr_auc", "mcc"]])
table.to_csv(OUT_DIR / "validated_holdout_metrics.csv")
# Permutation importance for each shipped model on the held-out split.
importances = {}
for name in SHIP_MODELS:
result = permutation_importance(
fitted[name], X_test, y_test, n_repeats=20, random_state=config.RANDOM_STATE, scoring="average_precision"
)
imp_df = pd.DataFrame(
{"feature": X.columns, "importance_mean": result.importances_mean, "importance_std": result.importances_std}
).sort_values("importance_mean", ascending=False)
imp_df.to_csv(OUT_DIR / f"feature_importance_{name}.csv", index=False)
importances[name] = imp_df
print(f"\nTop 10 features for {name} (permutation importance, PR-AUC drop):")
print(imp_df.head(10).to_string(index=False))
return table, importances
def fit_final_bundles(X, y):
"""Refit each shipped model on ALL available labeled data (standard practice
for a deployed artifact -- validated metrics above already establish that
generalization performance holds up on unseen individuals/institutions)."""
spw = (y == 0).sum() / (y == 1).sum()
candidates = {
**models.advanced_models(scale_pos_weight=spw),
"stacking_ensemble": models.stacking_model(scale_pos_weight=spw),
}
numeric_columns = [c for c in config.RQ1_NUMERIC_COLUMNS if c not in UNAVAILABLE_COLUMNS]
# Persist the *actual* categories seen at training time for each research-area
# column (needed to reindex one-hot columns identically at inference time).
raw_df = data.load_rq1_raw()
broad_categories = {
col: sorted(data._broad_research_area(raw_df[col]).unique().tolist()) for col in RESEARCH_AREA_COLUMNS
}
for name in SHIP_MODELS:
model = candidates[name]
model.fit(X, y)
bundle = {
"model": model,
"model_name": name,
"feature_columns": X.columns.tolist(),
"numeric_columns": numeric_columns,
"log_columns": [c for c in config.RQ1_LOG_COLUMNS if c not in UNAVAILABLE_COLUMNS],
"research_area_columns": RESEARCH_AREA_COLUMNS,
"research_area_categories": broad_categories,
"label_meaning": {0: "non-founder", 1: "founder"},
}
out_path = MODELS_DIR / f"{name}.joblib"
joblib.dump(bundle, out_path)
print(f"Saved {out_path} ({out_path.stat().st_size / 1024:.0f} KB)")
def main():
raw_df = data.load_rq1_raw()
X, y, _ = build_production_matrix(raw_df)
print(f"Production feature matrix: {X.shape[0]} rows x {X.shape[1]} columns\n")
table, importances = rank_and_validate(X, y)
top2 = table.index[:2].tolist()
print(f"\nTop-2 by PR-AUC on production feature set: {top2}")
fit_final_bundles(X, y)
manifest = {
"shipped_models": SHIP_MODELS,
"feature_count": X.shape[1],
"unavailable_columns_dropped": UNAVAILABLE_COLUMNS,
"institution_onehot_dropped": True,
}
with open(OUT_DIR / "manifest.json", "w") as f:
json.dump(manifest, f, indent=2)
print("\nDone.")
if __name__ == "__main__":
main()
@@ -0,0 +1,88 @@
feature,importance_mean,importance_std
publications,0.49372270392208406,0.009435105555281502
pub_citation_sum,0.10041155476971034,0.003075116147541558
last_patent_year,0.08897556673923894,0.00369039716968687
pub_citation_mean,0.05843840173995631,0.0035635258840383387
i10-index,0.058276972447521766,0.0028493921400149316
g-index,0.03926107174812248,0.002908392365462608
activities_total,0.02269603064081724,0.0014262023325240447
grants,0.022629143919601975,0.0018617301145260297
first_publication_year,0.016383482397344773,0.0014781488366511484
last_publication_year,0.01044333199563966,0.0012914478475198282
last_grant_year,0.008814204773467744,0.0006485422255609053
patents,0.007948968544722036,0.00072369450238458
publication_research_area_32,0.004622593405503084,0.0005567329882739705
industry_collab_papers,0.004127688678751134,0.0005178389595278936
affiliations,0.0038678024032746117,0.0006972880130649415
first_patent_year,0.003812250467041056,0.000739110083304315
first_grant_year,0.0030673049491659722,0.0005750427084734693
h-index,0.0026992385419333962,0.00038040011240434297
grant_research_area_32,0.0024383846686938824,0.0006597174523401329
grant_research_impact,0.002092380085101797,0.0009209829823855754
patent_research_area_46,0.0015450646662926114,0.0003408238801588627
publication_research_area_46,0.0011186842180353428,0.0003636648316547925
publication_research_area_31,0.0007689503487253891,0.0003229045550739315
publication_research_area_35,0.000357006395234688,0.000184261296332344
patent_research_area_35,0.0003289822271172027,0.0002457177044892662
grant_research_area_46,0.0003235675420170059,0.00012528589983147148
patent_research_area_32,0.000284992232621617,9.07382535848989e-05
publication_research_area_42,0.00017982554980572885,0.00010724763462688804
publication_research_area_51,0.00015147606865889007,0.00017482583322384033
publication_research_area_33,0.00014482998247801194,0.00014293663951790765
publication_research_area_44,0.0001390054811560959,5.095898280286692e-05
grant_research_area_42,0.00010679798913335037,0.00011517614876712806
publication_research_area_52,7.58659457399391e-05,8.67872358194002e-05
publication_research_area_n.,3.733479496259573e-05,8.266304276802761e-05
publication_research_area_47,3.577968510939944e-05,3.644548262290321e-05
grant_research_area_33,2.7053741977389746e-05,1.3158619878764252e-05
publication_research_area_39,2.6107088659182988e-05,5.314752896673858e-05
patent_research_area_40,2.293468269031207e-05,5.522677589407406e-05
publication_research_area_30,2.1227363888909333e-05,4.0118754214761545e-05
grant_research_area_52,1.86106929250307e-05,4.737938770158699e-05
grant_research_area_31,1.7230231395626296e-05,3.303598252316633e-05
grant_research_area_36,1.5591805886239208e-05,1.4155029297892755e-05
grant_research_area_34,1.5538090563826935e-05,6.936899814614872e-05
grant_research_area_51,1.516446191183185e-05,5.6983277869360076e-05
publication_research_area_36,1.4576087392986769e-05,2.765828911048998e-05
patent_research_area_34,1.2943329198150666e-05,3.9589156048043156e-05
publication_research_area_40,1.0268854792233605e-05,0.00010816661742277235
patent_research_area_31,7.878647505654702e-06,2.0077897722361337e-05
grant_research_area_30,2.291815734967173e-06,4.65029322854696e-06
publication_research_area_38,1.9069228478219014e-06,8.771931389052964e-05
patent_research_area_41,6.061759097786279e-07,9.166702390722687e-06
publication_research_area_43,2.6636266048374323e-08,1.1610479193812715e-07
grant_research_area_37,0.0,0.0
grant_research_area_49,0.0,0.0
grant_research_area_50,0.0,0.0
grant_research_area_43,0.0,0.0
grant_research_area_44,0.0,0.0
patent_research_area_52,0.0,0.0
grant_research_area_47,0.0,0.0
grant_research_area_48,0.0,0.0
grant_research_area_38,0.0,0.0
patent_research_area_47,0.0,0.0
patent_research_area_39,0.0,0.0
patent_research_area_38,0.0,0.0
patent_research_area_50,0.0,0.0
patent_research_area_49,0.0,0.0
patent_research_area_48,0.0,0.0
patent_research_area_33,0.0,0.0
patent_research_area_44,0.0,0.0
patent_research_area_43,0.0,0.0
patent_research_area_42,0.0,0.0
publication_research_area_50,0.0,0.0
patent_research_area_36,0.0,0.0
patent_research_area_37,0.0,0.0
publication_research_area_48,0.0,0.0
grant_research_area_35,-1.417609221954219e-07,6.811830057220157e-06
patent_research_area_30,-2.1125354582318678e-07,5.786182703937211e-06
publication_research_area_41,-3.4822477430085376e-06,5.216332045233262e-05
grant_research_area_40,-3.6317530620000316e-06,1.3350040147139044e-05
publication_research_area_34,-3.646016761565951e-06,7.33822378850038e-05
grant_research_area_39,-7.1453723731962345e-06,7.890200374144198e-06
publication_research_area_49,-1.1344775302907229e-05,8.151635605591815e-06
patent_research_area_51,-1.6526341596556638e-05,1.1059230863873912e-05
patent_research_area_n.,-2.1720602983060776e-05,7.506139221086442e-05
publication_research_area_37,-2.9818072529441686e-05,1.7457265886226128e-05
grant_research_area_n.,-4.7040468339543115e-05,0.00011100424284573038
grant_research_area_41,-0.0001130957822619516,2.660738658933989e-05
1 feature importance_mean importance_std
2 publications 0.49372270392208406 0.009435105555281502
3 pub_citation_sum 0.10041155476971034 0.003075116147541558
4 last_patent_year 0.08897556673923894 0.00369039716968687
5 pub_citation_mean 0.05843840173995631 0.0035635258840383387
6 i10-index 0.058276972447521766 0.0028493921400149316
7 g-index 0.03926107174812248 0.002908392365462608
8 activities_total 0.02269603064081724 0.0014262023325240447
9 grants 0.022629143919601975 0.0018617301145260297
10 first_publication_year 0.016383482397344773 0.0014781488366511484
11 last_publication_year 0.01044333199563966 0.0012914478475198282
12 last_grant_year 0.008814204773467744 0.0006485422255609053
13 patents 0.007948968544722036 0.00072369450238458
14 publication_research_area_32 0.004622593405503084 0.0005567329882739705
15 industry_collab_papers 0.004127688678751134 0.0005178389595278936
16 affiliations 0.0038678024032746117 0.0006972880130649415
17 first_patent_year 0.003812250467041056 0.000739110083304315
18 first_grant_year 0.0030673049491659722 0.0005750427084734693
19 h-index 0.0026992385419333962 0.00038040011240434297
20 grant_research_area_32 0.0024383846686938824 0.0006597174523401329
21 grant_research_impact 0.002092380085101797 0.0009209829823855754
22 patent_research_area_46 0.0015450646662926114 0.0003408238801588627
23 publication_research_area_46 0.0011186842180353428 0.0003636648316547925
24 publication_research_area_31 0.0007689503487253891 0.0003229045550739315
25 publication_research_area_35 0.000357006395234688 0.000184261296332344
26 patent_research_area_35 0.0003289822271172027 0.0002457177044892662
27 grant_research_area_46 0.0003235675420170059 0.00012528589983147148
28 patent_research_area_32 0.000284992232621617 9.07382535848989e-05
29 publication_research_area_42 0.00017982554980572885 0.00010724763462688804
30 publication_research_area_51 0.00015147606865889007 0.00017482583322384033
31 publication_research_area_33 0.00014482998247801194 0.00014293663951790765
32 publication_research_area_44 0.0001390054811560959 5.095898280286692e-05
33 grant_research_area_42 0.00010679798913335037 0.00011517614876712806
34 publication_research_area_52 7.58659457399391e-05 8.67872358194002e-05
35 publication_research_area_n. 3.733479496259573e-05 8.266304276802761e-05
36 publication_research_area_47 3.577968510939944e-05 3.644548262290321e-05
37 grant_research_area_33 2.7053741977389746e-05 1.3158619878764252e-05
38 publication_research_area_39 2.6107088659182988e-05 5.314752896673858e-05
39 patent_research_area_40 2.293468269031207e-05 5.522677589407406e-05
40 publication_research_area_30 2.1227363888909333e-05 4.0118754214761545e-05
41 grant_research_area_52 1.86106929250307e-05 4.737938770158699e-05
42 grant_research_area_31 1.7230231395626296e-05 3.303598252316633e-05
43 grant_research_area_36 1.5591805886239208e-05 1.4155029297892755e-05
44 grant_research_area_34 1.5538090563826935e-05 6.936899814614872e-05
45 grant_research_area_51 1.516446191183185e-05 5.6983277869360076e-05
46 publication_research_area_36 1.4576087392986769e-05 2.765828911048998e-05
47 patent_research_area_34 1.2943329198150666e-05 3.9589156048043156e-05
48 publication_research_area_40 1.0268854792233605e-05 0.00010816661742277235
49 patent_research_area_31 7.878647505654702e-06 2.0077897722361337e-05
50 grant_research_area_30 2.291815734967173e-06 4.65029322854696e-06
51 publication_research_area_38 1.9069228478219014e-06 8.771931389052964e-05
52 patent_research_area_41 6.061759097786279e-07 9.166702390722687e-06
53 publication_research_area_43 2.6636266048374323e-08 1.1610479193812715e-07
54 grant_research_area_37 0.0 0.0
55 grant_research_area_49 0.0 0.0
56 grant_research_area_50 0.0 0.0
57 grant_research_area_43 0.0 0.0
58 grant_research_area_44 0.0 0.0
59 patent_research_area_52 0.0 0.0
60 grant_research_area_47 0.0 0.0
61 grant_research_area_48 0.0 0.0
62 grant_research_area_38 0.0 0.0
63 patent_research_area_47 0.0 0.0
64 patent_research_area_39 0.0 0.0
65 patent_research_area_38 0.0 0.0
66 patent_research_area_50 0.0 0.0
67 patent_research_area_49 0.0 0.0
68 patent_research_area_48 0.0 0.0
69 patent_research_area_33 0.0 0.0
70 patent_research_area_44 0.0 0.0
71 patent_research_area_43 0.0 0.0
72 patent_research_area_42 0.0 0.0
73 publication_research_area_50 0.0 0.0
74 patent_research_area_36 0.0 0.0
75 patent_research_area_37 0.0 0.0
76 publication_research_area_48 0.0 0.0
77 grant_research_area_35 -1.417609221954219e-07 6.811830057220157e-06
78 patent_research_area_30 -2.1125354582318678e-07 5.786182703937211e-06
79 publication_research_area_41 -3.4822477430085376e-06 5.216332045233262e-05
80 grant_research_area_40 -3.6317530620000316e-06 1.3350040147139044e-05
81 publication_research_area_34 -3.646016761565951e-06 7.33822378850038e-05
82 grant_research_area_39 -7.1453723731962345e-06 7.890200374144198e-06
83 publication_research_area_49 -1.1344775302907229e-05 8.151635605591815e-06
84 patent_research_area_51 -1.6526341596556638e-05 1.1059230863873912e-05
85 patent_research_area_n. -2.1720602983060776e-05 7.506139221086442e-05
86 publication_research_area_37 -2.9818072529441686e-05 1.7457265886226128e-05
87 grant_research_area_n. -4.7040468339543115e-05 0.00011100424284573038
88 grant_research_area_41 -0.0001130957822619516 2.660738658933989e-05
@@ -0,0 +1,88 @@
feature,importance_mean,importance_std
publications,0.3230278846487044,0.008800711081034392
last_patent_year,0.08101404353937798,0.003480354323912183
pub_citation_sum,0.06944573429242025,0.0023742502139718533
pub_citation_mean,0.04195885153037786,0.002746357604547681
i10-index,0.03509514754261644,0.002072326739488329
g-index,0.03475697537302609,0.0027920726906895555
activities_total,0.020832913783627394,0.0014390050076316802
grants,0.019315451629353792,0.001705491344778238
first_publication_year,0.01533644702358411,0.001435861122416683
patents,0.008735459919303962,0.0008664045277148187
last_grant_year,0.00852538114821349,0.0008305351559872533
last_publication_year,0.008331716857098981,0.0011919353376131424
first_patent_year,0.004574821675796192,0.0008880825668646626
publication_research_area_32,0.004441482221912802,0.0005572418844014392
industry_collab_papers,0.003930523472063801,0.0005518946751113055
affiliations,0.0030599567623114943,0.0010611086743104593
h-index,0.0022261144135681645,0.0005336009903611933
first_grant_year,0.001877805851533959,0.0005896264410466552
grant_research_impact,0.0016329087316583224,0.0008953253954886791
patent_research_area_46,0.0014940981662886431,0.00037841991074793763
publication_research_area_46,0.0011952487055542527,0.00034735364248049394
grant_research_area_32,0.0010669398974483101,0.0005455308275487198
publication_research_area_31,0.0007084035131517119,0.00039455107739638177
patent_research_area_32,0.0004949758173996676,0.00013130610768396822
publication_research_area_35,0.0003405892771618013,0.00018230752010422918
patent_research_area_35,0.00024248321741005552,0.00020196690479766595
grant_research_area_46,0.00023508021158918924,9.949654281666699e-05
patent_research_area_31,0.00018850830793534779,1.8256292436730253e-05
publication_research_area_42,0.0001534410024302102,0.00011124851671888089
publication_research_area_51,0.00014695613247396323,0.0001875329044078893
publication_research_area_33,0.00013417272910902777,0.00013187331917677777
publication_research_area_44,0.00012981751828511912,5.6292634597364995e-05
grant_research_area_42,5.536599990074165e-05,9.314538927088949e-05
publication_research_area_52,4.569653237913584e-05,7.131642881143011e-05
grant_research_area_31,4.1136563865012964e-05,2.3807980697386147e-05
patent_research_area_n.,3.185352984812484e-05,0.00011635744728257203
publication_research_area_39,2.6622233316087042e-05,5.5811212973079166e-05
grant_research_area_51,2.4725683306386914e-05,6.600893864529117e-05
publication_research_area_47,2.433370482673447e-05,3.423391460291853e-05
patent_research_area_40,1.8682066021558085e-05,8.373831667931168e-05
grant_research_area_52,1.736850855706962e-05,4.3586661490832724e-05
grant_research_area_33,1.5434425911642348e-05,7.2096436009871756e-06
publication_research_area_36,1.4747622070127031e-05,2.0277087228790355e-05
grant_research_area_36,1.142451025916702e-05,6.434576027802877e-06
patent_research_area_34,8.701666157134858e-06,5.019098976931235e-05
grant_research_area_44,4.732059862427862e-06,7.2140691084721474e-06
grant_research_area_37,4.64755563436281e-06,5.030937947155093e-07
patent_research_area_41,2.4010968401655396e-06,5.567934448611626e-06
patent_research_area_30,1.6321848824496498e-06,5.780242227170541e-06
publication_research_area_38,9.905339116711431e-07,8.061592993393422e-05
grant_research_area_30,9.659275313156358e-07,2.7523076304409766e-06
publication_research_area_43,5.303685287838533e-07,1.367136262691942e-07
patent_research_area_49,4.579606428523064e-07,0.0
patent_research_area_37,3.063681887460756e-07,1.7298092956127215e-06
grant_research_area_43,2.3512457243968222e-07,8.230462484551701e-07
grant_research_area_38,2.3508913500336347e-07,8.200887763327234e-07
grant_research_area_48,5.8234010574809145e-08,9.530097523591368e-07
patent_research_area_33,3.072036073303863e-08,2.2691555351810873e-07
publication_research_area_48,1.7983012212674508e-08,2.2325824775832636e-07
patent_research_area_36,1.7241796396172405e-08,7.515524809601928e-08
publication_research_area_50,6.931049512104437e-10,3.8784698331014374e-07
grant_research_area_47,0.0,0.0
patent_research_area_44,0.0,0.0
patent_research_area_52,0.0,0.0
patent_research_area_50,0.0,0.0
patent_research_area_38,0.0,0.0
patent_research_area_39,0.0,0.0
patent_research_area_43,0.0,0.0
patent_research_area_47,-1.1949865169613717e-08,3.48654680192657e-07
grant_research_area_50,-2.1918295900480445e-08,3.3714424966572567e-07
grant_research_area_49,-8.055305700249704e-08,1.891835873709255e-07
patent_research_area_48,-4.387378193082547e-07,1.0065335879337318e-07
grant_research_area_35,-1.4239535029381135e-06,8.577025403596155e-06
grant_research_area_40,-2.8211226388352716e-06,5.5951614108796825e-06
patent_research_area_42,-3.3309781069246203e-06,1.8056260442298824e-06
patent_research_area_51,-6.034520616637895e-06,9.657390477461269e-06
grant_research_area_34,-6.555808500358085e-06,5.834666117024457e-05
publication_research_area_30,-6.9231426525317994e-06,2.3604223992407287e-05
grant_research_area_39,-7.033697191549671e-06,4.692880133162641e-06
publication_research_area_41,-1.6315314521198056e-05,3.6394138064735864e-05
publication_research_area_49,-2.0970323580088435e-05,1.491599600665608e-05
publication_research_area_37,-2.4155344697468494e-05,1.268437871622249e-05
publication_research_area_40,-2.4661278046128608e-05,9.362093188879351e-05
publication_research_area_34,-4.671501475140283e-05,6.79190773369875e-05
grant_research_area_n.,-6.528496794626637e-05,0.00033896991853285866
grant_research_area_41,-8.826418872341368e-05,2.1901303480798616e-05
publication_research_area_n.,-8.850450506823205e-05,0.00012674501058303883
1 feature importance_mean importance_std
2 publications 0.3230278846487044 0.008800711081034392
3 last_patent_year 0.08101404353937798 0.003480354323912183
4 pub_citation_sum 0.06944573429242025 0.0023742502139718533
5 pub_citation_mean 0.04195885153037786 0.002746357604547681
6 i10-index 0.03509514754261644 0.002072326739488329
7 g-index 0.03475697537302609 0.0027920726906895555
8 activities_total 0.020832913783627394 0.0014390050076316802
9 grants 0.019315451629353792 0.001705491344778238
10 first_publication_year 0.01533644702358411 0.001435861122416683
11 patents 0.008735459919303962 0.0008664045277148187
12 last_grant_year 0.00852538114821349 0.0008305351559872533
13 last_publication_year 0.008331716857098981 0.0011919353376131424
14 first_patent_year 0.004574821675796192 0.0008880825668646626
15 publication_research_area_32 0.004441482221912802 0.0005572418844014392
16 industry_collab_papers 0.003930523472063801 0.0005518946751113055
17 affiliations 0.0030599567623114943 0.0010611086743104593
18 h-index 0.0022261144135681645 0.0005336009903611933
19 first_grant_year 0.001877805851533959 0.0005896264410466552
20 grant_research_impact 0.0016329087316583224 0.0008953253954886791
21 patent_research_area_46 0.0014940981662886431 0.00037841991074793763
22 publication_research_area_46 0.0011952487055542527 0.00034735364248049394
23 grant_research_area_32 0.0010669398974483101 0.0005455308275487198
24 publication_research_area_31 0.0007084035131517119 0.00039455107739638177
25 patent_research_area_32 0.0004949758173996676 0.00013130610768396822
26 publication_research_area_35 0.0003405892771618013 0.00018230752010422918
27 patent_research_area_35 0.00024248321741005552 0.00020196690479766595
28 grant_research_area_46 0.00023508021158918924 9.949654281666699e-05
29 patent_research_area_31 0.00018850830793534779 1.8256292436730253e-05
30 publication_research_area_42 0.0001534410024302102 0.00011124851671888089
31 publication_research_area_51 0.00014695613247396323 0.0001875329044078893
32 publication_research_area_33 0.00013417272910902777 0.00013187331917677777
33 publication_research_area_44 0.00012981751828511912 5.6292634597364995e-05
34 grant_research_area_42 5.536599990074165e-05 9.314538927088949e-05
35 publication_research_area_52 4.569653237913584e-05 7.131642881143011e-05
36 grant_research_area_31 4.1136563865012964e-05 2.3807980697386147e-05
37 patent_research_area_n. 3.185352984812484e-05 0.00011635744728257203
38 publication_research_area_39 2.6622233316087042e-05 5.5811212973079166e-05
39 grant_research_area_51 2.4725683306386914e-05 6.600893864529117e-05
40 publication_research_area_47 2.433370482673447e-05 3.423391460291853e-05
41 patent_research_area_40 1.8682066021558085e-05 8.373831667931168e-05
42 grant_research_area_52 1.736850855706962e-05 4.3586661490832724e-05
43 grant_research_area_33 1.5434425911642348e-05 7.2096436009871756e-06
44 publication_research_area_36 1.4747622070127031e-05 2.0277087228790355e-05
45 grant_research_area_36 1.142451025916702e-05 6.434576027802877e-06
46 patent_research_area_34 8.701666157134858e-06 5.019098976931235e-05
47 grant_research_area_44 4.732059862427862e-06 7.2140691084721474e-06
48 grant_research_area_37 4.64755563436281e-06 5.030937947155093e-07
49 patent_research_area_41 2.4010968401655396e-06 5.567934448611626e-06
50 patent_research_area_30 1.6321848824496498e-06 5.780242227170541e-06
51 publication_research_area_38 9.905339116711431e-07 8.061592993393422e-05
52 grant_research_area_30 9.659275313156358e-07 2.7523076304409766e-06
53 publication_research_area_43 5.303685287838533e-07 1.367136262691942e-07
54 patent_research_area_49 4.579606428523064e-07 0.0
55 patent_research_area_37 3.063681887460756e-07 1.7298092956127215e-06
56 grant_research_area_43 2.3512457243968222e-07 8.230462484551701e-07
57 grant_research_area_38 2.3508913500336347e-07 8.200887763327234e-07
58 grant_research_area_48 5.8234010574809145e-08 9.530097523591368e-07
59 patent_research_area_33 3.072036073303863e-08 2.2691555351810873e-07
60 publication_research_area_48 1.7983012212674508e-08 2.2325824775832636e-07
61 patent_research_area_36 1.7241796396172405e-08 7.515524809601928e-08
62 publication_research_area_50 6.931049512104437e-10 3.8784698331014374e-07
63 grant_research_area_47 0.0 0.0
64 patent_research_area_44 0.0 0.0
65 patent_research_area_52 0.0 0.0
66 patent_research_area_50 0.0 0.0
67 patent_research_area_38 0.0 0.0
68 patent_research_area_39 0.0 0.0
69 patent_research_area_43 0.0 0.0
70 patent_research_area_47 -1.1949865169613717e-08 3.48654680192657e-07
71 grant_research_area_50 -2.1918295900480445e-08 3.3714424966572567e-07
72 grant_research_area_49 -8.055305700249704e-08 1.891835873709255e-07
73 patent_research_area_48 -4.387378193082547e-07 1.0065335879337318e-07
74 grant_research_area_35 -1.4239535029381135e-06 8.577025403596155e-06
75 grant_research_area_40 -2.8211226388352716e-06 5.5951614108796825e-06
76 patent_research_area_42 -3.3309781069246203e-06 1.8056260442298824e-06
77 patent_research_area_51 -6.034520616637895e-06 9.657390477461269e-06
78 grant_research_area_34 -6.555808500358085e-06 5.834666117024457e-05
79 publication_research_area_30 -6.9231426525317994e-06 2.3604223992407287e-05
80 grant_research_area_39 -7.033697191549671e-06 4.692880133162641e-06
81 publication_research_area_41 -1.6315314521198056e-05 3.6394138064735864e-05
82 publication_research_area_49 -2.0970323580088435e-05 1.491599600665608e-05
83 publication_research_area_37 -2.4155344697468494e-05 1.268437871622249e-05
84 publication_research_area_40 -2.4661278046128608e-05 9.362093188879351e-05
85 publication_research_area_34 -4.671501475140283e-05 6.79190773369875e-05
86 grant_research_area_n. -6.528496794626637e-05 0.00033896991853285866
87 grant_research_area_41 -8.826418872341368e-05 2.1901303480798616e-05
88 publication_research_area_n. -8.850450506823205e-05 0.00012674501058303883
@@ -0,0 +1,109 @@
"""Self-contained inference wrapper for the founder-potential classifier.
Depends only on pandas, numpy and joblib -- no dependency on the `experiments/src`
research package, so this file + a `models/*.joblib` bundle can be copied into any
other codebase.
Usage:
from founder_classifier import FounderClassifier
clf = FounderClassifier.load("models/lightgbm.joblib")
result = clf.predict_one({
"h-index": 12, "i10-index": 15, "publications": 40,
"pub_citation_mean": 22.5, "pub_citation_sum": 900,
"first_publication_year": 2005, "last_publication_year": 2021,
"patents": 2, "first_patent_year": 2015, "last_patent_year": 2018,
"grants": 3, "first_grant_year": 2010, "last_grant_year": 2019,
"affiliations": 2, "activities_total": 45, "g-index": 10,
"industry_collab_papers": 4, "grant_research_impact": 5,
"publication_research_area": "32", "patent_research_area": "32",
"grant_research_area": "32",
})
print(result) # {'prediction': 1, 'probability_founder': 0.87, ...}
See README.md in this directory for the full input schema and output format.
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
import joblib
import numpy as np
import pandas as pd
class FounderClassifier:
"""Wraps a fitted sklearn/LightGBM classifier bundle produced by
`export_classifier.py`, handling feature preprocessing (log1p transforms +
research-area one-hot encoding) so callers can pass plain feature dicts."""
def __init__(self, bundle: dict[str, Any]):
self._model = bundle["model"]
self.model_name: str = bundle["model_name"]
self.feature_columns: list[str] = bundle["feature_columns"]
self.numeric_columns: list[str] = bundle["numeric_columns"]
self.log_columns: list[str] = bundle["log_columns"]
self.research_area_columns: list[str] = bundle["research_area_columns"]
self.research_area_categories: dict[str, list[str]] = bundle["research_area_categories"]
@classmethod
def load(cls, path: str | Path) -> "FounderClassifier":
return cls(joblib.load(path))
# -- preprocessing -----------------------------------------------------
@staticmethod
def _broad_research_area(value: Any) -> str:
"""Collapse a research-area code to its 2-character broad category,
matching the training-time `data._broad_research_area` transform."""
if value is None or (isinstance(value, float) and np.isnan(value)):
return "n."
return str(value).strip()[:2]
def _to_frame(self, records: list[dict[str, Any]]) -> pd.DataFrame:
df = pd.DataFrame.from_records(records, index=range(len(records)))
# Missing numeric/categorical columns default to 0 / "n." (matches
# training-time fillna(0) for any column that couldn't be parsed as
# numeric, and the "n.a." fallback in data._broad_research_area).
for col in self.numeric_columns:
if col not in df.columns:
df[col] = 0
numeric = df[self.numeric_columns].apply(pd.to_numeric, errors="coerce").fillna(0)
for col in self.log_columns:
numeric[col] = np.log1p(numeric[col].clip(lower=0))
for col in self.research_area_columns:
if col not in df.columns:
df[col] = None
cat_df = pd.DataFrame(
{col: df[col].apply(self._broad_research_area) for col in self.research_area_columns}
)
categorical = pd.get_dummies(cat_df, prefix=cat_df.columns.tolist())
X = pd.concat([numeric, categorical], axis=1)
# Reindex to the exact training-time column order; any research-area
# category not seen during training (or missing here) becomes all-zero
# for that one-hot block, which tree models handle gracefully.
X = X.reindex(columns=self.feature_columns, fill_value=0)
return X
# -- public API ----------------------------------------------------------
def predict(self, records: list[dict[str, Any]]) -> pd.DataFrame:
"""Batch prediction. `records` is a list of raw feature dicts (see
README for the input schema). Returns a DataFrame with one row per
input record: `prediction` (0/1) and `probability_founder` (0-1)."""
X = self._to_frame(records)
proba = self._model.predict_proba(X)[:, 1]
pred = (proba >= 0.5).astype(int)
return pd.DataFrame({"prediction": pred, "probability_founder": proba})
def predict_one(self, record: dict[str, Any]) -> dict[str, Any]:
"""Single-record convenience wrapper around `predict`."""
row = self.predict([record]).iloc[0]
return {
"prediction": int(row["prediction"]),
"probability_founder": float(row["probability_founder"]),
"label": "founder" if row["prediction"] == 1 else "non-founder",
"model": self.model_name,
}
@@ -0,0 +1,14 @@
{
"shipped_models": [
"lightgbm",
"stacking_ensemble"
],
"feature_count": 87,
"unavailable_columns_dropped": [
"pat_citation_mean",
"pat_citation_sum",
"linked_patents_to_publications",
"grant_innovation_impact"
],
"institution_onehot_dropped": true
}
@@ -0,0 +1,7 @@
model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
lightgbm,0.9293725371324644,0.9161016949152543,0.8897119341563786,0.902713987473904,0.9763933319115661,0.9680867355662728,0.8475189762274824,0.05343925129722402
stacking_ensemble,0.9284631706577751,0.9009009009009009,0.9053497942386831,0.90311986863711,0.9748029272608074,0.9657412183896399,0.8464233584967953,0.05796028500367217
xgboost,0.927250682024856,0.9079497907949791,0.8930041152263375,0.9004149377593361,0.9728476023474957,0.9640546196916957,0.8431866284933476,0.05821008235216141
catboost,0.9227038496514095,0.8993344425956739,0.8897119341563786,0.8944973107157633,0.9709767935988879,0.9616152397971783,0.833539926599779,0.061886894004821225
random_forest,0.8911791451955138,0.8639455782312925,0.8362139917695474,0.849853617733166,0.9489078062921099,0.9295025250699936,0.764805465144283,0.09198073526810191
svm_rbf,0.8742043043346469,0.8424657534246576,0.8098765432098766,0.8258497691984893,0.9312032495280522,0.8989506133295394,0.7277986141772655,0.09551038087976692
1 model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 lightgbm 0.9293725371324644 0.9161016949152543 0.8897119341563786 0.902713987473904 0.9763933319115661 0.9680867355662728 0.8475189762274824 0.05343925129722402
3 stacking_ensemble 0.9284631706577751 0.9009009009009009 0.9053497942386831 0.90311986863711 0.9748029272608074 0.9657412183896399 0.8464233584967953 0.05796028500367217
4 xgboost 0.927250682024856 0.9079497907949791 0.8930041152263375 0.9004149377593361 0.9728476023474957 0.9640546196916957 0.8431866284933476 0.05821008235216141
5 catboost 0.9227038496514095 0.8993344425956739 0.8897119341563786 0.8944973107157633 0.9709767935988879 0.9616152397971783 0.833539926599779 0.061886894004821225
6 random_forest 0.8911791451955138 0.8639455782312925 0.8362139917695474 0.849853617733166 0.9489078062921099 0.9295025250699936 0.764805465144283 0.09198073526810191
7 svm_rbf 0.8742043043346469 0.8424657534246576 0.8098765432098766 0.8258497691984893 0.9312032495280522 0.8989506133295394 0.7277986141772655 0.09551038087976692
@@ -0,0 +1,97 @@
# Founder classifier v2 (symmetric landmark design)
Replaces `../classifier` (v1). **v1 must not be used for ranking or coaching:**
it was trained with asymmetric observation windows (founders truncated at
founding, non-founders full-career) and behaves as an inverse-productivity
score in production — 1 publication → P(founder)=0.996, 800 → 0.0002. Its
0.976 ROC-AUC was inflated by window-length leakage, and the companion
`p_within_3y`/`p_within_5y` outputs were degenerate (exactly 1.0 for every
author).
## What changed
| | v1 (asymmetric) | v2 (symmetric) |
|---|---|---|
| Observation window | founders truncated at founding; non-founders full career | every person truncated at an index year (real founding / cohort-matched pseudo-founding), identical construction for both classes |
| Citation features (h-index, i10, g-index, citation sums) | included, window-contaminated | excluded — not historicizable to an index date |
| `grants` | raw (consortium lists inflate ~100×, up to 409 grants/paper) | de-inflated via per-paper cap mapping (cap 10), applied inside the wrapper |
| Institution one-hots | included | excluded — production scores people from arbitrary institutions |
| Population | anyone matched | academics only: ≥4 publications at index (both classes), plausibility-filtered (see below) |
| Headline holdout | ROC-AUC 0.976 / PR-AUC 0.969 (artifact) | ROC-AUC 0.874 / PR-AUC 0.726 (honest); temporal-split PR-AUC ≈0.73; 5-fold OOF 0.866/0.726 |
| P(founder) vs output | strictly decreasing, incl. absurd tail (1 pub → 0.996) | plateau ~0.39–0.42 for 5–17 pubs at index, ~0.10–0.18 for 100+ (matches empirical label rates) |
| p_within_{1,3,5}y | 3y/5y ≡ 1.0 for everyone | all horizons discriminate (ROC-AUC 0.86–0.89; ≤0.1% of scores above 0.99) |
| Coach-facing number | raw probability | **percentile** vs the ~9k-academic reference cohort, with an out-of-population guard |
Two dataset artifacts beyond the window asymmetry were found and filtered
during the rebuild, both class-asymmetric (rules applied to BOTH classes):
- **Sampling-frame clash on thin profiles.** Founders come from company
databases (people with 1–3 lifetime papers included); non-founders from
institutional researcher lists (thin profiles underrepresented). Left in,
"long career + tiny record" reads as 65–72% founder. Hence the ≥4
publications population rule, enforced at inference by `in_population`.
- **Name-collision aggregates.** Non-founders matched by name alone merge
multiple researchers (e.g. an "M Nakamura" spanning 1919–2023 with 28,050
papers); 4.2% of non-founders vs 2.2% of founders had physically impossible
profiles (>60-year span or >25 papers/year sustained). These rows are
dropped.
Training details: `experiments/docs/DESIGN_NOTES.md` (design rationale), `experiments/src/symmetric.py`,
`experiments/run_rq1_symmetric.py`, `experiments/run_rq2_symmetric.py`;
results in `experiments/results/rq1_symmetric` and `rq2_symmetric`.
## Interpreting the outputs
- `percentile` (0–100): rank of the person's score against out-of-fold scores
of the reference cohort (founders + non-founders from the 8 training
institutions). This is the number to surface to coaches ("higher founding
propensity than X% of comparable academics").
- `probability_founder` (0–1): raw case-control model output. The training
cohort is ~26% founders — far above any real-world base rate — so this is
NOT a population founding probability. Do not display it as one.
- `p_within_{k}y` bundles: same construction at index−k; conditional-timing
evidence, same percentile caveat.
## Input contract (per record)
Lifetime totals **as of `scoring_year`** (for live profiles: the current year):
`publications`, `patents`, `grants` (raw — the wrapper de-inflates),
`first_publication_year`, `first_patent_year`, `first_grant_year`,
`industry_collab_papers`, `linked_patents_to_publications`,
`publication_research_area`, `patent_research_area`, `grant_research_area`.
Missing fields default to 0 / "n.a.". Citation fields are accepted but ignored.
```python
from founder_classifier_v2 import FounderClassifierV2
clf = FounderClassifierV2.load("models/founder_classifier_v2.joblib")
clf.predict_one({...}, scoring_year=2026)
```
## Migrating smart-guide `profiling/multipliers/founding.py`
1. Copy this directory (wrapper + `models/*.joblib`) next to the v1 classifier.
2. Point the classifier loader at `founder_classifier_v2.joblib` and pass
`scoring_year` (extraction snapshot year).
3. Surface `percentile` as `founding.percentile`; keep `probability_founder`
internal. Replace the degenerate `p_within_3y/5y` fields with the v2
bundles' outputs.
4. Remove the README stop-block once v1 is no longer referenced.
## Known limitations (documented, not hidden)
- Non-founder historical snapshots are curve-estimates (empirical career
curves fitted on founders' raw per-year records; log-space R² 0.89–0.94 vs
ground truth), because non-founders' per-record data was never saved and the
Dimensions API key is dead. Founders' snapshots use the same construction so
fidelity is class-symmetric.
- Pseudo-founding years for non-founders are sampled (seeded) from the
founders' career-age-at-founding distribution, cohort-matched by decade of
first publication.
- Reference cohort is 8 research universities, index years ≈1950–2023; scoring
profiles far outside that population extrapolates.
- Conditional on career age, the score declines with publication volume beyond
~20–40 papers at index (hyper-prolific researchers found less in this
cohort). The empirical label rates support it after cleaning, but residual
moderate name-collisions in the non-founder class could still contribute.
Communicate to coaches as "the model favours focused mid-volume researchers",
and treat very-high-output percentiles as conservative.
@@ -0,0 +1,99 @@
"""Export the symmetric founder classifier as a self-contained v2 bundle.
Produces models/founder_classifier_v2.joblib (and p_within_{k}y bundles) with:
- the final model refit on the full symmetric dataset;
- preprocessing metadata (feature order, log columns, research-area columns);
- the grants de-inflation mapping fitted on raw founder records;
- reference score quantiles for percentile ranking, computed from 5-fold
OUT-OF-FOLD predictions (in-sample scores would shift live percentiles).
Run with: conda run -n potential python experiments/production/classifier_symmetric/export_classifier_v2.py
"""
import json
import sys
from pathlib import Path
import joblib
import numpy as np
import pandas as pd
from sklearn.model_selection import StratifiedKFold, cross_val_predict
HERE = Path(__file__).resolve().parent
sys.path.insert(0, str(HERE.parents[1]))
from src import career_curves as cc
from src import config, models, symmetric
MODELS_DIR = HERE / "models"
PRIMARY = "lightgbm"
def _grants_cap_table():
"""The binned r -> capped_share mapping as plain arrays for the bundle."""
yearly = cc.load_yearly()
per_person = yearly.groupby("author_people").agg(
pubs=("pubs", "sum"), grants=("grants", "sum"), capped=("grants_capped", "sum")
)
per_person = per_person[per_person["grants"] > 0]
r = per_person["grants"] / per_person["pubs"].clip(lower=1)
share = per_person["capped"] / per_person["grants"]
bins = np.unique(np.quantile(r, np.linspace(0, 1, 21)))
idx = np.clip(np.digitize(r, bins) - 1, 0, len(bins) - 2)
binned = pd.DataFrame({"bin": idx, "share": share}).groupby("bin")["share"].median()
centers = (bins[:-1] + bins[1:]) / 2
return centers[binned.index.to_numpy()], binned.to_numpy()
def _export(feats, X, y, label, model_name):
spw = (y == 0).sum() / (y == 1).sum()
model = models.advanced_models(scale_pos_weight=spw)[model_name]
cv = StratifiedKFold(n_splits=5, shuffle=True, random_state=config.RANDOM_STATE)
oof = cross_val_predict(model, X, y, cv=cv, method="predict_proba", n_jobs=-1)[:, 1]
model.fit(X, y)
cap_r, cap_share = _grants_cap_table()
bundle = {
"model": model,
"model_name": f"{model_name}_symmetric_{label}",
"feature_columns": X.columns.tolist(),
"numeric_columns": symmetric.SYMMETRIC_NUMERIC_COLUMNS,
"log_columns": symmetric.SYMMETRIC_LOG_COLUMNS,
"research_area_columns": [
"publication_research_area", "patent_research_area", "grant_research_area"],
"grants_cap_r": cap_r,
"grants_cap_share": cap_share,
"reference_score_quantiles": np.quantile(oof, np.linspace(0, 1, 1001)),
}
out = MODELS_DIR / f"{label}.joblib"
joblib.dump(bundle, out)
from sklearn.metrics import average_precision_score, roc_auc_score
stats = {
"rows": int(len(X)), "founders": int(y.sum()),
"oof_roc_auc": round(float(roc_auc_score(y, oof)), 4),
"oof_pr_auc": round(float(average_precision_score(y, oof)), 4),
}
print(f"{label}: {stats}")
return {"file": out.name, "model": bundle["model_name"], **stats}
def main():
MODELS_DIR.mkdir(exist_ok=True)
manifest = {"design": "symmetric landmark (see experiments/src/symmetric.py)", "bundles": []}
feats, attrition = symmetric.build_symmetric_dataset()
X, y, _ = symmetric.build_matrix(feats, include_institution=False)
manifest["attrition"] = {k: int(v) for k, v in attrition.items()}
manifest["bundles"].append(_export(feats, X, y, "founder_classifier_v2", PRIMARY))
for k in [1, 3, 5]:
feats_k, _ = symmetric.build_symmetric_dataset(offset=k)
feats_k = feats_k[feats_k["pubs_at_index"] > 0].reset_index(drop=True)
Xk, yk, _ = symmetric.build_matrix(feats_k, include_institution=False)
manifest["bundles"].append(_export(feats_k, Xk, yk, f"p_within_{k}y_v2", PRIMARY))
(HERE / "manifest.json").write_text(json.dumps(manifest, indent=2))
print(f"Manifest written to {HERE / 'manifest.json'}")
if __name__ == "__main__":
main()
@@ -0,0 +1,150 @@
"""Self-contained inference wrapper for the SYMMETRIC founder-potential classifier.
Depends only on pandas, numpy and joblib. Replaces v1 (../classifier), which
must not be used for ranking — see README.md in this directory for what changed,
the input contract and how to read the outputs.
Three contract points the caller must get right:
- `predict` requires `scoring_year`, the year the profile snapshot was taken.
- `percentile` is the coach-facing output; `probability_founder` is a raw
case-control score (~26% training base rate) and is NOT a population
founding probability.
- Pass `grants` RAW — the wrapper applies the training per-paper cap itself.
Usage:
from founder_classifier_v2 import FounderClassifierV2
clf = FounderClassifierV2.load("models/founder_classifier_v2.joblib")
result = clf.predict_one({
"publications": 40, "patents": 2, "grants": 3,
"first_publication_year": 2005,
"first_patent_year": 2015, "first_grant_year": 2010,
"industry_collab_papers": 4, "linked_patents_to_publications": 1,
"publication_research_area": "32 Biomedical and Clinical Sciences",
"patent_research_area": "32", "grant_research_area": "32",
}, scoring_year=2026)
# {'percentile': 71.4, 'probability_founder': 0.38, ...}
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
import joblib
import numpy as np
import pandas as pd
class FounderClassifierV2:
def __init__(self, bundle: dict[str, Any]):
self._model = bundle["model"]
self.model_name: str = bundle["model_name"]
self.feature_columns: list[str] = bundle["feature_columns"]
self.numeric_columns: list[str] = bundle["numeric_columns"]
self.log_columns: list[str] = bundle["log_columns"]
self.research_area_columns: list[str] = bundle["research_area_columns"]
# Grants de-inflation: interpolation table r -> capped_share, r = grants/pubs.
self.grants_cap_r: np.ndarray = np.asarray(bundle["grants_cap_r"])
self.grants_cap_share: np.ndarray = np.asarray(bundle["grants_cap_share"])
# Reference score quantiles for percentile ranking (1001 points on [0,1]).
self.reference_scores: np.ndarray = np.asarray(bundle["reference_score_quantiles"])
@classmethod
def load(cls, path: str | Path) -> "FounderClassifierV2":
return cls(joblib.load(path))
# -- preprocessing -------------------------------------------------------
@staticmethod
def _broad_research_area(value: Any) -> str:
if value is None or (isinstance(value, float) and np.isnan(value)):
return "n."
return str(value).strip()[:2]
def _capped_grants(self, grants: np.ndarray, pubs: np.ndarray) -> np.ndarray:
r = grants / np.clip(pubs, 1, None)
share = np.interp(r, self.grants_cap_r, self.grants_cap_share)
return grants * np.clip(share, 0.0, 1.0)
def _to_frame(self, records: list[dict[str, Any]], scoring_year: int) -> pd.DataFrame:
df = pd.DataFrame.from_records(records, index=range(len(records)))
for col in ["publications", "patents", "grants", "first_publication_year",
"first_patent_year", "first_grant_year",
"industry_collab_papers", "linked_patents_to_publications"]:
if col not in df.columns:
df[col] = np.nan
df[col] = pd.to_numeric(df[col], errors="coerce")
pubs = df["publications"].fillna(0).to_numpy(dtype=float)
pats = df["patents"].fillna(0).to_numpy(dtype=float)
grants = self._capped_grants(df["grants"].fillna(0).to_numpy(dtype=float), pubs)
first_pub = df["first_publication_year"].to_numpy(dtype=float)
career_age = np.clip(scoring_year - first_pub, 1, None)
has_pat = (df["first_patent_year"].notna() & (df["first_patent_year"] <= scoring_year)
& (pats > 0)).to_numpy()
has_grant = (df["first_grant_year"].notna() & (df["first_grant_year"] <= scoring_year)
& (grants > 0)).to_numpy()
numeric = pd.DataFrame({
"pubs_at_index": pubs,
"patents_at_index": pats,
"grants_at_index": grants,
"activities_at_index": pubs + pats + grants,
"industry_collab_at_index": df["industry_collab_papers"].fillna(0),
"linked_pat_pub_at_index": df["linked_patents_to_publications"].fillna(0),
"career_age_at_index": career_age,
"first_publication_year": first_pub,
"pub_rate": pubs / career_age,
"patent_rate": pats / career_age,
"grant_rate": grants / career_age,
"has_patents_at_index": has_pat.astype(int),
"has_grants_at_index": has_grant.astype(int),
"years_since_first_patent": np.where(
has_pat, np.clip(scoring_year - df["first_patent_year"].fillna(scoring_year), 0, None), 0),
"years_since_first_grant": np.where(
has_grant, np.clip(scoring_year - df["first_grant_year"].fillna(scoring_year), 0, None), 0),
})
numeric = numeric[self.numeric_columns].fillna(0)
for col in self.log_columns:
numeric[col] = np.log1p(numeric[col].clip(lower=0))
cat_df = pd.DataFrame({
col: df.get(col, pd.Series([None] * len(df))).apply(self._broad_research_area)
for col in self.research_area_columns
})
categorical = pd.get_dummies(cat_df, prefix=cat_df.columns.tolist())
X = pd.concat([numeric, categorical], axis=1)
return X.reindex(columns=self.feature_columns, fill_value=0)
# -- public API ----------------------------------------------------------
# The model's population is academics with a minimal record (see
# experiments/src/symmetric.py::MIN_PUBS_AT_INDEX): below this, the training
# classes come from clashing sampling frames (company databases vs
# institutional researcher lists) and scores are not evidence.
MIN_PUBLICATIONS = 4
def predict(self, records: list[dict[str, Any]], scoring_year: int) -> pd.DataFrame:
"""`records`: raw profile dicts (lifetime totals as of `scoring_year`).
Returns probability_founder (raw case-control score), percentile (rank
vs the reference cohort, 0-100; the coach-facing number), and
in_population. When in_population is False (fewer than
MIN_PUBLICATIONS publications) percentile is NaN: the person is outside
the modelled population and must not be ranked."""
X = self._to_frame(records, scoring_year)
proba = self._model.predict_proba(X)[:, 1]
pct = np.interp(proba, self.reference_scores, np.linspace(0, 100, len(self.reference_scores)))
pubs = pd.DataFrame.from_records(records).get("publications", pd.Series([0] * len(records)))
in_pop = pd.to_numeric(pubs, errors="coerce").fillna(0).to_numpy() >= self.MIN_PUBLICATIONS
return pd.DataFrame({
"probability_founder": proba,
"percentile": np.where(in_pop, np.round(pct, 1), np.nan),
"in_population": in_pop,
})
def predict_one(self, record: dict[str, Any], scoring_year: int) -> dict[str, Any]:
row = self.predict([record], scoring_year).iloc[0]
return {
"percentile": None if not row["in_population"] else float(row["percentile"]),
"probability_founder": float(row["probability_founder"]),
"in_population": bool(row["in_population"]),
"model": self.model_name,
}
@@ -0,0 +1,48 @@
{
"design": "symmetric landmark (see experiments/src/symmetric.py)",
"bundles": [
{
"file": "founder_classifier_v2.joblib",
"model": "lightgbm_symmetric_founder_classifier_v2",
"rows": 9017,
"founders": 2349,
"oof_roc_auc": 0.8659,
"oof_pr_auc": 0.7257
},
{
"file": "p_within_1y_v2.joblib",
"model": "lightgbm_symmetric_p_within_1y_v2",
"rows": 8515,
"founders": 2238,
"oof_roc_auc": 0.8614,
"oof_pr_auc": 0.7154
},
{
"file": "p_within_3y_v2.joblib",
"model": "lightgbm_symmetric_p_within_3y_v2",
"rows": 7706,
"founders": 2010,
"oof_roc_auc": 0.861,
"oof_pr_auc": 0.7176
},
{
"file": "p_within_5y_v2.joblib",
"model": "lightgbm_symmetric_p_within_5y_v2",
"rows": 6995,
"founders": 1833,
"oof_roc_auc": 0.8535,
"oof_pr_auc": 0.7038
}
],
"attrition": {
"initial": 16822,
"no_publication_anchor": 1430,
"implausible_profile_founders": 425,
"implausible_profile_nonfounders": 770,
"founder_bad_founding_year": 340,
"founder_bad_career_age": 723,
"duplicates": 0,
"below_min_pubs_at_index_founders": 1112,
"below_min_pubs_at_index_nonfounders": 3005
}
}
@@ -0,0 +1,188 @@
# Founder-Timing Sequence Model — Production Guide
Given a researcher's **year-by-year publication/patent/grant activity**,
predicts how many years into their career a "founding-like" moment falls, and
derives a probability of founding within the next 1/2/3/5 years. This is the
RQ-sequence model from the research pipeline (LSTM + Transformer), re-packaged
for a production app.
## 1. Which two models, and why
The two model architectures evaluated (`experiments/results/sequence_founders/sequence_founders_comparison.csv`),
ranked by held-out MAE, both far ahead of the naive heuristic (MAE=0.554) and
an aggregate-feature Random Forest (MAE=2.571) baseline:
| rank | model | MAE | RMSE | R2 |
|---|---|---|---|---|
| 1 | **transformer** | 0.180 | 0.269 | 0.998 |
| 2 | **lstm** | 0.208 | 0.258 | 0.998 |
Both are shipped (`models/transformer.pt`, `models/lstm.pt`) — they are close
enough (Δmae=0.028 years, i.e. ~10 days) that using both as a cross-check is
worthwhile. `transformer` is marginally better on MAE, `lstm` marginally better
on RMSE (fewer large errors); either is a reasonable default.
**Important scope note:** these predict `founding_age` only for the regime the
models were trained and validated on: founders whose company started **within
20 years of their first publication**. Founders/candidates outside that range
were excluded from training (see `experiments/README.md` "Sequence modeling"
section) — treat predictions for very long, established careers (> 20 years
of activity with no founding yet) with more caution; the model has not seen
that regime.
## 2. Files
```
production/sequence/
founder_timing_model.py <- self-contained wrapper (torch/numpy only)
models/
transformer.pt <- recommended default
lstm.pt <- alternative / second opinion
export_sequence_models.py <- reproducible export/training script
```
Each `.pt` is a single bundle: `{model_key, net_kwargs, state_dict, scaler_mean,
scaler_std, window, channels, held_out_metrics, held_out_residuals,
channel_ablation_mae_delta}`. You only need `founder_timing_model.py` + one
`.pt` file to run predictions.
## 3. Input schema
The model consumes a **20-year rolling window** (`WINDOW = 20`) of yearly
activity counts, ending at a reference year of your choice (typically "now").
You provide plain `{year: count}` dictionaries — the wrapper handles
alignment, left-zero-padding (for researchers with < 20 years of history) and
the log1p transform used at training time:
```python
model.build_sequence(
pub_counts_by_year={2015: 2, 2016: 3, 2018: 1, 2020: 4, 2022: 2},
pat_counts_by_year={2021: 1},
grant_counts_by_year={2019: 1},
as_of_year=2023,
)
```
| argument | type | description | source |
|---|---|---|---|
| `pub_counts_by_year` | dict[int, int] | publications per calendar year | OpenAlex works' `publication_year`, grouped/counted per author |
| `pat_counts_by_year` | dict[int, int] | patents per calendar year | your patent-matching pipeline |
| `grant_counts_by_year` | dict[int, int] | grants/awards per calendar year | your grant-matching pipeline |
| `as_of_year` | int | the "reference now" the 20-year window ends at (defaults to the latest year with any activity) | e.g. current year |
| `first_publication_year` | int | year of the researcher's first publication (needed only for `years_to_founding` / probability output, not for the raw point estimate) | OpenAlex, min `publication_year` |
Years outside `[as_of_year - 19, as_of_year]` are ignored; years inside that
range with no entry default to a count of 0.
## 4. Output format
```python
model.predict(
pub_counts_by_year=..., pat_counts_by_year=..., grant_counts_by_year=...,
first_publication_year=2015, as_of_year=2023,
)
# {
# 'model': 'transformer',
# 'predicted_founding_age': 8.4,
# 'current_career_age': 8,
# 'years_to_founding': 0.4,
# 'probability_founds_within': {1: 0.62, 2: 0.87, 3: 0.95, 5: 0.99}
# }
```
- `predicted_founding_age`: point estimate — "how many years into a career
does this activity pattern, taken as of `as_of_year`, look like a founding
moment."
- `current_career_age` = `as_of_year - first_publication_year` (only returned
if `first_publication_year` is given).
- `years_to_founding` = `predicted_founding_age - current_career_age`. Positive
means the model expects founding is still that many years away (given the
current trajectory); **zero or negative means the current profile already
looks like a typical founding-moment profile** — founding could plausibly
happen any time now (the model can't distinguish "already overdue" from
"right now" — see §6 caveats).
- `probability_founds_within`: `{k: P(founds within k years)}` for k in
(1, 2, 3, 5) by default (pass `horizons=(...)` to customize) — see §5.
If you omit `first_publication_year`, you get only `predicted_founding_age`
(no probability/timing-to-now fields, since those require knowing the current
career age).
## 5. Probability design (why a residual-based approach, not a retrained model)
The underlying LSTM/Transformer are **point-estimate regressors** (trained
with MSE loss) — they were not retrained with a probabilistic loss for this
deliverable, since the existing point predictions are already extremely
accurate (R²=0.998, MAE ≈ 2-2.5 months) and retraining risks losing that
accuracy for a marginal gain in "native" probability calibration.
Instead, probability is derived **post-hoc** from the held-out test set's
residual distribution (`held_out_residuals` in the bundle, ~460 examples per
model): `P(founds within k years) = P(residual <= k - years_to_founding)`,
i.e. the empirical fraction of held-out errors small enough that the true
founding time would fall within `k` years given the current point estimate.
This is non-parametric (no Gaussian assumption) and directly reflects the
model's actual observed error spread, at the cost of being a global (not
per-input) uncertainty estimate — every prediction uses the same residual
pool, it doesn't widen for "harder" inputs specifically.
## 6. Features that affect the prediction most
Channel ablation (zero out one channel, re-predict on the held-out test set,
measure the MAE increase) — `channel_ablation_mae_delta` in each bundle:
| channel | lstm MAE increase | transformer MAE increase |
|---|---|---|
| **pub** (publications) | **+8.29** | **+8.92** |
| pat (patents) | -0.003 (noise) | -0.020 (noise) |
| grant (grants) | -0.004 (noise) | -0.020 (noise) |
**The publication timeline completely dominates.** Removing it destroys the
model (MAE jumps from ~0.2 to ~8.5 years — essentially random). Removing
patents or grants changes nothing (the tiny negative deltas are noise, not a
real effect) — for *this specific task* (predicting how far into a career a
founding-like moment falls), patent/grant timing carries no additional signal
beyond what publication timing already provides. Practically: if your
production pipeline is missing patent/grant year-by-year data for some
researchers, this model will still work essentially as well using publication
history alone — you do not need to block on having complete patent/grant
histories for this specific model (unlike the classifier, where patent/grant
*counts* do matter — see `../classifier/README.md` §8).
## 7. Usage example
```python
from founder_timing_model import FounderTimingModel
model = FounderTimingModel.load("models/transformer.pt")
result = model.predict(
pub_counts_by_year={2016: 1, 2017: 2, 2018: 3, 2019: 2, 2020: 4, 2021: 3, 2022: 5},
pat_counts_by_year={2021: 1},
grant_counts_by_year={2020: 1},
first_publication_year=2016,
as_of_year=2022,
)
print(result)
```
## 8. Caveats
- **Founders-only training data.** These models were trained exclusively on
people who eventually founded a company, predicting *when in their career*
that happened. There is no matched non-founder sequence in the source data
(see `experiments/README.md` "Sequence modeling" for why), so this model
cannot tell you whether someone will found at all — only, conditional on a
founding-like pattern existing, how far into the career it falls. Combine
with the classifier (`../classifier/README.md`) for the "will they found at
all" question, and this model for "when."
- **Retrospective training, prospective use.** Training examples anchor the
20-year window at a *real, already-known* founding event. Using the window
ending at "now" for someone who hasn't founded yet is a reasonable,
intended extrapolation but was not directly validated against real
future-unknown outcomes (no ground truth exists yet for currently-active
non-founders). Treat `years_to_founding` as a useful signal/ranking tool
more than a precise calendar forecast.
- **Fixed 20-year window, [1, 20] founding-age range.** See §1.
- Reproduce or retrain via `export_sequence_models.py` (depends on the full
`experiments/src` research package + `evaluation/datasets_complete`).
@@ -0,0 +1,100 @@
"""Export the two best founder-timing sequence models (LSTM + Transformer) as
standalone production artifacts, with a post-hoc probability layer derived from
held-out residuals (see README.md "Probability design" section for rationale).
Run: conda run -n potential python production/sequence/export_sequence_models.py
(from the experiments/ directory)
"""
import sys
from pathlib import Path
import numpy as np
import torch
from sklearn.model_selection import train_test_split
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
from src import config, evaluate, sequence_data, sequence_models # noqa: E402
OUT_DIR = Path(__file__).resolve().parent
MODELS_DIR = OUT_DIR / "models"
MODELS_DIR.mkdir(exist_ok=True)
LSTM_KWARGS = {"hidden_size": 64, "num_layers": 1, "dropout": 0.2}
TRANSFORMER_KWARGS = {"d_model": 32, "n_heads": 4, "n_layers": 2, "dropout": 0.2}
def channel_ablation(model, X_test, y_test, base_mae):
"""Zero out one channel at a time (post-hoc, on the already-fitted model)
and measure the MAE increase -- a cheap proxy for channel importance."""
rows = {}
for c, name in enumerate(sequence_data.CHANNELS):
X_ablated = X_test.copy()
X_ablated[:, :, c] = 0.0
pred = model.predict(X_ablated)
metrics = evaluate.regression_metrics(y_test, pred)
rows[name] = metrics["mae"] - base_mae
return rows
def build_and_export(model_key, model_cls, net_kwargs, X_train, y_train, X_test, y_test, X_all, y_all):
print(f"\n=== {model_key} ===")
# 1) Fit on train only -> honest held-out metrics + residuals + channel ablation.
model = model_cls(**net_kwargs)
model.fit(X_train, y_train)
pred_test = model.predict(X_test)
metrics = evaluate.regression_metrics(y_test, pred_test)
residuals = (y_test - pred_test).astype(np.float32)
print(f" held-out: MAE={metrics['mae']:.3f} RMSE={metrics['rmse']:.3f} R2={metrics['r2']:.3f}")
ablation = channel_ablation(model, X_test, y_test, metrics["mae"])
print(" channel ablation (MAE increase when channel is zeroed out):")
for ch, delta in sorted(ablation.items(), key=lambda kv: -kv[1]):
print(f" {ch:6s} +{delta:.4f} MAE")
# 2) Refit on ALL data for the final shipped artifact (standard practice;
# generalization already validated above).
final_model = model_cls(**net_kwargs)
final_model.fit(X_all, y_all)
bundle = {
"model_key": model_key,
"net_kwargs": net_kwargs,
"state_dict": final_model.model_.state_dict(),
"scaler_mean": final_model.scaler_.mean_,
"scaler_std": final_model.scaler_.std_,
"window": sequence_data.WINDOW,
"channels": sequence_data.CHANNELS,
"held_out_metrics": metrics,
"held_out_residuals": residuals,
"channel_ablation_mae_delta": ablation,
}
out_path = MODELS_DIR / f"{model_key}.pt"
torch.save(bundle, out_path)
print(f" saved {out_path} ({out_path.stat().st_size / 1024:.0f} KB)")
return metrics, residuals, ablation
def main():
print("Building founder-only sequence dataset...")
sequences, founding_age, meta = sequence_data.build_founder_sequence_dataset()
idx = np.arange(len(sequences))
idx_train, idx_test = train_test_split(idx, test_size=0.2, random_state=config.RANDOM_STATE)
X_train, X_test = sequences[idx_train], sequences[idx_test]
y_train, y_test = founding_age[idx_train], founding_age[idx_test]
results = {}
results["lstm"] = build_and_export(
"lstm", sequence_models.LSTMRegressor, LSTM_KWARGS,
X_train, y_train, X_test, y_test, sequences, founding_age,
)
results["transformer"] = build_and_export(
"transformer", sequence_models.TransformerRegressor, TRANSFORMER_KWARGS,
X_train, y_train, X_test, y_test, sequences, founding_age,
)
print("\nDone. Shipped: lstm.pt, transformer.pt")
if __name__ == "__main__":
main()
@@ -0,0 +1,192 @@
"""Self-contained inference wrapper for the founder-timing sequence models
(LSTM / Transformer). Depends only on torch/numpy -- no dependency on the
`experiments/src` research package.
These models predict `founding_age`: how many years into a researcher's
publishing career a founding event falls, given their chronological
publication/patent/grant activity in the WINDOW (20) years up to and including
the reference point of interest ("now", if you're asking "how founding-ready
does this person look today").
Usage:
from founder_timing_model import FounderTimingModel
model = FounderTimingModel.load("models/transformer.pt")
result = model.predict(
pub_counts_by_year={2015: 2, 2016: 3, 2017: 1, 2020: 4, 2022: 2},
pat_counts_by_year={2021: 1},
grant_counts_by_year={2019: 1},
first_publication_year=2015,
as_of_year=2023,
)
print(result)
See README.md in this directory for the full input schema, output format and
the "probability" design rationale.
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
import numpy as np
import torch
from torch import nn
CHANNELS = ["pub", "pat", "grant"]
WINDOW = 20
DEFAULT_HORIZONS = (1, 2, 3, 5)
class _LSTMNet(nn.Module):
"""Must stay structurally identical to src/sequence_models.py::_LSTMNet --
state_dict keys are loaded directly from the exported bundle."""
def __init__(self, n_channels, hidden_size=64, num_layers=1, dropout=0.2):
super().__init__()
self.lstm = nn.LSTM(
input_size=n_channels, hidden_size=hidden_size, num_layers=num_layers,
batch_first=True, dropout=dropout if num_layers > 1 else 0.0,
)
self.head = nn.Sequential(nn.Dropout(dropout), nn.Linear(hidden_size, 1))
def forward(self, x):
_, (h_n, _) = self.lstm(x)
return self.head(h_n[-1]).squeeze(-1)
class _TransformerNet(nn.Module):
"""Must stay structurally identical to src/sequence_models.py::_TransformerNet."""
def __init__(self, n_channels, seq_len, d_model=32, n_heads=4, n_layers=2, dropout=0.2):
super().__init__()
self.input_proj = nn.Linear(n_channels, d_model)
self.pos_embedding = nn.Parameter(torch.zeros(1, seq_len, d_model))
encoder_layer = nn.TransformerEncoderLayer(
d_model=d_model, nhead=n_heads, dim_feedforward=d_model * 4,
dropout=dropout, batch_first=True,
)
self.encoder = nn.TransformerEncoder(encoder_layer, num_layers=n_layers)
self.head = nn.Sequential(nn.Dropout(dropout), nn.Linear(d_model, 1))
def forward(self, x):
h = self.input_proj(x) + self.pos_embedding
h = self.encoder(h)
pooled = h.mean(dim=1)
return self.head(pooled).squeeze(-1)
class FounderTimingModel:
def __init__(self, bundle: dict[str, Any]):
self.model_key: str = bundle["model_key"]
self.window: int = bundle["window"]
self.channels: list[str] = bundle["channels"]
self.scaler_mean = bundle["scaler_mean"]
self.scaler_std = bundle["scaler_std"]
self.held_out_metrics: dict = bundle["held_out_metrics"]
self.held_out_residuals: np.ndarray = bundle["held_out_residuals"]
self.channel_ablation_mae_delta: dict = bundle["channel_ablation_mae_delta"]
n_channels = len(self.channels)
if self.model_key == "lstm":
self._net = _LSTMNet(n_channels, **bundle["net_kwargs"])
elif self.model_key == "transformer":
self._net = _TransformerNet(n_channels, self.window, **bundle["net_kwargs"])
else:
raise ValueError(f"unknown model_key {self.model_key!r}")
self._net.load_state_dict(bundle["state_dict"])
self._net.eval()
@classmethod
def load(cls, path: str | Path) -> "FounderTimingModel":
return cls(torch.load(path, map_location="cpu", weights_only=False))
# -- building the input sequence ----------------------------------------
def build_sequence(
self,
pub_counts_by_year: dict[int, int] | None = None,
pat_counts_by_year: dict[int, int] | None = None,
grant_counts_by_year: dict[int, int] | None = None,
as_of_year: int | None = None,
) -> np.ndarray:
"""Turn per-year activity counts into the (WINDOW, 3) chronological,
log1p-transformed array the model expects (oldest year first, ending
at `as_of_year`). Years with no recorded activity default to 0; years
before the start of the available history are zero-padded on the left
(identical in spirit to how a founder with < WINDOW years of real
pre-founding history looks in the training data)."""
pub_counts_by_year = pub_counts_by_year or {}
pat_counts_by_year = pat_counts_by_year or {}
grant_counts_by_year = grant_counts_by_year or {}
if as_of_year is None:
all_years = list(pub_counts_by_year) + list(pat_counts_by_year) + list(grant_counts_by_year)
if not all_years:
raise ValueError("as_of_year must be given if no activity years are provided")
as_of_year = max(all_years)
years = range(as_of_year - self.window + 1, as_of_year + 1) # oldest -> newest, length WINDOW
channel_dicts = [pub_counts_by_year, pat_counts_by_year, grant_counts_by_year]
seq = np.zeros((self.window, len(self.channels)), dtype=np.float32)
for c, counts in enumerate(channel_dicts):
for t, year in enumerate(years):
seq[t, c] = max(0.0, float(counts.get(year, 0)))
return np.log1p(seq)
# -- prediction -----------------------------------------------------------
def _predict_point(self, sequence: np.ndarray) -> np.ndarray:
"""`sequence`: (WINDOW, 3) or (n, WINDOW, 3) raw (log1p'd) array."""
X = np.asarray(sequence, dtype=np.float32)
if X.ndim == 2:
X = X[None, ...]
X = (X - self.scaler_mean) / self.scaler_std
with torch.no_grad():
pred = self._net(torch.tensor(X, dtype=torch.float32)).numpy()
return pred
def residual_cdf(self, x: float) -> float:
"""Empirical P(residual <= x) from the held-out test set -- the
nonparametric basis for every probability this class reports."""
return float(np.mean(self.held_out_residuals <= x))
def predict(
self,
pub_counts_by_year: dict[int, int] | None = None,
pat_counts_by_year: dict[int, int] | None = None,
grant_counts_by_year: dict[int, int] | None = None,
first_publication_year: int | None = None,
as_of_year: int | None = None,
horizons: tuple[int, ...] = DEFAULT_HORIZONS,
) -> dict[str, Any]:
"""Full prediction for one researcher's history ending at `as_of_year`
(defaults to the latest year with any recorded activity).
Returns:
predicted_founding_age: point estimate of "years into career at the
hypothetical founding moment defined by `as_of_year`".
current_career_age: as_of_year - first_publication_year (if given).
years_to_founding: predicted_founding_age - current_career_age; <=0
means the current activity profile already looks like a typical
founding-moment profile (founding could happen any time now).
probability_founds_within: {k: P(founds within k years)} for each
horizon in `horizons`, derived from held-out residuals (see README).
"""
seq = self.build_sequence(pub_counts_by_year, pat_counts_by_year, grant_counts_by_year, as_of_year)
founding_age_hat = float(self._predict_point(seq)[0])
result: dict[str, Any] = {
"model": self.model_key,
"predicted_founding_age": founding_age_hat,
}
if first_publication_year is not None:
if as_of_year is None:
all_years = list((pub_counts_by_year or {})) + list((pat_counts_by_year or {})) + list((grant_counts_by_year or {}))
as_of_year = max(all_years) if all_years else first_publication_year
current_career_age = as_of_year - first_publication_year
years_to_founding = founding_age_hat - current_career_age
result["current_career_age"] = current_career_age
result["years_to_founding"] = years_to_founding
result["probability_founds_within"] = {
k: round(self.residual_cdf(k - years_to_founding), 4) for k in horizons
}
return result
@@ -0,0 +1,3 @@
,0
statistic,83.84013605442176
p_value,5.3644585148746496e-20
1 0
2 statistic 83.84013605442176
3 p_value 5.3644585148746496e-20
@@ -0,0 +1,100 @@
feature,importance_mean,importance_std
publications,0.4440974603875724,0.009511785737132612
pub_citation_sum,0.0641745019900897,0.0023847457046495867
last_patent_year,0.061419305752316286,0.0032168477466114997
i10-index,0.052808315628195955,0.002509050818671705
pub_citation_mean,0.042499292031831906,0.002523272278649042
g-index,0.036249565551782555,0.002265360125324732
activities_total,0.03186015042559469,0.001859142044274061
pat_citation_mean,0.023747584504377334,0.0018054623744417433
grants,0.014545800960367655,0.001636080338818295
first_publication_year,0.01341695838784518,0.0011208069436919059
last_publication_year,0.010105477585606454,0.001265829119215705
patents,0.009386919235293584,0.000828161224172823
last_grant_year,0.0061119416876279035,0.0006396038493956664
publication_research_area_32,0.005199808047404142,0.0006411887411683997
h-index,0.004761111131916573,0.0006185755476381059
pat_citation_sum,0.004029264901793272,0.0006407043313268342
affiliations,0.003924122102600141,0.0006734435898464144
industry_collab_papers,0.002771785899856466,0.000458393950826596
first_grant_year,0.0024780107524362215,0.00045174085545348724
linked_patents_to_publications,0.0017714854471442888,0.00038735536489506483
grant_research_impact,0.0017419551968919865,0.0007783860555244073
publication_research_area_31,0.0010347728515872068,0.0004380600676750018
publication_research_area_46,0.0010296404274699467,0.00027494253110439427
institution_stanford,0.0009637600715686423,0.00023666778366864807
patent_research_area_46,0.0007991644733361059,0.0003005059902911959
grant_research_area_32,0.0006102226280733592,0.0003698845134606399
institution_berkeley,0.00045373766528075123,0.00021951745011740962
institution_muenchen,0.0004130569816417906,7.580252297057787e-05
patent_research_area_32,0.00036940421614752863,0.00011610246817244868
publication_research_area_35,0.0003162362804154439,0.00017402147914398575
publication_research_area_42,0.00029062839366878477,0.00015928133313129265
institution_oxford,0.0002602274221759626,0.000185358155946732
first_patent_year,0.0002299601664907669,0.00015372021880899557
institution_telaviv,0.00022185659229883025,0.0002808557319380741
institution_harvard,0.00022091161950384407,0.00018883040518073856
patent_research_area_35,0.00017105334272454753,0.00013583506288295137
publication_research_area_51,0.0001581465869737786,0.00013922623521323216
grant_innovation_impact,0.00013702479636796828,0.0001422675814029339
institution_ude,0.00013034268850643517,5.51579297443134e-05
publication_research_area_33,0.00011963406695062462,9.734481095501337e-05
publication_research_area_40,6.163246509007791e-05,8.342838939511106e-05
grant_research_area_46,5.6425844484753186e-05,6.057990043771272e-05
grant_research_area_42,5.4768959582357504e-05,0.0001321879842622329
publication_research_area_44,4.6328393106159774e-05,4.109464765116167e-05
institution_toronto,4.203267111526077e-05,0.00013829259973950555
grant_research_area_34,3.648946572037404e-05,9.856576928560712e-05
publication_research_area_49,3.523595518664657e-05,1.0020003875083567e-05
publication_research_area_52,2.8243411024614362e-05,6.365046136625705e-05
grant_research_area_52,2.4976831800399558e-05,6.0461267957791294e-05
publication_research_area_39,2.2444089520501364e-05,5.4003334909501585e-05
publication_research_area_47,2.080080050642641e-05,2.1829610866522595e-05
patent_research_area_34,1.2265010515000175e-05,3.4309040012788196e-06
publication_research_area_34,1.0963870610469772e-05,5.079619737042506e-05
publication_research_area_37,9.739396381164278e-06,1.5473891954426686e-05
grant_research_area_31,9.05566937272062e-06,1.2355287634925927e-05
grant_research_area_33,7.176496559663237e-06,1.1600418122926559e-05
publication_research_area_36,6.871129506863527e-06,1.8889049455628318e-05
publication_research_area_50,6.313148147923942e-06,8.093717579945578e-06
patent_research_area_41,5.268894264148782e-06,1.4185767546691009e-05
grant_research_area_36,3.979969424106055e-06,8.741862922562177e-06
grant_research_area_51,2.6849918500770897e-06,7.727353969929902e-05
grant_research_area_39,2.6844415874804907e-06,4.9698681231697676e-06
patent_research_area_42,2.018322524721672e-06,4.003947557053808e-06
patent_research_area_n.,1.5509887295039881e-06,2.7724586593788047e-05
grant_research_area_35,2.794525058302799e-07,2.2550590120034133e-06
patent_research_area_30,1.1961448171393662e-07,6.938865295073371e-07
grant_research_area_47,0.0,0.0
publication_research_area_43,0.0,0.0
grant_research_area_43,0.0,0.0
patent_research_area_33,0.0,0.0
grant_research_area_38,0.0,0.0
grant_research_area_37,0.0,0.0
patent_research_area_37,0.0,0.0
patent_research_area_36,0.0,0.0
grant_research_area_49,0.0,0.0
patent_research_area_38,0.0,0.0
grant_research_area_30,0.0,0.0
patent_research_area_52,0.0,0.0
patent_research_area_50,0.0,0.0
patent_research_area_49,0.0,0.0
patent_research_area_48,0.0,0.0
patent_research_area_47,0.0,0.0
patent_research_area_39,0.0,0.0
patent_research_area_44,0.0,0.0
patent_research_area_43,0.0,0.0
grant_research_area_48,0.0,0.0
publication_research_area_48,-4.777574768688453e-07,2.5399584991121672e-06
grant_research_area_44,-2.6545860416726797e-06,8.853044030928573e-07
grant_research_area_40,-3.5805367832819624e-06,1.3088192634427606e-05
publication_research_area_41,-4.670934500378143e-06,1.529003843001235e-05
patent_research_area_51,-5.39510398220866e-06,6.7771380831518544e-06
grant_research_area_50,-6.018075757896479e-06,3.415361829511047e-06
publication_research_area_n.,-1.6678560361260698e-05,4.85699334820089e-05
patent_research_area_40,-2.2966722354866854e-05,2.624449457092434e-05
publication_research_area_30,-2.759677706088981e-05,4.2392146152842375e-05
grant_research_area_41,-7.746870943114436e-05,4.853083326762734e-05
patent_research_area_31,-7.858662076178912e-05,2.6338982228252595e-05
publication_research_area_38,-0.00010061127127826141,6.048638875532882e-05
grant_research_area_n.,-0.00018513837033415915,0.00010988699811737849
1 feature importance_mean importance_std
2 publications 0.4440974603875724 0.009511785737132612
3 pub_citation_sum 0.0641745019900897 0.0023847457046495867
4 last_patent_year 0.061419305752316286 0.0032168477466114997
5 i10-index 0.052808315628195955 0.002509050818671705
6 pub_citation_mean 0.042499292031831906 0.002523272278649042
7 g-index 0.036249565551782555 0.002265360125324732
8 activities_total 0.03186015042559469 0.001859142044274061
9 pat_citation_mean 0.023747584504377334 0.0018054623744417433
10 grants 0.014545800960367655 0.001636080338818295
11 first_publication_year 0.01341695838784518 0.0011208069436919059
12 last_publication_year 0.010105477585606454 0.001265829119215705
13 patents 0.009386919235293584 0.000828161224172823
14 last_grant_year 0.0061119416876279035 0.0006396038493956664
15 publication_research_area_32 0.005199808047404142 0.0006411887411683997
16 h-index 0.004761111131916573 0.0006185755476381059
17 pat_citation_sum 0.004029264901793272 0.0006407043313268342
18 affiliations 0.003924122102600141 0.0006734435898464144
19 industry_collab_papers 0.002771785899856466 0.000458393950826596
20 first_grant_year 0.0024780107524362215 0.00045174085545348724
21 linked_patents_to_publications 0.0017714854471442888 0.00038735536489506483
22 grant_research_impact 0.0017419551968919865 0.0007783860555244073
23 publication_research_area_31 0.0010347728515872068 0.0004380600676750018
24 publication_research_area_46 0.0010296404274699467 0.00027494253110439427
25 institution_stanford 0.0009637600715686423 0.00023666778366864807
26 patent_research_area_46 0.0007991644733361059 0.0003005059902911959
27 grant_research_area_32 0.0006102226280733592 0.0003698845134606399
28 institution_berkeley 0.00045373766528075123 0.00021951745011740962
29 institution_muenchen 0.0004130569816417906 7.580252297057787e-05
30 patent_research_area_32 0.00036940421614752863 0.00011610246817244868
31 publication_research_area_35 0.0003162362804154439 0.00017402147914398575
32 publication_research_area_42 0.00029062839366878477 0.00015928133313129265
33 institution_oxford 0.0002602274221759626 0.000185358155946732
34 first_patent_year 0.0002299601664907669 0.00015372021880899557
35 institution_telaviv 0.00022185659229883025 0.0002808557319380741
36 institution_harvard 0.00022091161950384407 0.00018883040518073856
37 patent_research_area_35 0.00017105334272454753 0.00013583506288295137
38 publication_research_area_51 0.0001581465869737786 0.00013922623521323216
39 grant_innovation_impact 0.00013702479636796828 0.0001422675814029339
40 institution_ude 0.00013034268850643517 5.51579297443134e-05
41 publication_research_area_33 0.00011963406695062462 9.734481095501337e-05
42 publication_research_area_40 6.163246509007791e-05 8.342838939511106e-05
43 grant_research_area_46 5.6425844484753186e-05 6.057990043771272e-05
44 grant_research_area_42 5.4768959582357504e-05 0.0001321879842622329
45 publication_research_area_44 4.6328393106159774e-05 4.109464765116167e-05
46 institution_toronto 4.203267111526077e-05 0.00013829259973950555
47 grant_research_area_34 3.648946572037404e-05 9.856576928560712e-05
48 publication_research_area_49 3.523595518664657e-05 1.0020003875083567e-05
49 publication_research_area_52 2.8243411024614362e-05 6.365046136625705e-05
50 grant_research_area_52 2.4976831800399558e-05 6.0461267957791294e-05
51 publication_research_area_39 2.2444089520501364e-05 5.4003334909501585e-05
52 publication_research_area_47 2.080080050642641e-05 2.1829610866522595e-05
53 patent_research_area_34 1.2265010515000175e-05 3.4309040012788196e-06
54 publication_research_area_34 1.0963870610469772e-05 5.079619737042506e-05
55 publication_research_area_37 9.739396381164278e-06 1.5473891954426686e-05
56 grant_research_area_31 9.05566937272062e-06 1.2355287634925927e-05
57 grant_research_area_33 7.176496559663237e-06 1.1600418122926559e-05
58 publication_research_area_36 6.871129506863527e-06 1.8889049455628318e-05
59 publication_research_area_50 6.313148147923942e-06 8.093717579945578e-06
60 patent_research_area_41 5.268894264148782e-06 1.4185767546691009e-05
61 grant_research_area_36 3.979969424106055e-06 8.741862922562177e-06
62 grant_research_area_51 2.6849918500770897e-06 7.727353969929902e-05
63 grant_research_area_39 2.6844415874804907e-06 4.9698681231697676e-06
64 patent_research_area_42 2.018322524721672e-06 4.003947557053808e-06
65 patent_research_area_n. 1.5509887295039881e-06 2.7724586593788047e-05
66 grant_research_area_35 2.794525058302799e-07 2.2550590120034133e-06
67 patent_research_area_30 1.1961448171393662e-07 6.938865295073371e-07
68 grant_research_area_47 0.0 0.0
69 publication_research_area_43 0.0 0.0
70 grant_research_area_43 0.0 0.0
71 patent_research_area_33 0.0 0.0
72 grant_research_area_38 0.0 0.0
73 grant_research_area_37 0.0 0.0
74 patent_research_area_37 0.0 0.0
75 patent_research_area_36 0.0 0.0
76 grant_research_area_49 0.0 0.0
77 patent_research_area_38 0.0 0.0
78 grant_research_area_30 0.0 0.0
79 patent_research_area_52 0.0 0.0
80 patent_research_area_50 0.0 0.0
81 patent_research_area_49 0.0 0.0
82 patent_research_area_48 0.0 0.0
83 patent_research_area_47 0.0 0.0
84 patent_research_area_39 0.0 0.0
85 patent_research_area_44 0.0 0.0
86 patent_research_area_43 0.0 0.0
87 grant_research_area_48 0.0 0.0
88 publication_research_area_48 -4.777574768688453e-07 2.5399584991121672e-06
89 grant_research_area_44 -2.6545860416726797e-06 8.853044030928573e-07
90 grant_research_area_40 -3.5805367832819624e-06 1.3088192634427606e-05
91 publication_research_area_41 -4.670934500378143e-06 1.529003843001235e-05
92 patent_research_area_51 -5.39510398220866e-06 6.7771380831518544e-06
93 grant_research_area_50 -6.018075757896479e-06 3.415361829511047e-06
94 publication_research_area_n. -1.6678560361260698e-05 4.85699334820089e-05
95 patent_research_area_40 -2.2966722354866854e-05 2.624449457092434e-05
96 publication_research_area_30 -2.759677706088981e-05 4.2392146152842375e-05
97 grant_research_area_41 -7.746870943114436e-05 4.853083326762734e-05
98 patent_research_area_31 -7.858662076178912e-05 2.6338982228252595e-05
99 publication_research_area_38 -0.00010061127127826141 6.048638875532882e-05
100 grant_research_area_n. -0.00018513837033415915 0.00010988699811737849
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

@@ -0,0 +1,25 @@
held_out_institution,model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
berkeley,random_forest,0.8938080495356037,0.8561034761519806,0.8651960784313726,0.8606257618854124,0.9508687988322615,0.9352701725889087,0.7748863967212042,0.0916010325285079
berkeley,xgboost,0.9352941176470588,0.9163248564397046,0.9125816993464052,0.9144494474007367,0.9782380798780129,0.9728371029060612,0.8624255919906876,0.05184710770845413
berkeley,lightgbm,0.9402476780185759,0.9242798353909465,0.9174836601307189,0.9208692086920869,0.981150910015053,0.9755184511242864,0.8728875867367218,0.04690752230798288
harvard,random_forest,0.8987654320987655,0.9052183173588925,0.7805325987144169,0.8382642998027613,0.9526397485697599,0.9290937209525628,0.7696254787865199,0.08178858160630093
harvard,xgboost,0.9395061728395062,0.9425173439048563,0.8732782369146006,0.9065776930409915,0.9807783681880297,0.9706333807958668,0.8633170529628762,0.04677882418036461
harvard,lightgbm,0.9398148148148148,0.9461077844311377,0.8705234159779615,0.9067431850789096,0.9826362607521476,0.9734330946079244,0.8640565194125395,0.043685045783186834
muenchen,random_forest,0.7953757225433526,0.6064139941690962,0.832,0.7015177065767285,0.8767349593495936,0.7765094185861298,0.5675742666446973,0.15746290406976293
muenchen,xgboost,0.7884393063583816,0.6012084592145015,0.796,0.685025817555938,0.8628682926829269,0.763287320123835,0.542216159841516,0.1559271514415741
muenchen,lightgbm,0.7722543352601156,0.581039755351682,0.76,0.658578856152513,0.853691056910569,0.7517422512407861,0.5022355737952905,0.15695599279447855
oxford,random_forest,0.911386593204775,0.8539898132427843,0.8245901639344262,0.8390325271059216,0.959453412512546,0.9238390784736245,0.7781516198820395,0.07865284747427456
oxford,xgboost,0.9504132231404959,0.9183333333333333,0.9032786885245901,0.9107438016528926,0.984900886584142,0.9722281536725682,0.8764751247733411,0.042194340378046036
oxford,lightgbm,0.9554637281910009,0.9253731343283582,0.9147540983606557,0.920032976092333,0.9877645115423219,0.976680741461625,0.8892006068129127,0.03689864957054344
stanford,random_forest,0.9001419782300047,0.912889935256033,0.8498630136986302,0.880249716231555,0.9613942820628392,0.9572731678928575,0.7963001054601905,0.08187944047855213
stanford,xgboost,0.9245149077141505,0.9096844396082698,0.9161643835616439,0.9129129129129129,0.9797777181881978,0.9772211505881503,0.846320011438327,0.05441083386540413
stanford,lightgbm,0.927117841930904,0.9138025095471904,0.9178082191780822,0.9158009841443412,0.9798291807637229,0.9769930836860543,0.8515608804568686,0.053898616481872476
telaviv,random_forest,0.9329221279876638,0.9143730886850153,0.9507154213036566,0.9321901792673422,0.9814694934455415,0.9840855248253557,0.8665222579580186,0.06278409820550628
telaviv,xgboost,0.9498843484965305,0.9338461538461539,0.9650238473767886,0.9491790461297889,0.9915843987700276,0.9928955188919398,0.9002477352802948,0.035886093974113464
telaviv,lightgbm,0.9568234387047032,0.9428129829984544,0.9697933227344993,0.9561128526645768,0.992805327342136,0.9938473761123844,0.9139930650897162,0.03212358373132753
toronto,random_forest,0.8310708898944194,0.7942857142857143,0.6465116279069767,0.7128205128205128,0.8714571220930232,0.8089004180527387,0.6012626875361187,0.13535280288698756
toronto,xgboost,0.8144796380090498,0.8006535947712419,0.5697674418604651,0.6657608695652174,0.8658689784053156,0.8011683092591997,0.5573915163186545,0.13123539090156555
toronto,lightgbm,0.8076923076923077,0.7986348122866894,0.5441860465116279,0.6473029045643154,0.8486399501661129,0.7789467464984129,0.5396833164956024,0.14120805997827313
ude,random_forest,0.9242424242424242,0.6923076923076923,0.9,0.782608695652174,0.9624999999999999,0.8845213408920609,0.7469892572492464,0.08766724613880275
ude,xgboost,0.9318181818181818,0.7037037037037037,0.95,0.8085106382978723,0.978125,0.9280225174865269,0.780952380952381,0.05495387688279152
ude,lightgbm,0.946969696969697,0.76,0.95,0.8444444444444444,0.9870535714285714,0.9470631781805057,0.8203096227459236,0.04920439998805263
1 held_out_institution model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 berkeley random_forest 0.8938080495356037 0.8561034761519806 0.8651960784313726 0.8606257618854124 0.9508687988322615 0.9352701725889087 0.7748863967212042 0.0916010325285079
3 berkeley xgboost 0.9352941176470588 0.9163248564397046 0.9125816993464052 0.9144494474007367 0.9782380798780129 0.9728371029060612 0.8624255919906876 0.05184710770845413
4 berkeley lightgbm 0.9402476780185759 0.9242798353909465 0.9174836601307189 0.9208692086920869 0.981150910015053 0.9755184511242864 0.8728875867367218 0.04690752230798288
5 harvard random_forest 0.8987654320987655 0.9052183173588925 0.7805325987144169 0.8382642998027613 0.9526397485697599 0.9290937209525628 0.7696254787865199 0.08178858160630093
6 harvard xgboost 0.9395061728395062 0.9425173439048563 0.8732782369146006 0.9065776930409915 0.9807783681880297 0.9706333807958668 0.8633170529628762 0.04677882418036461
7 harvard lightgbm 0.9398148148148148 0.9461077844311377 0.8705234159779615 0.9067431850789096 0.9826362607521476 0.9734330946079244 0.8640565194125395 0.043685045783186834
8 muenchen random_forest 0.7953757225433526 0.6064139941690962 0.832 0.7015177065767285 0.8767349593495936 0.7765094185861298 0.5675742666446973 0.15746290406976293
9 muenchen xgboost 0.7884393063583816 0.6012084592145015 0.796 0.685025817555938 0.8628682926829269 0.763287320123835 0.542216159841516 0.1559271514415741
10 muenchen lightgbm 0.7722543352601156 0.581039755351682 0.76 0.658578856152513 0.853691056910569 0.7517422512407861 0.5022355737952905 0.15695599279447855
11 oxford random_forest 0.911386593204775 0.8539898132427843 0.8245901639344262 0.8390325271059216 0.959453412512546 0.9238390784736245 0.7781516198820395 0.07865284747427456
12 oxford xgboost 0.9504132231404959 0.9183333333333333 0.9032786885245901 0.9107438016528926 0.984900886584142 0.9722281536725682 0.8764751247733411 0.042194340378046036
13 oxford lightgbm 0.9554637281910009 0.9253731343283582 0.9147540983606557 0.920032976092333 0.9877645115423219 0.976680741461625 0.8892006068129127 0.03689864957054344
14 stanford random_forest 0.9001419782300047 0.912889935256033 0.8498630136986302 0.880249716231555 0.9613942820628392 0.9572731678928575 0.7963001054601905 0.08187944047855213
15 stanford xgboost 0.9245149077141505 0.9096844396082698 0.9161643835616439 0.9129129129129129 0.9797777181881978 0.9772211505881503 0.846320011438327 0.05441083386540413
16 stanford lightgbm 0.927117841930904 0.9138025095471904 0.9178082191780822 0.9158009841443412 0.9798291807637229 0.9769930836860543 0.8515608804568686 0.053898616481872476
17 telaviv random_forest 0.9329221279876638 0.9143730886850153 0.9507154213036566 0.9321901792673422 0.9814694934455415 0.9840855248253557 0.8665222579580186 0.06278409820550628
18 telaviv xgboost 0.9498843484965305 0.9338461538461539 0.9650238473767886 0.9491790461297889 0.9915843987700276 0.9928955188919398 0.9002477352802948 0.035886093974113464
19 telaviv lightgbm 0.9568234387047032 0.9428129829984544 0.9697933227344993 0.9561128526645768 0.992805327342136 0.9938473761123844 0.9139930650897162 0.03212358373132753
20 toronto random_forest 0.8310708898944194 0.7942857142857143 0.6465116279069767 0.7128205128205128 0.8714571220930232 0.8089004180527387 0.6012626875361187 0.13535280288698756
21 toronto xgboost 0.8144796380090498 0.8006535947712419 0.5697674418604651 0.6657608695652174 0.8658689784053156 0.8011683092591997 0.5573915163186545 0.13123539090156555
22 toronto lightgbm 0.8076923076923077 0.7986348122866894 0.5441860465116279 0.6473029045643154 0.8486399501661129 0.7789467464984129 0.5396833164956024 0.14120805997827313
23 ude random_forest 0.9242424242424242 0.6923076923076923 0.9 0.782608695652174 0.9624999999999999 0.8845213408920609 0.7469892572492464 0.08766724613880275
24 ude xgboost 0.9318181818181818 0.7037037037037037 0.95 0.8085106382978723 0.978125 0.9280225174865269 0.780952380952381 0.05495387688279152
25 ude lightgbm 0.946969696969697 0.76 0.95 0.8444444444444444 0.9870535714285714 0.9470631781805057 0.8203096227459236 0.04920439998805263
@@ -0,0 +1,26 @@
| | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:------------------------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|----------:|
| ('berkeley', 'random_forest') | 0.893808 | 0.856103 | 0.865196 | 0.860626 | 0.950869 | 0.93527 | 0.774886 | 0.091601 |
| ('berkeley', 'xgboost') | 0.935294 | 0.916325 | 0.912582 | 0.914449 | 0.978238 | 0.972837 | 0.862426 | 0.0518471 |
| ('berkeley', 'lightgbm') | 0.940248 | 0.92428 | 0.917484 | 0.920869 | 0.981151 | 0.975518 | 0.872888 | 0.0469075 |
| ('harvard', 'random_forest') | 0.898765 | 0.905218 | 0.780533 | 0.838264 | 0.95264 | 0.929094 | 0.769625 | 0.0817886 |
| ('harvard', 'xgboost') | 0.939506 | 0.942517 | 0.873278 | 0.906578 | 0.980778 | 0.970633 | 0.863317 | 0.0467788 |
| ('harvard', 'lightgbm') | 0.939815 | 0.946108 | 0.870523 | 0.906743 | 0.982636 | 0.973433 | 0.864057 | 0.043685 |
| ('muenchen', 'random_forest') | 0.795376 | 0.606414 | 0.832 | 0.701518 | 0.876735 | 0.776509 | 0.567574 | 0.157463 |
| ('muenchen', 'xgboost') | 0.788439 | 0.601208 | 0.796 | 0.685026 | 0.862868 | 0.763287 | 0.542216 | 0.155927 |
| ('muenchen', 'lightgbm') | 0.772254 | 0.58104 | 0.76 | 0.658579 | 0.853691 | 0.751742 | 0.502236 | 0.156956 |
| ('oxford', 'random_forest') | 0.911387 | 0.85399 | 0.82459 | 0.839033 | 0.959453 | 0.923839 | 0.778152 | 0.0786528 |
| ('oxford', 'xgboost') | 0.950413 | 0.918333 | 0.903279 | 0.910744 | 0.984901 | 0.972228 | 0.876475 | 0.0421943 |
| ('oxford', 'lightgbm') | 0.955464 | 0.925373 | 0.914754 | 0.920033 | 0.987765 | 0.976681 | 0.889201 | 0.0368986 |
| ('stanford', 'random_forest') | 0.900142 | 0.91289 | 0.849863 | 0.88025 | 0.961394 | 0.957273 | 0.7963 | 0.0818794 |
| ('stanford', 'xgboost') | 0.924515 | 0.909684 | 0.916164 | 0.912913 | 0.979778 | 0.977221 | 0.84632 | 0.0544108 |
| ('stanford', 'lightgbm') | 0.927118 | 0.913803 | 0.917808 | 0.915801 | 0.979829 | 0.976993 | 0.851561 | 0.0538986 |
| ('telaviv', 'random_forest') | 0.932922 | 0.914373 | 0.950715 | 0.93219 | 0.981469 | 0.984086 | 0.866522 | 0.0627841 |
| ('telaviv', 'xgboost') | 0.949884 | 0.933846 | 0.965024 | 0.949179 | 0.991584 | 0.992896 | 0.900248 | 0.0358861 |
| ('telaviv', 'lightgbm') | 0.956823 | 0.942813 | 0.969793 | 0.956113 | 0.992805 | 0.993847 | 0.913993 | 0.0321236 |
| ('toronto', 'random_forest') | 0.831071 | 0.794286 | 0.646512 | 0.712821 | 0.871457 | 0.8089 | 0.601263 | 0.135353 |
| ('toronto', 'xgboost') | 0.81448 | 0.800654 | 0.569767 | 0.665761 | 0.865869 | 0.801168 | 0.557392 | 0.131235 |
| ('toronto', 'lightgbm') | 0.807692 | 0.798635 | 0.544186 | 0.647303 | 0.84864 | 0.778947 | 0.539683 | 0.141208 |
| ('ude', 'random_forest') | 0.924242 | 0.692308 | 0.9 | 0.782609 | 0.9625 | 0.884521 | 0.746989 | 0.0876672 |
| ('ude', 'xgboost') | 0.931818 | 0.703704 | 0.95 | 0.808511 | 0.978125 | 0.928023 | 0.780952 | 0.0549539 |
| ('ude', 'lightgbm') | 0.94697 | 0.76 | 0.95 | 0.844444 | 0.987054 | 0.947063 | 0.82031 | 0.0492044 |
@@ -0,0 +1,13 @@
model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
lightgbm,0.9296756592906942,0.913372582001682,0.8938271604938272,0.9034941763727121,0.976269322211954,0.9685049361518786,0.8483100198135644,0.053432731044197566
stacking_ensemble,0.9269475598666262,0.8965798045602605,0.9061728395061729,0.9013507981989357,0.9754794515137872,0.9675765397034317,0.8433811094467112,0.05719178794634457
xgboost,0.9269475598666262,0.907190635451505,0.8930041152263375,0.9000414765657404,0.9744139159419603,0.9665730556966816,0.8425529635211692,0.05556803196668625
catboost,0.9224007274931798,0.9026028547439127,0.8847736625514403,0.8935993349958438,0.971654897593264,0.9632567246873249,0.8326428131667227,0.059948209000983244
torch_mlp,0.9196726280691119,0.8984899328859061,0.8814814814814815,0.8899044453676777,0.9622309502934369,0.955302995455666,0.8267763485833509,0.06462439894676208
random_forest,0.8957259775689603,0.8731790916880892,0.8386831275720165,0.855583543240974,0.951964210958666,0.9349680824025975,0.7744264740411075,0.08763717778689288
logistic_regression,0.881782358290391,0.8235294117647058,0.8641975308641975,0.8433734939759037,0.9434869236905918,0.9275477315216814,0.7490861135477721,0.08788246377799803
svm_rbf,0.8754167929675659,0.845360824742268,0.8098765432098766,0.8272383354350568,0.9373219828914007,0.9143562404019991,0.7303022058858781,0.09180799832693237
decision_tree,0.8375265231888451,0.7379117028731604,0.8666666666666667,0.7971233913701741,0.9210842160138386,0.8829334748606221,0.6690488462111767,0.10435262951516595
knn,0.8184298272203698,0.8162217659137577,0.654320987654321,0.7263590680676107,0.880971619945815,0.8208621350700424,0.6010655862759007,0.13055538715435655
gaussian_nb,0.7241588360109124,0.8056112224448898,0.3308641975308642,0.4690781796966161,0.8162221669312734,0.7211454455622044,0.3827487061238318,0.2730256049045907
dummy_most_frequent,0.6317065777508336,0.0,0.0,0.0,0.5,0.3682934222491664,0.0,0.3682934222491664
1 model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 lightgbm 0.9296756592906942 0.913372582001682 0.8938271604938272 0.9034941763727121 0.976269322211954 0.9685049361518786 0.8483100198135644 0.053432731044197566
3 stacking_ensemble 0.9269475598666262 0.8965798045602605 0.9061728395061729 0.9013507981989357 0.9754794515137872 0.9675765397034317 0.8433811094467112 0.05719178794634457
4 xgboost 0.9269475598666262 0.907190635451505 0.8930041152263375 0.9000414765657404 0.9744139159419603 0.9665730556966816 0.8425529635211692 0.05556803196668625
5 catboost 0.9224007274931798 0.9026028547439127 0.8847736625514403 0.8935993349958438 0.971654897593264 0.9632567246873249 0.8326428131667227 0.059948209000983244
6 torch_mlp 0.9196726280691119 0.8984899328859061 0.8814814814814815 0.8899044453676777 0.9622309502934369 0.955302995455666 0.8267763485833509 0.06462439894676208
7 random_forest 0.8957259775689603 0.8731790916880892 0.8386831275720165 0.855583543240974 0.951964210958666 0.9349680824025975 0.7744264740411075 0.08763717778689288
8 logistic_regression 0.881782358290391 0.8235294117647058 0.8641975308641975 0.8433734939759037 0.9434869236905918 0.9275477315216814 0.7490861135477721 0.08788246377799803
9 svm_rbf 0.8754167929675659 0.845360824742268 0.8098765432098766 0.8272383354350568 0.9373219828914007 0.9143562404019991 0.7303022058858781 0.09180799832693237
10 decision_tree 0.8375265231888451 0.7379117028731604 0.8666666666666667 0.7971233913701741 0.9210842160138386 0.8829334748606221 0.6690488462111767 0.10435262951516595
11 knn 0.8184298272203698 0.8162217659137577 0.654320987654321 0.7263590680676107 0.880971619945815 0.8208621350700424 0.6010655862759007 0.13055538715435655
12 gaussian_nb 0.7241588360109124 0.8056112224448898 0.3308641975308642 0.4690781796966161 0.8162221669312734 0.7211454455622044 0.3827487061238318 0.2730256049045907
13 dummy_most_frequent 0.6317065777508336 0.0 0.0 0.0 0.5 0.3682934222491664 0.0 0.3682934222491664
@@ -0,0 +1,14 @@
| model | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|----------:|
| lightgbm | 0.929676 | 0.913373 | 0.893827 | 0.903494 | 0.976269 | 0.968505 | 0.84831 | 0.0534327 |
| stacking_ensemble | 0.926948 | 0.89658 | 0.906173 | 0.901351 | 0.975479 | 0.967577 | 0.843381 | 0.0571918 |
| xgboost | 0.926948 | 0.907191 | 0.893004 | 0.900041 | 0.974414 | 0.966573 | 0.842553 | 0.055568 |
| catboost | 0.922401 | 0.902603 | 0.884774 | 0.893599 | 0.971655 | 0.963257 | 0.832643 | 0.0599482 |
| torch_mlp | 0.919673 | 0.89849 | 0.881481 | 0.889904 | 0.962231 | 0.955303 | 0.826776 | 0.0646244 |
| random_forest | 0.895726 | 0.873179 | 0.838683 | 0.855584 | 0.951964 | 0.934968 | 0.774426 | 0.0876372 |
| logistic_regression | 0.881782 | 0.823529 | 0.864198 | 0.843373 | 0.943487 | 0.927548 | 0.749086 | 0.0878825 |
| svm_rbf | 0.875417 | 0.845361 | 0.809877 | 0.827238 | 0.937322 | 0.914356 | 0.730302 | 0.091808 |
| decision_tree | 0.837527 | 0.737912 | 0.866667 | 0.797123 | 0.921084 | 0.882933 | 0.669049 | 0.104353 |
| knn | 0.81843 | 0.816222 | 0.654321 | 0.726359 | 0.880972 | 0.820862 | 0.601066 | 0.130555 |
| gaussian_nb | 0.724159 | 0.805611 | 0.330864 | 0.469078 | 0.816222 | 0.721145 | 0.382749 | 0.273026 |
| dummy_most_frequent | 0.631707 | 0 | 0 | 0 | 0.5 | 0.368293 | 0 | 0.368293 |
@@ -0,0 +1,3 @@
pipeline,n_rows,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
fix_on,16494,0.9296756592906942,0.913372582001682,0.8938271604938272,0.9034941763727121,0.976269322211954,0.9685049361518786,0.8483100198135644,0.053432731044197566
fix_off,16466,0.8466909532483303,0.7813248204309656,0.8090909090909091,0.7949654892407633,0.9180388556653607,0.8864221631506207,0.672862341314094,0.10965134265264417
1 pipeline n_rows accuracy precision recall f1 roc_auc pr_auc mcc brier
2 fix_on 16494 0.9296756592906942 0.913372582001682 0.8938271604938272 0.9034941763727121 0.976269322211954 0.9685049361518786 0.8483100198135644 0.053432731044197566
3 fix_off 16466 0.8466909532483303 0.7813248204309656 0.8090909090909091 0.7949654892407633 0.9180388556653607 0.8864221631506207 0.672862341314094 0.10965134265264417
@@ -0,0 +1,4 @@
| pipeline | n_rows | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:-----------|---------:|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|----------:|
| fix_on | 16494 | 0.929676 | 0.913373 | 0.893827 | 0.903494 | 0.976269 | 0.968505 | 0.84831 | 0.0534327 |
| fix_off | 16466 | 0.846691 | 0.781325 | 0.809091 | 0.794965 | 0.918039 | 0.886422 | 0.672862 | 0.109651 |
@@ -0,0 +1,23 @@
group,n,founder_rate,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
32,1166,0.22384219554030874,0.9493996569468267,0.9316239316239316,0.8352490421455939,0.8808080808080808,0.9666920683304757,0.9364408340780385,0.8508506430002786,0.04368896580612041
n.,429,0.662004662004662,0.9230769230769231,0.9225589225589226,0.9647887323943662,0.9432013769363167,0.9841185041282177,0.9924822312137267,0.8262349450003642,0.05463661429743082
31,377,0.21750663129973474,0.946949602122016,0.918918918918919,0.8292682926829268,0.8717948717948718,0.9728813559322034,0.9356866199037027,0.8402167428448224,0.04536923541973955
40,244,0.47540983606557374,0.9098360655737705,0.8983050847457628,0.9137931034482759,0.905982905982906,0.9617456896551724,0.9642595097786962,0.8194913688077033,0.07957434518007606
42,203,0.31527093596059114,0.9261083743842364,0.9016393442622951,0.859375,0.88,0.9769559352517986,0.9637751383174913,0.8271608292650046,0.048779758321450296
46,157,0.6942675159235668,0.9171974522292994,0.9528301886792453,0.926605504587156,0.9395348837209302,0.9682721712538226,0.9840532918333846,0.8090948889478105,0.05626512209498496
51,133,0.23308270676691728,0.9548872180451128,0.9310344827586207,0.8709677419354839,0.9,0.970271979759646,0.9409363609392009,0.8717228983609421,0.04478101537130266
34,120,0.3416666666666667,0.925,0.9210526315789473,0.8536585365853658,0.8860759493670886,0.9771534424205001,0.9650667269791089,0.8316270648620494,0.05246369285584714
52,95,0.30526315789473685,0.9578947368421052,0.9310344827586207,0.9310344827586207,0.9310344827586207,0.9937304075235109,0.9883026531846857,0.9007314524555904,0.027603964117175042
30,56,0.32142857142857145,0.9821428571428571,1.0,0.9444444444444444,0.9714285714285714,0.9809941520467838,0.9767025089605734,0.9592851089368167,0.0369718805280747
37,43,0.5348837209302325,0.8372093023255814,0.9444444444444444,0.7391304347826086,0.8292682926829268,0.9,0.9136438168932886,0.696745366888215,0.15414824132263785
35,38,0.7631578947368421,0.8947368421052632,0.9032258064516129,0.9655172413793104,0.9333333333333333,0.9693486590038315,0.9921059585149952,0.6933201520991935,0.07486361338542762
41,36,0.4722222222222222,0.9722222222222222,1.0,0.9411764705882353,0.9696969696969697,0.9938080495356038,0.9938080495356038,0.945577943407535,0.032185687482793046
44,36,0.5,0.9166666666666666,0.9411764705882353,0.8888888888888888,0.9142857142857143,0.9876543209876543,0.9872494075602952,0.8346223261119858,0.04977443231283995
49,32,0.34375,0.96875,0.9166666666666666,1.0,0.9565217391304348,0.9956709956709956,0.9924242424242424,0.9343531843023135,0.03103818954401077
39,32,0.5625,0.96875,0.9473684210526315,1.0,0.972972972972973,1.0,1.0,0.9379228369755696,0.02519009805802744
38,27,0.6666666666666666,0.7777777777777778,0.8,0.8888888888888888,0.8421052631578947,0.888888888888889,0.9502100840336136,0.4780914437337575,0.1384746732914565
50,21,0.38095238095238093,0.9523809523809523,1.0,0.875,0.9333333333333333,1.0,1.0,0.9013878188659973,0.03054786135988341
33,16,0.9375,1.0,1.0,1.0,1.0,1.0,1.0,1.0,0.015340673169459336
47,16,0.625,0.875,0.9,0.9,0.9,0.9666666666666667,0.980909090909091,0.7333333333333333,0.08370998701642743
43,10,0.5,0.9,1.0,0.8,0.8888888888888888,0.9600000000000001,0.9666666666666666,0.816496580927726,0.08761755190466188
48,7,0.42857142857142855,1.0,1.0,1.0,1.0,1.0,1.0,1.0,0.0035793736676227616
1 group n founder_rate accuracy precision recall f1 roc_auc pr_auc mcc brier
2 32 1166 0.22384219554030874 0.9493996569468267 0.9316239316239316 0.8352490421455939 0.8808080808080808 0.9666920683304757 0.9364408340780385 0.8508506430002786 0.04368896580612041
3 n. 429 0.662004662004662 0.9230769230769231 0.9225589225589226 0.9647887323943662 0.9432013769363167 0.9841185041282177 0.9924822312137267 0.8262349450003642 0.05463661429743082
4 31 377 0.21750663129973474 0.946949602122016 0.918918918918919 0.8292682926829268 0.8717948717948718 0.9728813559322034 0.9356866199037027 0.8402167428448224 0.04536923541973955
5 40 244 0.47540983606557374 0.9098360655737705 0.8983050847457628 0.9137931034482759 0.905982905982906 0.9617456896551724 0.9642595097786962 0.8194913688077033 0.07957434518007606
6 42 203 0.31527093596059114 0.9261083743842364 0.9016393442622951 0.859375 0.88 0.9769559352517986 0.9637751383174913 0.8271608292650046 0.048779758321450296
7 46 157 0.6942675159235668 0.9171974522292994 0.9528301886792453 0.926605504587156 0.9395348837209302 0.9682721712538226 0.9840532918333846 0.8090948889478105 0.05626512209498496
8 51 133 0.23308270676691728 0.9548872180451128 0.9310344827586207 0.8709677419354839 0.9 0.970271979759646 0.9409363609392009 0.8717228983609421 0.04478101537130266
9 34 120 0.3416666666666667 0.925 0.9210526315789473 0.8536585365853658 0.8860759493670886 0.9771534424205001 0.9650667269791089 0.8316270648620494 0.05246369285584714
10 52 95 0.30526315789473685 0.9578947368421052 0.9310344827586207 0.9310344827586207 0.9310344827586207 0.9937304075235109 0.9883026531846857 0.9007314524555904 0.027603964117175042
11 30 56 0.32142857142857145 0.9821428571428571 1.0 0.9444444444444444 0.9714285714285714 0.9809941520467838 0.9767025089605734 0.9592851089368167 0.0369718805280747
12 37 43 0.5348837209302325 0.8372093023255814 0.9444444444444444 0.7391304347826086 0.8292682926829268 0.9 0.9136438168932886 0.696745366888215 0.15414824132263785
13 35 38 0.7631578947368421 0.8947368421052632 0.9032258064516129 0.9655172413793104 0.9333333333333333 0.9693486590038315 0.9921059585149952 0.6933201520991935 0.07486361338542762
14 41 36 0.4722222222222222 0.9722222222222222 1.0 0.9411764705882353 0.9696969696969697 0.9938080495356038 0.9938080495356038 0.945577943407535 0.032185687482793046
15 44 36 0.5 0.9166666666666666 0.9411764705882353 0.8888888888888888 0.9142857142857143 0.9876543209876543 0.9872494075602952 0.8346223261119858 0.04977443231283995
16 49 32 0.34375 0.96875 0.9166666666666666 1.0 0.9565217391304348 0.9956709956709956 0.9924242424242424 0.9343531843023135 0.03103818954401077
17 39 32 0.5625 0.96875 0.9473684210526315 1.0 0.972972972972973 1.0 1.0 0.9379228369755696 0.02519009805802744
18 38 27 0.6666666666666666 0.7777777777777778 0.8 0.8888888888888888 0.8421052631578947 0.888888888888889 0.9502100840336136 0.4780914437337575 0.1384746732914565
19 50 21 0.38095238095238093 0.9523809523809523 1.0 0.875 0.9333333333333333 1.0 1.0 0.9013878188659973 0.03054786135988341
20 33 16 0.9375 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.015340673169459336
21 47 16 0.625 0.875 0.9 0.9 0.9 0.9666666666666667 0.980909090909091 0.7333333333333333 0.08370998701642743
22 43 10 0.5 0.9 1.0 0.8 0.8888888888888888 0.9600000000000001 0.9666666666666666 0.816496580927726 0.08761755190466188
23 48 7 0.42857142857142855 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0035793736676227616
@@ -0,0 +1,24 @@
| group | n | founder_rate | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------|-----:|---------------:|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|-----------:|
| 32 | 1166 | 0.223842 | 0.9494 | 0.931624 | 0.835249 | 0.880808 | 0.966692 | 0.936441 | 0.850851 | 0.043689 |
| n. | 429 | 0.662005 | 0.923077 | 0.922559 | 0.964789 | 0.943201 | 0.984119 | 0.992482 | 0.826235 | 0.0546366 |
| 31 | 377 | 0.217507 | 0.94695 | 0.918919 | 0.829268 | 0.871795 | 0.972881 | 0.935687 | 0.840217 | 0.0453692 |
| 40 | 244 | 0.47541 | 0.909836 | 0.898305 | 0.913793 | 0.905983 | 0.961746 | 0.96426 | 0.819491 | 0.0795743 |
| 42 | 203 | 0.315271 | 0.926108 | 0.901639 | 0.859375 | 0.88 | 0.976956 | 0.963775 | 0.827161 | 0.0487798 |
| 46 | 157 | 0.694268 | 0.917197 | 0.95283 | 0.926606 | 0.939535 | 0.968272 | 0.984053 | 0.809095 | 0.0562651 |
| 51 | 133 | 0.233083 | 0.954887 | 0.931034 | 0.870968 | 0.9 | 0.970272 | 0.940936 | 0.871723 | 0.044781 |
| 34 | 120 | 0.341667 | 0.925 | 0.921053 | 0.853659 | 0.886076 | 0.977153 | 0.965067 | 0.831627 | 0.0524637 |
| 52 | 95 | 0.305263 | 0.957895 | 0.931034 | 0.931034 | 0.931034 | 0.99373 | 0.988303 | 0.900731 | 0.027604 |
| 30 | 56 | 0.321429 | 0.982143 | 1 | 0.944444 | 0.971429 | 0.980994 | 0.976703 | 0.959285 | 0.0369719 |
| 37 | 43 | 0.534884 | 0.837209 | 0.944444 | 0.73913 | 0.829268 | 0.9 | 0.913644 | 0.696745 | 0.154148 |
| 35 | 38 | 0.763158 | 0.894737 | 0.903226 | 0.965517 | 0.933333 | 0.969349 | 0.992106 | 0.69332 | 0.0748636 |
| 41 | 36 | 0.472222 | 0.972222 | 1 | 0.941176 | 0.969697 | 0.993808 | 0.993808 | 0.945578 | 0.0321857 |
| 44 | 36 | 0.5 | 0.916667 | 0.941176 | 0.888889 | 0.914286 | 0.987654 | 0.987249 | 0.834622 | 0.0497744 |
| 49 | 32 | 0.34375 | 0.96875 | 0.916667 | 1 | 0.956522 | 0.995671 | 0.992424 | 0.934353 | 0.0310382 |
| 39 | 32 | 0.5625 | 0.96875 | 0.947368 | 1 | 0.972973 | 1 | 1 | 0.937923 | 0.0251901 |
| 38 | 27 | 0.666667 | 0.777778 | 0.8 | 0.888889 | 0.842105 | 0.888889 | 0.95021 | 0.478091 | 0.138475 |
| 50 | 21 | 0.380952 | 0.952381 | 1 | 0.875 | 0.933333 | 1 | 1 | 0.901388 | 0.0305479 |
| 33 | 16 | 0.9375 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0.0153407 |
| 47 | 16 | 0.625 | 0.875 | 0.9 | 0.9 | 0.9 | 0.966667 | 0.980909 | 0.733333 | 0.08371 |
| 43 | 10 | 0.5 | 0.9 | 1 | 0.8 | 0.888889 | 0.96 | 0.966667 | 0.816497 | 0.0876176 |
| 48 | 7 | 0.428571 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0.00357937 |
@@ -0,0 +1,9 @@
,point_estimate,ci95_low,ci95_high
accuracy,0.9366474689299787,0.9284555926038193,0.9451348893604122
precision,0.926271186440678,0.9112063996289643,0.9408187198226067
recall,0.8995884773662551,0.8825876445799337,0.9156638830280204
f1,0.9127348643006263,0.9005372458914456,0.9239454361275332
roc_auc,0.9776117074634882,0.9730446608169061,0.9819179575346694
pr_auc,0.9705838681584741,0.9647752214620384,0.975897387247084
mcc,0.8632522856286617,0.8448324894247283,0.8805182738534791
brier,0.05082471982015067,0.045421652957712146,0.05632171601136752
1 point_estimate ci95_low ci95_high
2 accuracy 0.9366474689299787 0.9284555926038193 0.9451348893604122
3 precision 0.926271186440678 0.9112063996289643 0.9408187198226067
4 recall 0.8995884773662551 0.8825876445799337 0.9156638830280204
5 f1 0.9127348643006263 0.9005372458914456 0.9239454361275332
6 roc_auc 0.9776117074634882 0.9730446608169061 0.9819179575346694
7 pr_auc 0.9705838681584741 0.9647752214620384 0.975897387247084
8 mcc 0.8632522856286617 0.8448324894247283 0.8805182738534791
9 brier 0.05082471982015067 0.045421652957712146 0.05632171601136752
@@ -0,0 +1,10 @@
| | point_estimate | ci95_low | ci95_high |
|:----------|-----------------:|-----------:|------------:|
| accuracy | 0.936647 | 0.928456 | 0.945135 |
| precision | 0.926271 | 0.911206 | 0.940819 |
| recall | 0.899588 | 0.882588 | 0.915664 |
| f1 | 0.912735 | 0.900537 | 0.923945 |
| roc_auc | 0.977612 | 0.973045 | 0.981918 |
| pr_auc | 0.970584 | 0.964775 | 0.975897 |
| mcc | 0.863252 | 0.844832 | 0.880518 |
| brier | 0.0508247 | 0.0454217 | 0.0563217 |
@@ -0,0 +1,9 @@
,mean,std,ci95_low,ci95_high
accuracy,0.6315629945381027,0.000152607314577894,0.6314292283290328,0.6316967607471726
precision,0.0,0.0,0.0,0.0
recall,0.0,0.0,0.0,0.0
f1,0.0,0.0,0.0,0.0
roc_auc,0.5,0.0,0.5,0.5
pr_auc,0.3684370054618973,0.000152607314577894,0.36830323925282743,0.36857077167096713
mcc,0.0,0.0,0.0,0.0
brier,0.3684370054618973,0.000152607314577894,0.36830323925282743,0.36857077167096713
1 mean std ci95_low ci95_high
2 accuracy 0.6315629945381027 0.000152607314577894 0.6314292283290328 0.6316967607471726
3 precision 0.0 0.0 0.0 0.0
4 recall 0.0 0.0 0.0 0.0
5 f1 0.0 0.0 0.0 0.0
6 roc_auc 0.5 0.0 0.5 0.5
7 pr_auc 0.3684370054618973 0.000152607314577894 0.36830323925282743 0.36857077167096713
8 mcc 0.0 0.0 0.0 0.0
9 brier 0.3684370054618973 0.000152607314577894 0.36830323925282743 0.36857077167096713
@@ -0,0 +1,9 @@
,mean,std,ci95_low,ci95_high
accuracy,0.9301560040521679,0.004832569968831805,0.9259200697092858,0.9343919383950501
precision,0.9210205005213952,0.005363091113689678,0.916319543891899,0.9257214571508914
recall,0.8864569796404591,0.011327284656886847,0.8765281768710896,0.8963857824098286
f1,0.9033804575410747,0.007077308370071776,0.8971769232366968,0.9095839918454525
roc_auc,0.9778044083998637,0.002580893205000624,0.9755421557614367,0.9800666610382908
pr_auc,0.969958390900661,0.0030785333991232323,0.9672599373996954,0.9726568444016267
mcc,0.8491361246489078,0.01056040568851125,0.839879520933029,0.8583927283647865
brier,0.05229056699624248,0.002611979994158263,0.05000106558570199,0.05458006840678297
1 mean std ci95_low ci95_high
2 accuracy 0.9301560040521679 0.004832569968831805 0.9259200697092858 0.9343919383950501
3 precision 0.9210205005213952 0.005363091113689678 0.916319543891899 0.9257214571508914
4 recall 0.8864569796404591 0.011327284656886847 0.8765281768710896 0.8963857824098286
5 f1 0.9033804575410747 0.007077308370071776 0.8971769232366968 0.9095839918454525
6 roc_auc 0.9778044083998637 0.002580893205000624 0.9755421557614367 0.9800666610382908
7 pr_auc 0.969958390900661 0.0030785333991232323 0.9672599373996954 0.9726568444016267
8 mcc 0.8491361246489078 0.01056040568851125 0.839879520933029 0.8583927283647865
9 brier 0.05229056699624248 0.002611979994158263 0.05000106558570199 0.05458006840678297
@@ -0,0 +1,9 @@
,mean,std,ci95_low,ci95_high
accuracy,0.877833994571007,0.005709536471229038,0.8728293651964915,0.8828386239455225
precision,0.8241154301590724,0.008895746233050398,0.8163179647902986,0.8319128955278462
recall,0.849927442061945,0.015153152825682954,0.8366451179836104,0.8632097661402797
f1,0.8367420177360618,0.008288518311350008,0.8294768111083051,0.8440072243638186
roc_auc,0.941702178253095,0.006210328162763004,0.9362585856067633,0.9471457708994266
pr_auc,0.922607131065136,0.0063617129672597535,0.9170308437870672,0.9281834183432048
mcc,0.7395022800023918,0.012603583626827284,0.7284547518605137,0.75054980814427
brier,0.0913441224489286,0.003520196889471585,0.08825853382962423,0.09442971106823297
1 mean std ci95_low ci95_high
2 accuracy 0.877833994571007 0.005709536471229038 0.8728293651964915 0.8828386239455225
3 precision 0.8241154301590724 0.008895746233050398 0.8163179647902986 0.8319128955278462
4 recall 0.849927442061945 0.015153152825682954 0.8366451179836104 0.8632097661402797
5 f1 0.8367420177360618 0.008288518311350008 0.8294768111083051 0.8440072243638186
6 roc_auc 0.941702178253095 0.006210328162763004 0.9362585856067633 0.9471457708994266
7 pr_auc 0.922607131065136 0.0063617129672597535 0.9170308437870672 0.9281834183432048
8 mcc 0.7395022800023918 0.012603583626827284 0.7284547518605137 0.75054980814427
9 brier 0.0913441224489286 0.003520196889471585 0.08825853382962423 0.09442971106823297
@@ -0,0 +1,9 @@
,mean,std,ci95_low,ci95_high
accuracy,0.8924456590572405,0.00651487700889904,0.8867351175773166,0.8981562005371644
precision,0.8727333377136273,0.007422272623764793,0.866227428908992,0.8792392465182626
recall,0.829030079055664,0.01844236050077116,0.8128646373315136,0.8451955207798143
f1,0.850223748276734,0.010349709747713121,0.8411518276957687,0.8592956688576993
roc_auc,0.9527710767910506,0.006542740503664845,0.9470361118811189,0.9585060417009822
pr_auc,0.9358309508430764,0.00643481567167842,0.9301905862193713,0.9414713154667815
mcc,0.7671314169694046,0.014522057546517971,0.7544022722933108,0.7798605616454983
brier,0.08755658794676884,0.0029756638450860926,0.08494830358553487,0.0901648723080028
1 mean std ci95_low ci95_high
2 accuracy 0.8924456590572405 0.00651487700889904 0.8867351175773166 0.8981562005371644
3 precision 0.8727333377136273 0.007422272623764793 0.866227428908992 0.8792392465182626
4 recall 0.829030079055664 0.01844236050077116 0.8128646373315136 0.8451955207798143
5 f1 0.850223748276734 0.010349709747713121 0.8411518276957687 0.8592956688576993
6 roc_auc 0.9527710767910506 0.006542740503664845 0.9470361118811189 0.9585060417009822
7 pr_auc 0.9358309508430764 0.00643481567167842 0.9301905862193713 0.9414713154667815
8 mcc 0.7671314169694046 0.014522057546517971 0.7544022722933108 0.7798605616454983
9 brier 0.08755658794676884 0.0029756638450860926 0.08494830358553487 0.0901648723080028
@@ -0,0 +1,6 @@
,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
dummy_most_frequent,0.6315629945381027,0.0,0.0,0.0,0.5,0.3684370054618973,0.0,0.3684370054618973
logistic_regression,0.877833994571007,0.8241154301590724,0.849927442061945,0.8367420177360618,0.941702178253095,0.922607131065136,0.7395022800023918,0.0913441224489286
random_forest,0.8924456590572405,0.8727333377136273,0.829030079055664,0.850223748276734,0.9527710767910506,0.9358309508430764,0.7671314169694046,0.08755658794676884
xgboost,0.9277916328357951,0.9135406959068092,0.8881029348061512,0.9005883623006266,0.9767097128228892,0.9683117817597591,0.8441820066940338,0.05477161929011345
lightgbm,0.9301560040521679,0.9210205005213952,0.8864569796404591,0.9033804575410747,0.9778044083998637,0.969958390900661,0.8491361246489078,0.05229056699624248
1 accuracy precision recall f1 roc_auc pr_auc mcc brier
2 dummy_most_frequent 0.6315629945381027 0.0 0.0 0.0 0.5 0.3684370054618973 0.0 0.3684370054618973
3 logistic_regression 0.877833994571007 0.8241154301590724 0.849927442061945 0.8367420177360618 0.941702178253095 0.922607131065136 0.7395022800023918 0.0913441224489286
4 random_forest 0.8924456590572405 0.8727333377136273 0.829030079055664 0.850223748276734 0.9527710767910506 0.9358309508430764 0.7671314169694046 0.08755658794676884
5 xgboost 0.9277916328357951 0.9135406959068092 0.8881029348061512 0.9005883623006266 0.9767097128228892 0.9683117817597591 0.8441820066940338 0.05477161929011345
6 lightgbm 0.9301560040521679 0.9210205005213952 0.8864569796404591 0.9033804575410747 0.9778044083998637 0.969958390900661 0.8491361246489078 0.05229056699624248
@@ -0,0 +1,7 @@
| | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|----------:|
| dummy_most_frequent | 0.631563 | 0 | 0 | 0 | 0.5 | 0.368437 | 0 | 0.368437 |
| logistic_regression | 0.877834 | 0.824115 | 0.849927 | 0.836742 | 0.941702 | 0.922607 | 0.739502 | 0.0913441 |
| random_forest | 0.892446 | 0.872733 | 0.82903 | 0.850224 | 0.952771 | 0.935831 | 0.767131 | 0.0875566 |
| xgboost | 0.927792 | 0.913541 | 0.888103 | 0.900588 | 0.97671 | 0.968312 | 0.844182 | 0.0547716 |
| lightgbm | 0.930156 | 0.921021 | 0.886457 | 0.90338 | 0.977804 | 0.969958 | 0.849136 | 0.0522906 |
@@ -0,0 +1,9 @@
,mean,std,ci95_low,ci95_high
accuracy,0.9277916328357951,0.003551960767446554,0.9246782019498614,0.9309050637217289
precision,0.9135406959068092,0.0028831677666106537,0.9110134879330716,0.9160679038805468
recall,0.8881029348061512,0.01305781968580872,0.8766572512036331,0.8995486184086693
f1,0.9005883623006266,0.005702534790830589,0.8955898701695755,0.9055868544316776
roc_auc,0.9767097128228892,0.0033082724285164174,0.9738098841838948,0.9796095414618836
pr_auc,0.9683117817597591,0.003612163522900202,0.9651455808320035,0.9714779826875146
mcc,0.8441820066940338,0.00794620970622261,0.8372168467879335,0.851147166600134
brier,0.05477161929011345,0.0026008881508963405,0.05249184030886049,0.057051398271366405
1 mean std ci95_low ci95_high
2 accuracy 0.9277916328357951 0.003551960767446554 0.9246782019498614 0.9309050637217289
3 precision 0.9135406959068092 0.0028831677666106537 0.9110134879330716 0.9160679038805468
4 recall 0.8881029348061512 0.01305781968580872 0.8766572512036331 0.8995486184086693
5 f1 0.9005883623006266 0.005702534790830589 0.8955898701695755 0.9055868544316776
6 roc_auc 0.9767097128228892 0.0033082724285164174 0.9738098841838948 0.9796095414618836
7 pr_auc 0.9683117817597591 0.003612163522900202 0.9651455808320035 0.9714779826875146
8 mcc 0.8441820066940338 0.00794620970622261 0.8372168467879335 0.851147166600134
9 brier 0.05477161929011345 0.0026008881508963405 0.05249184030886049 0.057051398271366405
@@ -0,0 +1,15 @@
area,model,n_train,n_test,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
32,specialist,4721.0,1181,0.930567315834039,0.8629032258064516,0.816793893129771,0.8392156862745098,0.9673267491215974,0.9292015553816835,0.7954692332100317,0.0519155166539892
32,pooled_on_subset,,1166,0.9493996569468267,0.9316239316239316,0.8352490421455939,0.8808080808080808,0.9666920683304757,0.9364408340780385,0.8508506430002786,0.04368896580612041
31,specialist,1500.0,375,0.9253333333333333,0.8767123287671232,0.7710843373493976,0.8205128205128205,0.952962535071794,0.8952200307899209,0.776160027639481,0.06495098958516522
31,pooled_on_subset,,377,0.946949602122016,0.918918918918919,0.8292682926829268,0.8717948717948718,0.9728813559322034,0.9356866199037027,0.8402167428448224,0.04536923541973955
40,specialist,1022.0,256,0.83984375,0.8571428571428571,0.8095238095238095,0.8326530612244898,0.9236263736263736,0.9331645942069452,0.6803555888841176,0.12703101416739418
40,pooled_on_subset,,244,0.9098360655737705,0.8983050847457628,0.9137931034482759,0.905982905982906,0.9617456896551724,0.9642595097786962,0.8194913688077033,0.07957434518007606
42,specialist,775.0,194,0.8969072164948454,0.88,0.7586206896551724,0.8148148148148148,0.9349645030425964,0.8994204511987712,0.7478616876796342,0.08982080462945383
42,pooled_on_subset,,203,0.9261083743842364,0.9016393442622951,0.859375,0.88,0.9769559352517986,0.9637751383174913,0.8271608292650046,0.048779758321450296
46,specialist,658.0,165,0.9090909090909091,0.9454545454545454,0.9203539823008849,0.9327354260089686,0.9406058543226685,0.9674811594039668,0.7933093260902778,0.08051958369056347
46,pooled_on_subset,,157,0.9171974522292994,0.9528301886792453,0.926605504587156,0.9395348837209302,0.9682721712538226,0.9840532918333846,0.8090948889478105,0.05626512209498496
51,specialist,513.0,129,0.875968992248062,0.7272727272727273,0.7741935483870968,0.75,0.9186965108624096,0.8476593718423702,0.6682097848250941,0.100902416618966
51,pooled_on_subset,,133,0.9548872180451128,0.9310344827586207,0.8709677419354839,0.9,0.970271979759646,0.9409363609392009,0.8717228983609421,0.04478101537130266
34,specialist,462.0,116,0.9051724137931034,0.896551724137931,0.7647058823529411,0.8253968253968254,0.9540889526542324,0.9090455749994415,0.765404529471217,0.07917537304289644
34,pooled_on_subset,,120,0.925,0.9210526315789473,0.8536585365853658,0.8860759493670886,0.9771534424205001,0.9650667269791089,0.8316270648620494,0.05246369285584714
1 area model n_train n_test accuracy precision recall f1 roc_auc pr_auc mcc brier
2 32 specialist 4721.0 1181 0.930567315834039 0.8629032258064516 0.816793893129771 0.8392156862745098 0.9673267491215974 0.9292015553816835 0.7954692332100317 0.0519155166539892
3 32 pooled_on_subset 1166 0.9493996569468267 0.9316239316239316 0.8352490421455939 0.8808080808080808 0.9666920683304757 0.9364408340780385 0.8508506430002786 0.04368896580612041
4 31 specialist 1500.0 375 0.9253333333333333 0.8767123287671232 0.7710843373493976 0.8205128205128205 0.952962535071794 0.8952200307899209 0.776160027639481 0.06495098958516522
5 31 pooled_on_subset 377 0.946949602122016 0.918918918918919 0.8292682926829268 0.8717948717948718 0.9728813559322034 0.9356866199037027 0.8402167428448224 0.04536923541973955
6 40 specialist 1022.0 256 0.83984375 0.8571428571428571 0.8095238095238095 0.8326530612244898 0.9236263736263736 0.9331645942069452 0.6803555888841176 0.12703101416739418
7 40 pooled_on_subset 244 0.9098360655737705 0.8983050847457628 0.9137931034482759 0.905982905982906 0.9617456896551724 0.9642595097786962 0.8194913688077033 0.07957434518007606
8 42 specialist 775.0 194 0.8969072164948454 0.88 0.7586206896551724 0.8148148148148148 0.9349645030425964 0.8994204511987712 0.7478616876796342 0.08982080462945383
9 42 pooled_on_subset 203 0.9261083743842364 0.9016393442622951 0.859375 0.88 0.9769559352517986 0.9637751383174913 0.8271608292650046 0.048779758321450296
10 46 specialist 658.0 165 0.9090909090909091 0.9454545454545454 0.9203539823008849 0.9327354260089686 0.9406058543226685 0.9674811594039668 0.7933093260902778 0.08051958369056347
11 46 pooled_on_subset 157 0.9171974522292994 0.9528301886792453 0.926605504587156 0.9395348837209302 0.9682721712538226 0.9840532918333846 0.8090948889478105 0.05626512209498496
12 51 specialist 513.0 129 0.875968992248062 0.7272727272727273 0.7741935483870968 0.75 0.9186965108624096 0.8476593718423702 0.6682097848250941 0.100902416618966
13 51 pooled_on_subset 133 0.9548872180451128 0.9310344827586207 0.8709677419354839 0.9 0.970271979759646 0.9409363609392009 0.8717228983609421 0.04478101537130266
14 34 specialist 462.0 116 0.9051724137931034 0.896551724137931 0.7647058823529411 0.8253968253968254 0.9540889526542324 0.9090455749994415 0.765404529471217 0.07917537304289644
15 34 pooled_on_subset 120 0.925 0.9210526315789473 0.8536585365853658 0.8860759493670886 0.9771534424205001 0.9650667269791089 0.8316270648620494 0.05246369285584714
@@ -0,0 +1,16 @@
| | n_train | n_test | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:---------------------------|----------:|---------:|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|----------:|
| ('32', 'specialist') | 4721 | 1181 | 0.930567 | 0.862903 | 0.816794 | 0.839216 | 0.967327 | 0.929202 | 0.795469 | 0.0519155 |
| ('32', 'pooled_on_subset') | nan | 1166 | 0.9494 | 0.931624 | 0.835249 | 0.880808 | 0.966692 | 0.936441 | 0.850851 | 0.043689 |
| ('31', 'specialist') | 1500 | 375 | 0.925333 | 0.876712 | 0.771084 | 0.820513 | 0.952963 | 0.89522 | 0.77616 | 0.064951 |
| ('31', 'pooled_on_subset') | nan | 377 | 0.94695 | 0.918919 | 0.829268 | 0.871795 | 0.972881 | 0.935687 | 0.840217 | 0.0453692 |
| ('40', 'specialist') | 1022 | 256 | 0.839844 | 0.857143 | 0.809524 | 0.832653 | 0.923626 | 0.933165 | 0.680356 | 0.127031 |
| ('40', 'pooled_on_subset') | nan | 244 | 0.909836 | 0.898305 | 0.913793 | 0.905983 | 0.961746 | 0.96426 | 0.819491 | 0.0795743 |
| ('42', 'specialist') | 775 | 194 | 0.896907 | 0.88 | 0.758621 | 0.814815 | 0.934965 | 0.89942 | 0.747862 | 0.0898208 |
| ('42', 'pooled_on_subset') | nan | 203 | 0.926108 | 0.901639 | 0.859375 | 0.88 | 0.976956 | 0.963775 | 0.827161 | 0.0487798 |
| ('46', 'specialist') | 658 | 165 | 0.909091 | 0.945455 | 0.920354 | 0.932735 | 0.940606 | 0.967481 | 0.793309 | 0.0805196 |
| ('46', 'pooled_on_subset') | nan | 157 | 0.917197 | 0.95283 | 0.926606 | 0.939535 | 0.968272 | 0.984053 | 0.809095 | 0.0562651 |
| ('51', 'specialist') | 513 | 129 | 0.875969 | 0.727273 | 0.774194 | 0.75 | 0.918697 | 0.847659 | 0.66821 | 0.100902 |
| ('51', 'pooled_on_subset') | nan | 133 | 0.954887 | 0.931034 | 0.870968 | 0.9 | 0.970272 | 0.940936 | 0.871723 | 0.044781 |
| ('34', 'specialist') | 462 | 116 | 0.905172 | 0.896552 | 0.764706 | 0.825397 | 0.954089 | 0.909046 | 0.765405 | 0.0791754 |
| ('34', 'pooled_on_subset') | nan | 120 | 0.925 | 0.921053 | 0.853659 | 0.886076 | 0.977153 | 0.965067 | 0.831627 | 0.0524637 |
Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

@@ -0,0 +1,24 @@
{
"random_forest": {
"max_depth": 15,
"max_features": 0.4931994274157803,
"min_samples_leaf": 1,
"n_estimators": 720
},
"xgboost": {
"colsample_bytree": 0.8608647605824367,
"learning_rate": 0.05483713475230159,
"max_depth": 8,
"min_child_weight": 7,
"n_estimators": 542,
"subsample": 0.8842651558743149
},
"lightgbm": {
"colsample_bytree": 0.9436063712881633,
"learning_rate": 0.09972083578077036,
"min_child_samples": 41,
"n_estimators": 611,
"num_leaves": 17,
"subsample": 0.9043140194467589
}
}
@@ -0,0 +1,7 @@
model,variant,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
random_forest,default,0.8957259775689603,0.8731790916880892,0.8386831275720165,0.855583543240974,0.951964210958666,0.9349680824025975,0.7744264740411075,0.08763717778689288
random_forest,tuned,0.9151257956956653,0.8905597326649958,0.8773662551440329,0.8839137645107794,0.9648383134680854,0.9532390244050343,0.8170865290519,0.06774435426181988
xgboost,default,0.9269475598666262,0.907190635451505,0.8930041152263375,0.9000414765657404,0.9744139159419603,0.9665730556966816,0.8425529635211692,0.05556803196668625
xgboost,tuned,0.9305850257653835,0.9163851351351351,0.8930041152263375,0.9045435598165903,0.9780860248177374,0.971164830473292,0.8501963188015546,0.05061671882867813
lightgbm,default,0.9296756592906942,0.913372582001682,0.8938271604938272,0.9034941763727121,0.976269322211954,0.9685049361518786,0.8483100198135644,0.053432731044197566
lightgbm,tuned,0.9366474689299787,0.926271186440678,0.8995884773662551,0.9127348643006263,0.9776117074634882,0.9705838681584741,0.8632522856286617,0.05082471982015067
1 model variant accuracy precision recall f1 roc_auc pr_auc mcc brier
2 random_forest default 0.8957259775689603 0.8731790916880892 0.8386831275720165 0.855583543240974 0.951964210958666 0.9349680824025975 0.7744264740411075 0.08763717778689288
3 random_forest tuned 0.9151257956956653 0.8905597326649958 0.8773662551440329 0.8839137645107794 0.9648383134680854 0.9532390244050343 0.8170865290519 0.06774435426181988
4 xgboost default 0.9269475598666262 0.907190635451505 0.8930041152263375 0.9000414765657404 0.9744139159419603 0.9665730556966816 0.8425529635211692 0.05556803196668625
5 xgboost tuned 0.9305850257653835 0.9163851351351351 0.8930041152263375 0.9045435598165903 0.9780860248177374 0.971164830473292 0.8501963188015546 0.05061671882867813
6 lightgbm default 0.9296756592906942 0.913372582001682 0.8938271604938272 0.9034941763727121 0.976269322211954 0.9685049361518786 0.8483100198135644 0.053432731044197566
7 lightgbm tuned 0.9366474689299787 0.926271186440678 0.8995884773662551 0.9127348643006263 0.9776117074634882 0.9705838681584741 0.8632522856286617 0.05082471982015067
@@ -0,0 +1,8 @@
| | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:-----------------------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|----------:|
| ('random_forest', 'default') | 0.895726 | 0.873179 | 0.838683 | 0.855584 | 0.951964 | 0.934968 | 0.774426 | 0.0876372 |
| ('random_forest', 'tuned') | 0.915126 | 0.89056 | 0.877366 | 0.883914 | 0.964838 | 0.953239 | 0.817087 | 0.0677444 |
| ('xgboost', 'default') | 0.926948 | 0.907191 | 0.893004 | 0.900041 | 0.974414 | 0.966573 | 0.842553 | 0.055568 |
| ('xgboost', 'tuned') | 0.930585 | 0.916385 | 0.893004 | 0.904544 | 0.978086 | 0.971165 | 0.850196 | 0.0506167 |
| ('lightgbm', 'default') | 0.929676 | 0.913373 | 0.893827 | 0.903494 | 0.976269 | 0.968505 | 0.84831 | 0.0534327 |
| ('lightgbm', 'tuned') | 0.936647 | 0.926271 | 0.899588 | 0.912735 | 0.977612 | 0.970584 | 0.863252 | 0.0508247 |
@@ -0,0 +1,10 @@
,0
initial,16822
no_publication_anchor,1430
implausible_profile_founders,425
implausible_profile_nonfounders,770
founder_bad_founding_year,340
founder_bad_career_age,723
duplicates,0
below_min_pubs_at_index_founders,1112
below_min_pubs_at_index_nonfounders,3005
1 0
2 initial 16822
3 no_publication_anchor 1430
4 implausible_profile_founders 425
5 implausible_profile_nonfounders 770
6 founder_bad_founding_year 340
7 founder_bad_career_age 723
8 duplicates 0
9 below_min_pubs_at_index_founders 1112
10 below_min_pubs_at_index_nonfounders 3005
@@ -0,0 +1,25 @@
held_out_institution,model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
berkeley,random_forest,0.7659914712153518,0.5685019206145967,0.8131868131868132,0.6691785983421251,0.8547619047619047,0.7330881372592069,0.5158519325545086,0.16281251622327844
berkeley,xgboost,0.7915778251599147,0.6086956521739131,0.7948717948717948,0.6894360603653693,0.8576069294114407,0.741586799531578,0.5475397548573835,0.15189167857170105
berkeley,lightgbm,0.7814498933901919,0.603030303030303,0.7289377289377289,0.6600331674958541,0.8499407860310114,0.7350659292472954,0.5059997706165712,0.149555122726439
harvard,random_forest,0.8015873015873016,0.5753968253968254,0.6430155210643016,0.6073298429319371,0.8438771689504753,0.6573849413778056,0.4764456796429979,0.13855781340944884
harvard,xgboost,0.8317460317460318,0.639412997903564,0.6762749445676275,0.6573275862068966,0.8633058495598539,0.7000843424710989,0.5463194583057209,0.12460028380155563
harvard,lightgbm,0.8232804232804233,0.6297117516629712,0.6297117516629712,0.6297117516629712,0.8558049520099724,0.6972393890872501,0.5136589372084889,0.12547720520401978
muenchen,random_forest,0.7048832271762208,0.3446327683615819,0.7261904761904762,0.4674329501915709,0.8093392395717978,0.5006448114650062,0.33705579573522043,0.18923399440055652
muenchen,xgboost,0.7537154989384289,0.3987341772151899,0.75,0.5206611570247934,0.815983757844223,0.5242557891617051,0.40904820462844466,0.17195990681648254
muenchen,lightgbm,0.7515923566878981,0.3877551020408163,0.6785714285714286,0.4935064935064935,0.8122615971453181,0.5315550160005521,0.36847815988949306,0.16975197463720118
oxford,random_forest,0.810580204778157,0.5217391304347826,0.6638297872340425,0.5842696629213483,0.842834760099003,0.6280461770360506,0.46953140892760215,0.14220733689789294
oxford,xgboost,0.8071672354948806,0.5143769968051118,0.6851063829787234,0.5875912408759124,0.8486750380344694,0.6214727528224875,0.47319748971740944,0.13802118599414825
oxford,lightgbm,0.8097269624573379,0.5204081632653061,0.6510638297872341,0.5784499054820416,0.8384114080701197,0.6202413328309154,0.46233779542365877,0.13681269230308113
stanford,random_forest,0.7999124343257443,0.6654676258992805,0.757162346521146,0.7083599234205488,0.8740450864336963,0.7770736844626708,0.559726885687933,0.1423877302619292
stanford,xgboost,0.8161120840630472,0.6968553459119496,0.7557980900409277,0.725130890052356,0.8832241312430565,0.7934283229232462,0.5884073929950523,0.1302448958158493
stanford,lightgbm,0.8174255691768827,0.7101063829787234,0.7285129604365621,0.7191919191919192,0.8779553392917301,0.7934392862498869,0.5840718041855218,0.12889088179596303
telaviv,random_forest,0.8055045871559633,0.5268817204301075,0.8448275862068966,0.6490066225165563,0.8872076199662406,0.7267052998356232,0.5522425615484207,0.1500184971892688
telaviv,xgboost,0.818348623853211,0.5485714285714286,0.8275862068965517,0.6597938144329897,0.8876095169198617,0.7248530755500643,0.5640840249079071,0.13506236672401428
telaviv,lightgbm,0.8330275229357799,0.5786163522012578,0.7931034482758621,0.6690909090909091,0.8872679045092838,0.71419228864805,0.5735279705588365,0.1302984120003824
toronto,random_forest,0.8146067415730337,0.6116504854368932,0.7078651685393258,0.65625,0.8560998190464166,0.6936734754252618,0.5329012857891868,0.13855628609953433
toronto,xgboost,0.827247191011236,0.6424870466321243,0.6966292134831461,0.6684636118598383,0.8769936455834701,0.7440046539927276,0.5527384390144401,0.12293894588947296
toronto,lightgbm,0.8300561797752809,0.6557377049180327,0.6741573033707865,0.6648199445983379,0.8650422926398182,0.7332005081345564,0.5511152657981175,0.12259775056412968
ude,random_forest,0.7611940298507462,0.2222222222222222,0.6666666666666666,0.3333333333333333,0.8497267759562841,0.46781609195402296,0.28160810322078966,0.15533642564799244
ude,xgboost,0.7313432835820896,0.2,0.6666666666666666,0.3076923076923077,0.896174863387978,0.6018037518037518,0.25232323607491686,0.13626053929328918
ude,lightgbm,0.835820895522388,0.3333333333333333,0.8333333333333334,0.47619047619047616,0.9262295081967212,0.6456682206682207,0.4585410702748071,0.1221060265372392
1 held_out_institution model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 berkeley random_forest 0.7659914712153518 0.5685019206145967 0.8131868131868132 0.6691785983421251 0.8547619047619047 0.7330881372592069 0.5158519325545086 0.16281251622327844
3 berkeley xgboost 0.7915778251599147 0.6086956521739131 0.7948717948717948 0.6894360603653693 0.8576069294114407 0.741586799531578 0.5475397548573835 0.15189167857170105
4 berkeley lightgbm 0.7814498933901919 0.603030303030303 0.7289377289377289 0.6600331674958541 0.8499407860310114 0.7350659292472954 0.5059997706165712 0.149555122726439
5 harvard random_forest 0.8015873015873016 0.5753968253968254 0.6430155210643016 0.6073298429319371 0.8438771689504753 0.6573849413778056 0.4764456796429979 0.13855781340944884
6 harvard xgboost 0.8317460317460318 0.639412997903564 0.6762749445676275 0.6573275862068966 0.8633058495598539 0.7000843424710989 0.5463194583057209 0.12460028380155563
7 harvard lightgbm 0.8232804232804233 0.6297117516629712 0.6297117516629712 0.6297117516629712 0.8558049520099724 0.6972393890872501 0.5136589372084889 0.12547720520401978
8 muenchen random_forest 0.7048832271762208 0.3446327683615819 0.7261904761904762 0.4674329501915709 0.8093392395717978 0.5006448114650062 0.33705579573522043 0.18923399440055652
9 muenchen xgboost 0.7537154989384289 0.3987341772151899 0.75 0.5206611570247934 0.815983757844223 0.5242557891617051 0.40904820462844466 0.17195990681648254
10 muenchen lightgbm 0.7515923566878981 0.3877551020408163 0.6785714285714286 0.4935064935064935 0.8122615971453181 0.5315550160005521 0.36847815988949306 0.16975197463720118
11 oxford random_forest 0.810580204778157 0.5217391304347826 0.6638297872340425 0.5842696629213483 0.842834760099003 0.6280461770360506 0.46953140892760215 0.14220733689789294
12 oxford xgboost 0.8071672354948806 0.5143769968051118 0.6851063829787234 0.5875912408759124 0.8486750380344694 0.6214727528224875 0.47319748971740944 0.13802118599414825
13 oxford lightgbm 0.8097269624573379 0.5204081632653061 0.6510638297872341 0.5784499054820416 0.8384114080701197 0.6202413328309154 0.46233779542365877 0.13681269230308113
14 stanford random_forest 0.7999124343257443 0.6654676258992805 0.757162346521146 0.7083599234205488 0.8740450864336963 0.7770736844626708 0.559726885687933 0.1423877302619292
15 stanford xgboost 0.8161120840630472 0.6968553459119496 0.7557980900409277 0.725130890052356 0.8832241312430565 0.7934283229232462 0.5884073929950523 0.1302448958158493
16 stanford lightgbm 0.8174255691768827 0.7101063829787234 0.7285129604365621 0.7191919191919192 0.8779553392917301 0.7934392862498869 0.5840718041855218 0.12889088179596303
17 telaviv random_forest 0.8055045871559633 0.5268817204301075 0.8448275862068966 0.6490066225165563 0.8872076199662406 0.7267052998356232 0.5522425615484207 0.1500184971892688
18 telaviv xgboost 0.818348623853211 0.5485714285714286 0.8275862068965517 0.6597938144329897 0.8876095169198617 0.7248530755500643 0.5640840249079071 0.13506236672401428
19 telaviv lightgbm 0.8330275229357799 0.5786163522012578 0.7931034482758621 0.6690909090909091 0.8872679045092838 0.71419228864805 0.5735279705588365 0.1302984120003824
20 toronto random_forest 0.8146067415730337 0.6116504854368932 0.7078651685393258 0.65625 0.8560998190464166 0.6936734754252618 0.5329012857891868 0.13855628609953433
21 toronto xgboost 0.827247191011236 0.6424870466321243 0.6966292134831461 0.6684636118598383 0.8769936455834701 0.7440046539927276 0.5527384390144401 0.12293894588947296
22 toronto lightgbm 0.8300561797752809 0.6557377049180327 0.6741573033707865 0.6648199445983379 0.8650422926398182 0.7332005081345564 0.5511152657981175 0.12259775056412968
23 ude random_forest 0.7611940298507462 0.2222222222222222 0.6666666666666666 0.3333333333333333 0.8497267759562841 0.46781609195402296 0.28160810322078966 0.15533642564799244
24 ude xgboost 0.7313432835820896 0.2 0.6666666666666666 0.3076923076923077 0.896174863387978 0.6018037518037518 0.25232323607491686 0.13626053929328918
25 ude lightgbm 0.835820895522388 0.3333333333333333 0.8333333333333334 0.47619047619047616 0.9262295081967212 0.6456682206682207 0.4585410702748071 0.1221060265372392
@@ -0,0 +1,26 @@
| | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:------------------------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|---------:|
| ('berkeley', 'random_forest') | 0.765991 | 0.568502 | 0.813187 | 0.669179 | 0.854762 | 0.733088 | 0.515852 | 0.162813 |
| ('berkeley', 'xgboost') | 0.791578 | 0.608696 | 0.794872 | 0.689436 | 0.857607 | 0.741587 | 0.54754 | 0.151892 |
| ('berkeley', 'lightgbm') | 0.78145 | 0.60303 | 0.728938 | 0.660033 | 0.849941 | 0.735066 | 0.506 | 0.149555 |
| ('harvard', 'random_forest') | 0.801587 | 0.575397 | 0.643016 | 0.60733 | 0.843877 | 0.657385 | 0.476446 | 0.138558 |
| ('harvard', 'xgboost') | 0.831746 | 0.639413 | 0.676275 | 0.657328 | 0.863306 | 0.700084 | 0.546319 | 0.1246 |
| ('harvard', 'lightgbm') | 0.82328 | 0.629712 | 0.629712 | 0.629712 | 0.855805 | 0.697239 | 0.513659 | 0.125477 |
| ('muenchen', 'random_forest') | 0.704883 | 0.344633 | 0.72619 | 0.467433 | 0.809339 | 0.500645 | 0.337056 | 0.189234 |
| ('muenchen', 'xgboost') | 0.753715 | 0.398734 | 0.75 | 0.520661 | 0.815984 | 0.524256 | 0.409048 | 0.17196 |
| ('muenchen', 'lightgbm') | 0.751592 | 0.387755 | 0.678571 | 0.493506 | 0.812262 | 0.531555 | 0.368478 | 0.169752 |
| ('oxford', 'random_forest') | 0.81058 | 0.521739 | 0.66383 | 0.58427 | 0.842835 | 0.628046 | 0.469531 | 0.142207 |
| ('oxford', 'xgboost') | 0.807167 | 0.514377 | 0.685106 | 0.587591 | 0.848675 | 0.621473 | 0.473197 | 0.138021 |
| ('oxford', 'lightgbm') | 0.809727 | 0.520408 | 0.651064 | 0.57845 | 0.838411 | 0.620241 | 0.462338 | 0.136813 |
| ('stanford', 'random_forest') | 0.799912 | 0.665468 | 0.757162 | 0.70836 | 0.874045 | 0.777074 | 0.559727 | 0.142388 |
| ('stanford', 'xgboost') | 0.816112 | 0.696855 | 0.755798 | 0.725131 | 0.883224 | 0.793428 | 0.588407 | 0.130245 |
| ('stanford', 'lightgbm') | 0.817426 | 0.710106 | 0.728513 | 0.719192 | 0.877955 | 0.793439 | 0.584072 | 0.128891 |
| ('telaviv', 'random_forest') | 0.805505 | 0.526882 | 0.844828 | 0.649007 | 0.887208 | 0.726705 | 0.552243 | 0.150018 |
| ('telaviv', 'xgboost') | 0.818349 | 0.548571 | 0.827586 | 0.659794 | 0.88761 | 0.724853 | 0.564084 | 0.135062 |
| ('telaviv', 'lightgbm') | 0.833028 | 0.578616 | 0.793103 | 0.669091 | 0.887268 | 0.714192 | 0.573528 | 0.130298 |
| ('toronto', 'random_forest') | 0.814607 | 0.61165 | 0.707865 | 0.65625 | 0.8561 | 0.693673 | 0.532901 | 0.138556 |
| ('toronto', 'xgboost') | 0.827247 | 0.642487 | 0.696629 | 0.668464 | 0.876994 | 0.744005 | 0.552738 | 0.122939 |
| ('toronto', 'lightgbm') | 0.830056 | 0.655738 | 0.674157 | 0.66482 | 0.865042 | 0.733201 | 0.551115 | 0.122598 |
| ('ude', 'random_forest') | 0.761194 | 0.222222 | 0.666667 | 0.333333 | 0.849727 | 0.467816 | 0.281608 | 0.155336 |
| ('ude', 'xgboost') | 0.731343 | 0.2 | 0.666667 | 0.307692 | 0.896175 | 0.601804 | 0.252323 | 0.136261 |
| ('ude', 'lightgbm') | 0.835821 | 0.333333 | 0.833333 | 0.47619 | 0.92623 | 0.645668 | 0.458541 | 0.122106 |
@@ -0,0 +1,12 @@
model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
xgboost,0.8109756097560976,0.6187845303867403,0.7148936170212766,0.6633761105626851,0.8744266164789946,0.7255112168344391,0.535600710851566,0.13085858523845673
catboost,0.815410199556541,0.6280373831775701,0.7148936170212766,0.6686567164179105,0.871187278701075,0.7229265033400272,0.5436498796133824,0.13308676740102443
stacking_ensemble,0.8037694013303769,0.5966666666666667,0.7617021276595745,0.6691588785046729,0.8746578838240453,0.7221343045005837,0.5406113773836111,0.142284840741808
lightgbm,0.8131929046563193,0.631163708086785,0.6808510638297872,0.6550665301944729,0.8649303008070434,0.7109401478953907,0.5279418324593667,0.13163652604161835
random_forest,0.8004434589800443,0.5964912280701754,0.723404255319149,0.6538461538461539,0.8562202941082651,0.6943350744935747,0.5202066710761617,0.14630692947159313
logistic_regression,0.791019955654102,0.5800344234079173,0.7170212765957447,0.6412940057088488,0.8414096143417653,0.6700032178346078,0.5017166095581281,0.15290085408182966
svm_rbf,0.8143015521064302,0.6890756302521008,0.5234042553191489,0.5949214026602176,0.8371830042425596,0.6614524901098019,0.4849583299023803,0.13297057050989966
decision_tree,0.7677383592017738,0.5432937181663837,0.6808510638297872,0.6043437204910292,0.8050360458068837,0.6053416508022843,0.44853834701792206,0.1718711633992893
knn,0.7854767184035477,0.6627450980392157,0.3595744680851064,0.46620689655172415,0.7970429678777633,0.5621734577170925,0.3718006264996696,0.1496230598669623
gaussian_nb,0.75,0.5664335664335665,0.1723404255319149,0.2642740619902121,0.778106957159718,0.5088246146088554,0.20449108478440964,0.24867163360596548
dummy_most_frequent,0.7394678492239468,0.0,0.0,0.0,0.5,0.26053215077605324,0.0,0.26053215077605324
1 model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 xgboost 0.8109756097560976 0.6187845303867403 0.7148936170212766 0.6633761105626851 0.8744266164789946 0.7255112168344391 0.535600710851566 0.13085858523845673
3 catboost 0.815410199556541 0.6280373831775701 0.7148936170212766 0.6686567164179105 0.871187278701075 0.7229265033400272 0.5436498796133824 0.13308676740102443
4 stacking_ensemble 0.8037694013303769 0.5966666666666667 0.7617021276595745 0.6691588785046729 0.8746578838240453 0.7221343045005837 0.5406113773836111 0.142284840741808
5 lightgbm 0.8131929046563193 0.631163708086785 0.6808510638297872 0.6550665301944729 0.8649303008070434 0.7109401478953907 0.5279418324593667 0.13163652604161835
6 random_forest 0.8004434589800443 0.5964912280701754 0.723404255319149 0.6538461538461539 0.8562202941082651 0.6943350744935747 0.5202066710761617 0.14630692947159313
7 logistic_regression 0.791019955654102 0.5800344234079173 0.7170212765957447 0.6412940057088488 0.8414096143417653 0.6700032178346078 0.5017166095581281 0.15290085408182966
8 svm_rbf 0.8143015521064302 0.6890756302521008 0.5234042553191489 0.5949214026602176 0.8371830042425596 0.6614524901098019 0.4849583299023803 0.13297057050989966
9 decision_tree 0.7677383592017738 0.5432937181663837 0.6808510638297872 0.6043437204910292 0.8050360458068837 0.6053416508022843 0.44853834701792206 0.1718711633992893
10 knn 0.7854767184035477 0.6627450980392157 0.3595744680851064 0.46620689655172415 0.7970429678777633 0.5621734577170925 0.3718006264996696 0.1496230598669623
11 gaussian_nb 0.75 0.5664335664335665 0.1723404255319149 0.2642740619902121 0.778106957159718 0.5088246146088554 0.20449108478440964 0.24867163360596548
12 dummy_most_frequent 0.7394678492239468 0.0 0.0 0.0 0.5 0.26053215077605324 0.0 0.26053215077605324
@@ -0,0 +1,13 @@
| model | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|---------:|
| xgboost | 0.810976 | 0.618785 | 0.714894 | 0.663376 | 0.874427 | 0.725511 | 0.535601 | 0.130859 |
| catboost | 0.81541 | 0.628037 | 0.714894 | 0.668657 | 0.871187 | 0.722927 | 0.54365 | 0.133087 |
| stacking_ensemble | 0.803769 | 0.596667 | 0.761702 | 0.669159 | 0.874658 | 0.722134 | 0.540611 | 0.142285 |
| lightgbm | 0.813193 | 0.631164 | 0.680851 | 0.655067 | 0.86493 | 0.71094 | 0.527942 | 0.131637 |
| random_forest | 0.800443 | 0.596491 | 0.723404 | 0.653846 | 0.85622 | 0.694335 | 0.520207 | 0.146307 |
| logistic_regression | 0.79102 | 0.580034 | 0.717021 | 0.641294 | 0.84141 | 0.670003 | 0.501717 | 0.152901 |
| svm_rbf | 0.814302 | 0.689076 | 0.523404 | 0.594921 | 0.837183 | 0.661452 | 0.484958 | 0.132971 |
| decision_tree | 0.767738 | 0.543294 | 0.680851 | 0.604344 | 0.805036 | 0.605342 | 0.448538 | 0.171871 |
| knn | 0.785477 | 0.662745 | 0.359574 | 0.466207 | 0.797043 | 0.562173 | 0.371801 | 0.149623 |
| gaussian_nb | 0.75 | 0.566434 | 0.17234 | 0.264274 | 0.778107 | 0.508825 | 0.204491 | 0.248672 |
| dummy_most_frequent | 0.739468 | 0 | 0 | 0 | 0.5 | 0.260532 | 0 | 0.260532 |
@@ -0,0 +1,93 @@
feature,importance_mean,importance_std
patent_research_area_n.,0.10444260921031703,0.01000291629874731
pub_rate,0.08201736179505467,0.010285677786261209
first_publication_year,0.0547564807378144,0.006026166591504968
industry_collab_at_index,0.0454906367927285,0.004749368941899651
career_age_at_index,0.030337435596206636,0.0061091803388714306
patents_at_index,0.027915583825288897,0.003703699002366671
patent_rate,0.02257319938334216,0.0028412477089575
patent_research_area_46,0.020719020561163842,0.004705278553964332
publication_research_area_32,0.015048499383005075,0.002711540575849488
years_since_first_grant,0.009081401276953966,0.002810918250730077
grant_research_area_51,0.008390616865516776,0.001806267261854904
institution_berkeley,0.007077813918881587,0.0020744773908402407
pubs_at_index,0.006698549835378387,0.0027466650677884677
grants_at_index,0.00599503440126114,0.001980142298622219
linked_pat_pub_at_index,0.005507226827832795,0.0031018962561504865
years_since_first_patent,0.004659123586806957,0.0022112365909527864
grant_rate,0.004485274174139342,0.002214912214326525
publication_research_area_31,0.0044331001338714145,0.0030081377740826198
activities_at_index,0.004305284216529736,0.0014782296452033978
grant_research_area_46,0.004091858156144962,0.0011631444373894524
institution_muenchen,0.003659848471299282,0.002803323314333376
grant_research_area_32,0.0035364026460315556,0.001234692789094628
institution_harvard,0.0030399598700210583,0.0010328665345558197
institution_oxford,0.002425090347126174,0.0012716207135969424
grant_research_area_n.,0.00225639772892266,0.0010747339941249506
publication_research_area_35,0.0020549314854987734,0.0009371249153349768
institution_ude,0.001162683833843925,0.0006841053498902781
institution_toronto,0.001156583492787261,0.0007606506950016298
publication_research_area_46,0.0011120620784481894,0.0005477141022425093
publication_research_area_51,0.0011031559479410646,0.0007678826095928305
publication_research_area_n.,0.0010664235558135837,0.0014260233229656733
grant_research_area_31,0.0010364325218291948,0.0004560203605407486
grant_research_area_33,0.001024820172770624,0.0008293070226958775
institution_stanford,0.0009809714058171327,0.0024170143165917917
has_grants_at_index,0.0009652551908011509,0.0005840689937446477
patent_research_area_32,0.0008854501671646586,0.0008795227637767272
patent_research_area_37,0.0007922846156994346,0.0003202768842191713
patent_research_area_34,0.0007533382280581757,0.0006179414386520229
grant_research_area_40,0.0006506331487920125,0.00024905292234651626
publication_research_area_40,0.0006333794139779525,0.0005119740114490612
grant_research_area_44,0.0006075402293343856,0.0009861276315923473
publication_research_area_44,0.0005199043034394668,0.00027784478444705133
grant_research_area_52,0.0005165759383172375,0.0006805695935962879
patent_research_area_35,0.0005135954428669542,0.0004909736821470622
grant_research_area_35,0.0005100934296669246,0.00042419921649439104
has_patents_at_index,0.0004675935068726766,0.0002043361710744472
publication_research_area_36,0.000464118746512987,0.00019912666321521497
publication_research_area_41,0.0004548894864885633,0.00047544771839497186
publication_research_area_38,0.00041117653710123216,0.00038916428122990254
patent_research_area_30,0.00040721947959039274,0.0002405194434829914
grant_research_area_42,0.0003586989558202858,0.0006275379824004101
publication_research_area_42,0.00032694798696689673,0.0004053897544270012
patent_research_area_36,0.0003203928510275733,0.00021304776451355032
institution_telaviv,0.00030826243735263545,0.001992324302329092
grant_research_area_39,0.0002725435728411885,0.00022673759381254337
publication_research_area_39,0.00026036344846201985,0.00015391601315424035
grant_research_area_47,0.0002447153523418621,0.00028311124502635815
publication_research_area_49,0.00023995063333196454,0.0004296785577625752
publication_research_area_30,0.0002088399681934361,0.00020777950125951507
patent_research_area_31,0.00019864516127749977,0.000380279221169651
publication_research_area_37,0.00018668751279878325,0.0003857466547111577
grant_research_area_41,0.0001861237461911358,0.00020270170413414225
grant_research_area_34,0.000178172364924839,0.0005065287456772773
publication_research_area_34,0.00016605431326274233,0.0012642739104362067
patent_research_area_41,0.00016333760195231807,0.0001247795859965852
patent_research_area_40,0.00016073261327945176,0.0006151752824866421
publication_research_area_47,0.00010905356177434155,0.00011443403044224373
grant_research_area_36,6.014396964046376e-05,7.141717095673809e-05
grant_research_area_49,1.7251931083628323e-05,2.7492307340890443e-05
grant_research_area_30,1.4864167816464047e-05,2.0438806913546228e-05
patent_research_area_47,8.931937467215879e-06,2.6996384585526762e-05
grant_research_area_48,0.0,0.0
patent_research_area_52,0.0,0.0
patent_research_area_44,0.0,0.0
patent_research_area_48,0.0,0.0
patent_research_area_33,0.0,0.0
patent_research_area_39,0.0,0.0
patent_research_area_42,0.0,0.0
patent_research_area_43,0.0,0.0
patent_research_area_38,0.0,0.0
patent_research_area_49,0.0,0.0
patent_research_area_50,0.0,0.0
publication_research_area_43,0.0,0.0
grant_research_area_37,-1.690891772265779e-07,6.788074255353668e-05
grant_research_area_38,-8.25084822601574e-06,3.097726332911861e-05
grant_research_area_50,-2.8781924222920364e-05,4.0867346872770755e-05
grant_research_area_43,-8.555855220965803e-05,2.3804626607015977e-05
publication_research_area_48,-8.756024432305388e-05,0.0001333723730635551
publication_research_area_33,-0.0001731751809484261,0.0005742303072148211
patent_research_area_51,-0.0002463145708732517,0.0001826665200607186
publication_research_area_50,-0.000452251215090077,0.00015294072202135244
publication_research_area_52,-0.0007332997092399818,0.0004020032943703248
1 feature importance_mean importance_std
2 patent_research_area_n. 0.10444260921031703 0.01000291629874731
3 pub_rate 0.08201736179505467 0.010285677786261209
4 first_publication_year 0.0547564807378144 0.006026166591504968
5 industry_collab_at_index 0.0454906367927285 0.004749368941899651
6 career_age_at_index 0.030337435596206636 0.0061091803388714306
7 patents_at_index 0.027915583825288897 0.003703699002366671
8 patent_rate 0.02257319938334216 0.0028412477089575
9 patent_research_area_46 0.020719020561163842 0.004705278553964332
10 publication_research_area_32 0.015048499383005075 0.002711540575849488
11 years_since_first_grant 0.009081401276953966 0.002810918250730077
12 grant_research_area_51 0.008390616865516776 0.001806267261854904
13 institution_berkeley 0.007077813918881587 0.0020744773908402407
14 pubs_at_index 0.006698549835378387 0.0027466650677884677
15 grants_at_index 0.00599503440126114 0.001980142298622219
16 linked_pat_pub_at_index 0.005507226827832795 0.0031018962561504865
17 years_since_first_patent 0.004659123586806957 0.0022112365909527864
18 grant_rate 0.004485274174139342 0.002214912214326525
19 publication_research_area_31 0.0044331001338714145 0.0030081377740826198
20 activities_at_index 0.004305284216529736 0.0014782296452033978
21 grant_research_area_46 0.004091858156144962 0.0011631444373894524
22 institution_muenchen 0.003659848471299282 0.002803323314333376
23 grant_research_area_32 0.0035364026460315556 0.001234692789094628
24 institution_harvard 0.0030399598700210583 0.0010328665345558197
25 institution_oxford 0.002425090347126174 0.0012716207135969424
26 grant_research_area_n. 0.00225639772892266 0.0010747339941249506
27 publication_research_area_35 0.0020549314854987734 0.0009371249153349768
28 institution_ude 0.001162683833843925 0.0006841053498902781
29 institution_toronto 0.001156583492787261 0.0007606506950016298
30 publication_research_area_46 0.0011120620784481894 0.0005477141022425093
31 publication_research_area_51 0.0011031559479410646 0.0007678826095928305
32 publication_research_area_n. 0.0010664235558135837 0.0014260233229656733
33 grant_research_area_31 0.0010364325218291948 0.0004560203605407486
34 grant_research_area_33 0.001024820172770624 0.0008293070226958775
35 institution_stanford 0.0009809714058171327 0.0024170143165917917
36 has_grants_at_index 0.0009652551908011509 0.0005840689937446477
37 patent_research_area_32 0.0008854501671646586 0.0008795227637767272
38 patent_research_area_37 0.0007922846156994346 0.0003202768842191713
39 patent_research_area_34 0.0007533382280581757 0.0006179414386520229
40 grant_research_area_40 0.0006506331487920125 0.00024905292234651626
41 publication_research_area_40 0.0006333794139779525 0.0005119740114490612
42 grant_research_area_44 0.0006075402293343856 0.0009861276315923473
43 publication_research_area_44 0.0005199043034394668 0.00027784478444705133
44 grant_research_area_52 0.0005165759383172375 0.0006805695935962879
45 patent_research_area_35 0.0005135954428669542 0.0004909736821470622
46 grant_research_area_35 0.0005100934296669246 0.00042419921649439104
47 has_patents_at_index 0.0004675935068726766 0.0002043361710744472
48 publication_research_area_36 0.000464118746512987 0.00019912666321521497
49 publication_research_area_41 0.0004548894864885633 0.00047544771839497186
50 publication_research_area_38 0.00041117653710123216 0.00038916428122990254
51 patent_research_area_30 0.00040721947959039274 0.0002405194434829914
52 grant_research_area_42 0.0003586989558202858 0.0006275379824004101
53 publication_research_area_42 0.00032694798696689673 0.0004053897544270012
54 patent_research_area_36 0.0003203928510275733 0.00021304776451355032
55 institution_telaviv 0.00030826243735263545 0.001992324302329092
56 grant_research_area_39 0.0002725435728411885 0.00022673759381254337
57 publication_research_area_39 0.00026036344846201985 0.00015391601315424035
58 grant_research_area_47 0.0002447153523418621 0.00028311124502635815
59 publication_research_area_49 0.00023995063333196454 0.0004296785577625752
60 publication_research_area_30 0.0002088399681934361 0.00020777950125951507
61 patent_research_area_31 0.00019864516127749977 0.000380279221169651
62 publication_research_area_37 0.00018668751279878325 0.0003857466547111577
63 grant_research_area_41 0.0001861237461911358 0.00020270170413414225
64 grant_research_area_34 0.000178172364924839 0.0005065287456772773
65 publication_research_area_34 0.00016605431326274233 0.0012642739104362067
66 patent_research_area_41 0.00016333760195231807 0.0001247795859965852
67 patent_research_area_40 0.00016073261327945176 0.0006151752824866421
68 publication_research_area_47 0.00010905356177434155 0.00011443403044224373
69 grant_research_area_36 6.014396964046376e-05 7.141717095673809e-05
70 grant_research_area_49 1.7251931083628323e-05 2.7492307340890443e-05
71 grant_research_area_30 1.4864167816464047e-05 2.0438806913546228e-05
72 patent_research_area_47 8.931937467215879e-06 2.6996384585526762e-05
73 grant_research_area_48 0.0 0.0
74 patent_research_area_52 0.0 0.0
75 patent_research_area_44 0.0 0.0
76 patent_research_area_48 0.0 0.0
77 patent_research_area_33 0.0 0.0
78 patent_research_area_39 0.0 0.0
79 patent_research_area_42 0.0 0.0
80 patent_research_area_43 0.0 0.0
81 patent_research_area_38 0.0 0.0
82 patent_research_area_49 0.0 0.0
83 patent_research_area_50 0.0 0.0
84 publication_research_area_43 0.0 0.0
85 grant_research_area_37 -1.690891772265779e-07 6.788074255353668e-05
86 grant_research_area_38 -8.25084822601574e-06 3.097726332911861e-05
87 grant_research_area_50 -2.8781924222920364e-05 4.0867346872770755e-05
88 grant_research_area_43 -8.555855220965803e-05 2.3804626607015977e-05
89 publication_research_area_48 -8.756024432305388e-05 0.0001333723730635551
90 publication_research_area_33 -0.0001731751809484261 0.0005742303072148211
91 patent_research_area_51 -0.0002463145708732517 0.0001826665200607186
92 publication_research_area_50 -0.000452251215090077 0.00015294072202135244
93 publication_research_area_52 -0.0007332997092399818 0.0004020032943703248
Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

@@ -0,0 +1,11 @@
pubs_decile,pubs_median,p_founder_median,n
0,4.980496919642443,0.3915597,181
1,7.265509705598422,0.34831706,180
2,10.829857249335916,0.41633904,180
3,17.074329250273248,0.39508438,181
4,25.61426887916668,0.1680935,180
5,39.18466019195309,0.1698496,180
6,58.63514863439843,0.14302556,181
7,83.22335062107854,0.17652148,180
8,136.44852188347846,0.09957586,180
9,254.4977651893464,0.10607539,181
1 pubs_decile pubs_median p_founder_median n
2 0 4.980496919642443 0.3915597 181
3 1 7.265509705598422 0.34831706 180
4 2 10.829857249335916 0.41633904 180
5 3 17.074329250273248 0.39508438 181
6 4 25.61426887916668 0.1680935 180
7 5 39.18466019195309 0.1698496 180
8 6 58.63514863439843 0.14302556 181
9 7 83.22335062107854 0.17652148 180
10 8 136.44852188347846 0.09957586 180
11 9 254.4977651893464 0.10607539 181
@@ -0,0 +1,5 @@
model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
catboost,0.7919157415314546,0.6121112929623568,0.7442786069651741,0.6717557251908397,0.8607147674704626,0.732969623731087,0.5268819654885002,0.14595411793192087
random_forest,0.7947623114147452,0.6219931271477663,0.7203980099502487,0.6675887505763024,0.8526728399469955,0.7221834188868932,0.5232303860768714,0.1465061594100234
xgboost,0.7839453458582408,0.5979299363057324,0.7472636815920398,0.6643078283945157,0.854764851976164,0.7197777187580949,0.5147610429350759,0.15043815970420837
lightgbm,0.7873612297181896,0.6123693379790941,0.699502487562189,0.6530422666047375,0.8487121807231783,0.7101883805026368,0.5030246219789863,0.1495069027701116
1 model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 catboost 0.7919157415314546 0.6121112929623568 0.7442786069651741 0.6717557251908397 0.8607147674704626 0.732969623731087 0.5268819654885002 0.14595411793192087
3 random_forest 0.7947623114147452 0.6219931271477663 0.7203980099502487 0.6675887505763024 0.8526728399469955 0.7221834188868932 0.5232303860768714 0.1465061594100234
4 xgboost 0.7839453458582408 0.5979299363057324 0.7472636815920398 0.6643078283945157 0.854764851976164 0.7197777187580949 0.5147610429350759 0.15043815970420837
5 lightgbm 0.7873612297181896 0.6123693379790941 0.699502487562189 0.6530422666047375 0.8487121807231783 0.7101883805026368 0.5030246219789863 0.1495069027701116
@@ -0,0 +1,6 @@
| model | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|---------:|
| catboost | 0.791916 | 0.612111 | 0.744279 | 0.671756 | 0.860715 | 0.73297 | 0.526882 | 0.145954 |
| random_forest | 0.794762 | 0.621993 | 0.720398 | 0.667589 | 0.852673 | 0.722183 | 0.52323 | 0.146506 |
| xgboost | 0.783945 | 0.59793 | 0.747264 | 0.664308 | 0.854765 | 0.719778 | 0.514761 | 0.150438 |
| lightgbm | 0.787361 | 0.612369 | 0.699502 | 0.653042 | 0.848712 | 0.710188 | 0.503025 | 0.149507 |
@@ -0,0 +1,3 @@
offset_years,regime,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
3,in-range,0.8631807550952222,0.8465067043048694,0.8620194035213798,0.854192629517536,0.9490754322242588,0.9447569234280719,0.7254438560295196,0.09512312424031473
5,extrapolation,0.8536585365853658,0.8433561397191214,0.8415379087315846,0.8424460431654677,0.9423212988990626,0.9406816480806482,0.7058289332875681,0.09915583394631641
1 offset_years regime accuracy precision recall f1 roc_auc pr_auc mcc brier
2 3 in-range 0.8631807550952222 0.8465067043048694 0.8620194035213798 0.854192629517536 0.9490754322242588 0.9447569234280719 0.7254438560295196 0.09512312424031473
3 5 extrapolation 0.8536585365853658 0.8433561397191214 0.8415379087315846 0.8424460431654677 0.9423212988990626 0.9406816480806482 0.7058289332875681 0.09915583394631641
@@ -0,0 +1,4 @@
| offset_years | regime | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|---------------:|:--------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|----------:|
| 3 | in-range | 0.863181 | 0.846507 | 0.862019 | 0.854193 | 0.949075 | 0.944757 | 0.725444 | 0.0951231 |
| 5 | extrapolation | 0.853659 | 0.843356 | 0.841538 | 0.842446 | 0.942321 | 0.940682 | 0.705829 | 0.0991558 |
@@ -0,0 +1,19 @@
offset_years,model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
1,dummy_most_frequent,0.5661736822146378,0.0,0.0,0.0,0.5,0.4338263177853622,0.0,0.4338263177853622
1,logistic_regression,0.7591960561243838,0.7040898155573376,0.7674825174825175,0.7344207444583856,0.8572581136211411,0.8293360222290606,0.5165120209574257,0.1551183472652962
1,decision_tree,0.800910125142207,0.8788249694002448,0.6276223776223776,0.7322794492605813,0.8770102553173551,0.8433125359476892,0.601590878883977,0.13526520115889215
1,random_forest,0.8168373151308305,0.8001816530426885,0.7701048951048951,0.7848552338530067,0.9117091883334347,0.9049847240390165,0.6258464396286001,0.11935927951910208
1,xgboost,0.819491846795601,0.7929824561403509,0.7902097902097902,0.7915936952714536,0.9160142436264339,0.9076603816788962,0.6324002494681569,0.11532440036535263
1,lightgbm,0.8164580963215775,0.791005291005291,0.7840909090909091,0.7875329236172081,0.9134082595234638,0.9058031727382153,0.6260083630935187,0.11756659954499901
2,dummy_most_frequent,0.5661736822146378,0.0,0.0,0.0,0.5,0.4338263177853622,0.0,0.4338263177853622
2,logistic_regression,0.7629882442169131,0.7071029529130087,0.7744755244755245,0.7392574050896955,0.858364968922571,0.8302205046607707,0.5246590948773446,0.15435887151342015
2,decision_tree,0.7937049677664012,0.8658536585365854,0.6206293706293706,0.7230142566191446,0.8733225916749024,0.843959142280009,0.5856092232229861,0.1367376966357669
2,random_forest,0.8210087220326128,0.8105360443622921,0.7666083916083916,0.7879604672057502,0.9139316811788345,0.9062550237995185,0.6340485024896209,0.11826627106757638
2,xgboost,0.8229048160788776,0.8052299368800722,0.7805944055944056,0.7927208166888593,0.9183023105494639,0.9099229716095572,0.638436107410398,0.11364441365003586
2,lightgbm,0.819871065604854,0.8005390835579514,0.7788461538461539,0.7895436420026584,0.9159375453749199,0.9082849372502848,0.6323366309042239,0.11539552583472808
3,dummy_most_frequent,0.5661736822146378,0.0,0.0,0.0,0.5,0.4338263177853622,0.0,0.4338263177853622
3,logistic_regression,0.7675388699279484,0.7098814229249012,0.784965034965035,0.7455375674553757,0.8644332057761395,0.8370762949302815,0.5348490192949841,0.15176601514477916
3,decision_tree,0.801668562760713,0.8736462093862816,0.6346153846153846,0.7351898734177216,0.888387650527637,0.8599692227771747,0.6019822969962042,0.12890424209230303
3,random_forest,0.8293515358361775,0.8224907063197026,0.7736013986013986,0.7972972972972973,0.9176079279059854,0.9104691376235128,0.6510984297410125,0.11569634159878014
3,xgboost,0.8312476298824422,0.8168631006346329,0.7875874125874126,0.8019581664441477,0.9220262741277476,0.91385110761046,0.6553642864918443,0.11131781339645386
3,lightgbm,0.8297307546454304,0.8099910793933988,0.7937062937062938,0.801766004415011,0.9226975301992046,0.9153645143313508,0.6526773305456256,0.1104552740805854
1 offset_years model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 1 dummy_most_frequent 0.5661736822146378 0.0 0.0 0.0 0.5 0.4338263177853622 0.0 0.4338263177853622
3 1 logistic_regression 0.7591960561243838 0.7040898155573376 0.7674825174825175 0.7344207444583856 0.8572581136211411 0.8293360222290606 0.5165120209574257 0.1551183472652962
4 1 decision_tree 0.800910125142207 0.8788249694002448 0.6276223776223776 0.7322794492605813 0.8770102553173551 0.8433125359476892 0.601590878883977 0.13526520115889215
5 1 random_forest 0.8168373151308305 0.8001816530426885 0.7701048951048951 0.7848552338530067 0.9117091883334347 0.9049847240390165 0.6258464396286001 0.11935927951910208
6 1 xgboost 0.819491846795601 0.7929824561403509 0.7902097902097902 0.7915936952714536 0.9160142436264339 0.9076603816788962 0.6324002494681569 0.11532440036535263
7 1 lightgbm 0.8164580963215775 0.791005291005291 0.7840909090909091 0.7875329236172081 0.9134082595234638 0.9058031727382153 0.6260083630935187 0.11756659954499901
8 2 dummy_most_frequent 0.5661736822146378 0.0 0.0 0.0 0.5 0.4338263177853622 0.0 0.4338263177853622
9 2 logistic_regression 0.7629882442169131 0.7071029529130087 0.7744755244755245 0.7392574050896955 0.858364968922571 0.8302205046607707 0.5246590948773446 0.15435887151342015
10 2 decision_tree 0.7937049677664012 0.8658536585365854 0.6206293706293706 0.7230142566191446 0.8733225916749024 0.843959142280009 0.5856092232229861 0.1367376966357669
11 2 random_forest 0.8210087220326128 0.8105360443622921 0.7666083916083916 0.7879604672057502 0.9139316811788345 0.9062550237995185 0.6340485024896209 0.11826627106757638
12 2 xgboost 0.8229048160788776 0.8052299368800722 0.7805944055944056 0.7927208166888593 0.9183023105494639 0.9099229716095572 0.638436107410398 0.11364441365003586
13 2 lightgbm 0.819871065604854 0.8005390835579514 0.7788461538461539 0.7895436420026584 0.9159375453749199 0.9082849372502848 0.6323366309042239 0.11539552583472808
14 3 dummy_most_frequent 0.5661736822146378 0.0 0.0 0.0 0.5 0.4338263177853622 0.0 0.4338263177853622
15 3 logistic_regression 0.7675388699279484 0.7098814229249012 0.784965034965035 0.7455375674553757 0.8644332057761395 0.8370762949302815 0.5348490192949841 0.15176601514477916
16 3 decision_tree 0.801668562760713 0.8736462093862816 0.6346153846153846 0.7351898734177216 0.888387650527637 0.8599692227771747 0.6019822969962042 0.12890424209230303
17 3 random_forest 0.8293515358361775 0.8224907063197026 0.7736013986013986 0.7972972972972973 0.9176079279059854 0.9104691376235128 0.6510984297410125 0.11569634159878014
18 3 xgboost 0.8312476298824422 0.8168631006346329 0.7875874125874126 0.8019581664441477 0.9220262741277476 0.91385110761046 0.6553642864918443 0.11131781339645386
19 3 lightgbm 0.8297307546454304 0.8099910793933988 0.7937062937062938 0.801766004415011 0.9226975301992046 0.9153645143313508 0.6526773305456256 0.1104552740805854
@@ -0,0 +1,20 @@
| | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:---------------------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|---------:|
| (1, 'dummy_most_frequent') | 0.566174 | 0 | 0 | 0 | 0.5 | 0.433826 | 0 | 0.433826 |
| (1, 'logistic_regression') | 0.759196 | 0.70409 | 0.767483 | 0.734421 | 0.857258 | 0.829336 | 0.516512 | 0.155118 |
| (1, 'decision_tree') | 0.80091 | 0.878825 | 0.627622 | 0.732279 | 0.87701 | 0.843313 | 0.601591 | 0.135265 |
| (1, 'random_forest') | 0.816837 | 0.800182 | 0.770105 | 0.784855 | 0.911709 | 0.904985 | 0.625846 | 0.119359 |
| (1, 'xgboost') | 0.819492 | 0.792982 | 0.79021 | 0.791594 | 0.916014 | 0.90766 | 0.6324 | 0.115324 |
| (1, 'lightgbm') | 0.816458 | 0.791005 | 0.784091 | 0.787533 | 0.913408 | 0.905803 | 0.626008 | 0.117567 |
| (2, 'dummy_most_frequent') | 0.566174 | 0 | 0 | 0 | 0.5 | 0.433826 | 0 | 0.433826 |
| (2, 'logistic_regression') | 0.762988 | 0.707103 | 0.774476 | 0.739257 | 0.858365 | 0.830221 | 0.524659 | 0.154359 |
| (2, 'decision_tree') | 0.793705 | 0.865854 | 0.620629 | 0.723014 | 0.873323 | 0.843959 | 0.585609 | 0.136738 |
| (2, 'random_forest') | 0.821009 | 0.810536 | 0.766608 | 0.78796 | 0.913932 | 0.906255 | 0.634049 | 0.118266 |
| (2, 'xgboost') | 0.822905 | 0.80523 | 0.780594 | 0.792721 | 0.918302 | 0.909923 | 0.638436 | 0.113644 |
| (2, 'lightgbm') | 0.819871 | 0.800539 | 0.778846 | 0.789544 | 0.915938 | 0.908285 | 0.632337 | 0.115396 |
| (3, 'dummy_most_frequent') | 0.566174 | 0 | 0 | 0 | 0.5 | 0.433826 | 0 | 0.433826 |
| (3, 'logistic_regression') | 0.767539 | 0.709881 | 0.784965 | 0.745538 | 0.864433 | 0.837076 | 0.534849 | 0.151766 |
| (3, 'decision_tree') | 0.801669 | 0.873646 | 0.634615 | 0.73519 | 0.888388 | 0.859969 | 0.601982 | 0.128904 |
| (3, 'random_forest') | 0.829352 | 0.822491 | 0.773601 | 0.797297 | 0.917608 | 0.910469 | 0.651098 | 0.115696 |
| (3, 'xgboost') | 0.831248 | 0.816863 | 0.787587 | 0.801958 | 0.922026 | 0.913851 | 0.655364 | 0.111318 |
| (3, 'lightgbm') | 0.829731 | 0.809991 | 0.793706 | 0.801766 | 0.922698 | 0.915365 | 0.652677 | 0.110455 |
@@ -0,0 +1,4 @@
method,metric,value
CoxPH survival model,concordance_index,0.7151927275906578
CoxPH survival model,auc_within_5y,0.6564548365605725
"Pooled classifier (offset=5, extrapolation)",roc_auc,0.9423212988990626
1 method metric value
2 CoxPH survival model concordance_index 0.7151927275906578
3 CoxPH survival model auc_within_5y 0.6564548365605725
4 Pooled classifier (offset=5, extrapolation) roc_auc 0.9423212988990626
@@ -0,0 +1,5 @@
model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
catboost,0.819142689371697,0.631578947368421,0.75,0.6857142857142857,0.8871371656232214,0.7459898973822718,0.5641373642594485,0.12782820408114018
xgboost,0.819142689371697,0.6335877862595419,0.7410714285714286,0.6831275720164609,0.8834350099601596,0.7387567608520373,0.561018561498113,0.12772762775421143
lightgbm,0.8244274809160306,0.6536082474226804,0.7075892857142857,0.6795284030010718,0.8750373505976096,0.7230143748644478,0.5597188552207917,0.12730823172401026
random_forest,0.8038755137991779,0.6025179856115108,0.7477678571428571,0.6673306772908366,0.8657868525896414,0.7177200688341212,0.5367707828363867,0.1435378844440591
1 model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 catboost 0.819142689371697 0.631578947368421 0.75 0.6857142857142857 0.8871371656232214 0.7459898973822718 0.5641373642594485 0.12782820408114018
3 xgboost 0.819142689371697 0.6335877862595419 0.7410714285714286 0.6831275720164609 0.8834350099601596 0.7387567608520373 0.561018561498113 0.12772762775421143
4 lightgbm 0.8244274809160306 0.6536082474226804 0.7075892857142857 0.6795284030010718 0.8750373505976096 0.7230143748644478 0.5597188552207917 0.12730823172401026
5 random_forest 0.8038755137991779 0.6025179856115108 0.7477678571428571 0.6673306772908366 0.8657868525896414 0.7177200688341212 0.5367707828363867 0.1435378844440591
@@ -0,0 +1,6 @@
| model | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|---------:|
| catboost | 0.819143 | 0.631579 | 0.75 | 0.685714 | 0.887137 | 0.74599 | 0.564137 | 0.127828 |
| xgboost | 0.819143 | 0.633588 | 0.741071 | 0.683128 | 0.883435 | 0.738757 | 0.561019 | 0.127728 |
| lightgbm | 0.824427 | 0.653608 | 0.707589 | 0.679528 | 0.875037 | 0.723014 | 0.559719 | 0.127308 |
| random_forest | 0.803876 | 0.602518 | 0.747768 | 0.667331 | 0.865787 | 0.71772 | 0.536771 | 0.143538 |
@@ -0,0 +1,5 @@
model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
catboost,0.8346303501945526,0.6553911205073996,0.7711442786069652,0.7085714285714285,0.8906367286375141,0.7634969713091347,0.5980225591719542,0.12229772332672098
xgboost,0.8398184176394293,0.6718403547671841,0.753731343283582,0.7104337631887456,0.8867700968840011,0.7611053473416477,0.602122023452243,0.1199701577425003
lightgbm,0.8385214007782101,0.6758620689655173,0.7313432835820896,0.7025089605734767,0.8788426289604608,0.7437444338883753,0.5927983690393407,0.12103568709376403
random_forest,0.8151750972762646,0.6158415841584158,0.7736318407960199,0.6857772877618522,0.8684952430828314,0.7320503621484618,0.564516037107257,0.14083228658815045
1 model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 catboost 0.8346303501945526 0.6553911205073996 0.7711442786069652 0.7085714285714285 0.8906367286375141 0.7634969713091347 0.5980225591719542 0.12229772332672098
3 xgboost 0.8398184176394293 0.6718403547671841 0.753731343283582 0.7104337631887456 0.8867700968840011 0.7611053473416477 0.602122023452243 0.1199701577425003
4 lightgbm 0.8385214007782101 0.6758620689655173 0.7313432835820896 0.7025089605734767 0.8788426289604608 0.7437444338883753 0.5927983690393407 0.12103568709376403
5 random_forest 0.8151750972762646 0.6158415841584158 0.7736318407960199 0.6857772877618522 0.8684952430828314 0.7320503621484618 0.564516037107257 0.14083228658815045
@@ -0,0 +1,6 @@
| model | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|---------:|
| catboost | 0.83463 | 0.655391 | 0.771144 | 0.708571 | 0.890637 | 0.763497 | 0.598023 | 0.122298 |
| xgboost | 0.839818 | 0.67184 | 0.753731 | 0.710434 | 0.88677 | 0.761105 | 0.602122 | 0.11997 |
| lightgbm | 0.838521 | 0.675862 | 0.731343 | 0.702509 | 0.878843 | 0.743744 | 0.592798 | 0.121036 |
| random_forest | 0.815175 | 0.615842 | 0.773632 | 0.685777 | 0.868495 | 0.73205 | 0.564516 | 0.140832 |
@@ -0,0 +1,5 @@
model,accuracy,precision,recall,f1,roc_auc,pr_auc,mcc,brier
catboost,0.8034310221586848,0.6059907834101382,0.7166212534059946,0.6566791510611736,0.8593641087383562,0.707239461549715,0.5239088316271747,0.13865644793831455
xgboost,0.7912794853466762,0.585812356979405,0.6975476839237057,0.6368159203980099,0.8497005893162665,0.6813391025362026,0.49561940084087247,0.142731174826622
lightgbm,0.8020014295925662,0.6136363636363636,0.662125340599455,0.6369593709043251,0.8483381914961029,0.6763455997712132,0.5017965664602344,0.13799904854148842
random_forest,0.779842744817727,0.565121412803532,0.6975476839237057,0.624390243902439,0.8345769173901105,0.6598007560262796,0.47631206524064795,0.15507155075027862
1 model accuracy precision recall f1 roc_auc pr_auc mcc brier
2 catboost 0.8034310221586848 0.6059907834101382 0.7166212534059946 0.6566791510611736 0.8593641087383562 0.707239461549715 0.5239088316271747 0.13865644793831455
3 xgboost 0.7912794853466762 0.585812356979405 0.6975476839237057 0.6368159203980099 0.8497005893162665 0.6813391025362026 0.49561940084087247 0.142731174826622
4 lightgbm 0.8020014295925662 0.6136363636363636 0.662125340599455 0.6369593709043251 0.8483381914961029 0.6763455997712132 0.5017965664602344 0.13799904854148842
5 random_forest 0.779842744817727 0.565121412803532 0.6975476839237057 0.624390243902439 0.8345769173901105 0.6598007560262796 0.47631206524064795 0.15507155075027862
@@ -0,0 +1,6 @@
| model | accuracy | precision | recall | f1 | roc_auc | pr_auc | mcc | brier |
|:--------------|-----------:|------------:|---------:|---------:|----------:|---------:|---------:|---------:|
| catboost | 0.803431 | 0.605991 | 0.716621 | 0.656679 | 0.859364 | 0.707239 | 0.523909 | 0.138656 |
| xgboost | 0.791279 | 0.585812 | 0.697548 | 0.636816 | 0.849701 | 0.681339 | 0.495619 | 0.142731 |
| lightgbm | 0.802001 | 0.613636 | 0.662125 | 0.636959 | 0.848338 | 0.676346 | 0.501797 | 0.137999 |
| random_forest | 0.779843 | 0.565121 | 0.697548 | 0.62439 | 0.834577 | 0.659801 | 0.476312 | 0.155072 |
@@ -0,0 +1,4 @@
horizon,best_model,rows,roc_auc,pr_auc,p5,p50,p95,frac_above_0.99
1,catboost,8515,0.8871371656232214,0.7459898973822718,0.03493804467170691,0.26622871711017937,0.9246592350318289,0.0005871990604815032
3,catboost,7706,0.8906367286375141,0.7634969713091347,0.03336760292181948,0.2667223860442706,0.9250154424871225,0.0012970168612191958
5,catboost,6995,0.8593641087383562,0.707239461549715,0.03104572461935311,0.2758446380655407,0.9042286946468086,0.0
1 horizon best_model rows roc_auc pr_auc p5 p50 p95 frac_above_0.99
2 1 catboost 8515 0.8871371656232214 0.7459898973822718 0.03493804467170691 0.26622871711017937 0.9246592350318289 0.0005871990604815032
3 3 catboost 7706 0.8906367286375141 0.7634969713091347 0.03336760292181948 0.2667223860442706 0.9250154424871225 0.0012970168612191958
4 5 catboost 6995 0.8593641087383562 0.707239461549715 0.03104572461935311 0.2758446380655407 0.9042286946468086 0.0
@@ -0,0 +1,5 @@
| horizon | best_model | rows | roc_auc | pr_auc | p5 | p50 | p95 | frac_above_0.99 |
|----------:|:-------------|-------:|----------:|---------:|----------:|---------:|---------:|------------------:|
| 1 | catboost | 8515 | 0.887137 | 0.74599 | 0.034938 | 0.266229 | 0.924659 | 0.000587199 |
| 3 | catboost | 7706 | 0.890637 | 0.763497 | 0.0333676 | 0.266722 | 0.925015 | 0.00129702 |
| 5 | catboost | 6995 | 0.859364 | 0.707239 | 0.0310457 | 0.275845 | 0.904229 | 0 |
Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Some files were not shown because too many files have changed in this diff Show More