strable 0.2.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. {strable-0.2.0/strable.egg-info → strable-0.4.0}/PKG-INFO +9 -4
  2. {strable-0.2.0 → strable-0.4.0}/README.md +8 -3
  3. {strable-0.2.0 → strable-0.4.0}/pyproject.toml +3 -1
  4. {strable-0.2.0 → strable-0.4.0}/strable/__init__.py +5 -3
  5. strable-0.4.0/strable/data/leaderboard/manifest.json +9 -0
  6. strable-0.4.0/strable/data/leaderboard/results_per_fold.parquet +0 -0
  7. strable-0.4.0/strable/results.py +50 -0
  8. {strable-0.2.0 → strable-0.4.0/strable.egg-info}/PKG-INFO +9 -4
  9. {strable-0.2.0 → strable-0.4.0}/strable.egg-info/SOURCES.txt +5 -1
  10. strable-0.4.0/tests/test_results.py +39 -0
  11. {strable-0.2.0 → strable-0.4.0}/LICENSE +0 -0
  12. {strable-0.2.0 → strable-0.4.0}/setup.cfg +0 -0
  13. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/aca-federal-upper-limits-wide.parquet +0 -0
  14. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/aijob_ai-ml-ds-salaries.parquet +0 -0
  15. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/animalandveterinary-event.parquet +0 -0
  16. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/antenna-structure-registration.parquet +0 -0
  17. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/awarded-grants.parquet +0 -0
  18. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/beer-ratings.parquet +0 -0
  19. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/broadband-availability.parquet +0 -0
  20. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/california-houses.parquet +0 -0
  21. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/child-adult-healthcare-quality.parquet +0 -0
  22. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/china-overseas-finance-inventory.parquet +0 -0
  23. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/chocolate-bar-ratings.parquet +0 -0
  24. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/clear-corpus.parquet +0 -0
  25. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/cohort-default-rate.parquet +0 -0
  26. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/college-creditcard-marketing.parquet +0 -0
  27. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/college-deposit-product-marketing.parquet +0 -0
  28. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/colleges-and-universities.parquet +0 -0
  29. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/commitments-in-trust-funds.parquet +0 -0
  30. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/community-banking_wide.parquet +0 -0
  31. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/conflict-events_wide.parquet +0 -0
  32. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/contract-awards-investment-project-financing.parquet +0 -0
  33. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/contributions-to-financial-intermediary-funds.parquet +0 -0
  34. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/corporate-procurement-contract-awards.parquet +0 -0
  35. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/cosmetic-event.parquet +0 -0
  36. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/covid-clinical-trials.parquet +0 -0
  37. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/device-classification.parquet +0 -0
  38. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/device-covid19serology.parquet +0 -0
  39. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/device-pma.parquet +0 -0
  40. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/disbursements-in-trust-funds.parquet +0 -0
  41. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/discretionary-grant.parquet +0 -0
  42. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/drug-drugsfda.parquet +0 -0
  43. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/drug-enforcement.parquet +0 -0
  44. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/drug-ndc.parquet +0 -0
  45. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/drug-shortages.parquet +0 -0
  46. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/electric-generating-plants.parquet +0 -0
  47. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/electric-retail-service-territories.parquet +0 -0
  48. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/external-clinician-dashboard.parquet +0 -0
  49. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/financial-intermediary-funds-cash-transfers.parquet +0 -0
  50. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/financial-intermediary-funds-commitments.parquet +0 -0
  51. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/financial-intermediary-funds-funding-decisions.parquet +0 -0
  52. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/financial-management.parquet +0 -0
  53. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/financial-product-complaint.parquet +0 -0
  54. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/first-time-nadac-rates.parquet +0 -0
  55. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/food-enforcement.parquet +0 -0
  56. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/food-event.parquet +0 -0
  57. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/food-prices_wide.parquet +0 -0
  58. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/foreign-gift-and-contract.parquet +0 -0
  59. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/fts-funding.parquet +0 -0
  60. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/fts-requirement-and-funding.parquet +0 -0
  61. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/gainful-employment.parquet +0 -0
  62. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/global-dams-database.parquet +0 -0
  63. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/global-power-plant.parquet +0 -0
  64. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/grant.parquet +0 -0
  65. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/health-professional-shortage-areas.parquet +0 -0
  66. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/historic-perimeters-wildfires.parquet +0 -0
  67. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/historical-earthquake-locations.parquet +0 -0
  68. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/historical-volcanic-locations.parquet +0 -0
  69. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/hospitals.parquet +0 -0
  70. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/hypertension-control-wide.parquet +0 -0
  71. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/ibrd-statement-loans-guarantees.parquet +0 -0
  72. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/ida-statement-credits-grants-guarantees.parquet +0 -0
  73. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/ifc-advisory-services-projects.parquet +0 -0
  74. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/ifc-investment-service-projects.parquet +0 -0
  75. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/industry-payments-entity.parquet +0 -0
  76. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/industry-payments-project.parquet +0 -0
  77. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/insurance-company-complaints.parquet +0 -0
  78. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/journal-ranking_wide.parquet +0 -0
  79. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/kickstarter-projects.parquet +0 -0
  80. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/lending-club-loan.parquet +0 -0
  81. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/local-government-renewable-action.parquet +0 -0
  82. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/local-law-enforcements.parquet +0 -0
  83. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/managed-care-enrollment.parquet +0 -0
  84. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/manifest.json +0 -0
  85. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/media-ranking_wide.parquet +0 -0
  86. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/medically-underserved-areas-populations.parquet +0 -0
  87. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/medicines.parquet +0 -0
  88. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/mercari.parquet +0 -0
  89. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/meta-critic_whisky.parquet +0 -0
  90. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/michelin-ratings.parquet +0 -0
  91. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/miga-issued-projects.parquet +0 -0
  92. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/mlr-summary-reports.parquet +0 -0
  93. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/mobile-home-parks.parquet +0 -0
  94. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/museums.parquet +0 -0
  95. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/national-average-drug-acquisition-cost.parquet +0 -0
  96. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/oil-natural-gas-platform.parquet +0 -0
  97. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/orphan-designations.parquet +0 -0
  98. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/osha-accidents.parquet +0 -0
  99. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/paediatric-investigation-plan.parquet +0 -0
  100. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/pol-terminal.parquet +0 -0
  101. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/power-plants.parquet +0 -0
  102. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/prepaid-financial-product.parquet +0 -0
  103. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/prison-boundaries.parquet +0 -0
  104. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/ramen-ratings.parquet +0 -0
  105. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/rasff_window.parquet +0 -0
  106. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/rasnf_notification_list.parquet +0 -0
  107. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/recipient-executed-grants-commitments-disbursements.parquet +0 -0
  108. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/schools.parquet +0 -0
  109. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/sf-building-permits.parquet +0 -0
  110. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/summary-of-deposit_wide.parquet +0 -0
  111. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/tax-incentives.parquet +0 -0
  112. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/terms-cc-plans.parquet +0 -0
  113. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/tobacco-problem.parquet +0 -0
  114. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/total-contributions-ibrd-ida-ifc.parquet +0 -0
  115. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/transmission-lines.parquet +0 -0
  116. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/transmission-towers.parquet +0 -0
  117. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/us-school-bus-fleet.parquet +0 -0
  118. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/vehicles.parquet +0 -0
  119. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/wine-dataset.parquet +0 -0
  120. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/workforce-demographics-wide.parquet +0 -0
  121. {strable-0.2.0 → strable-0.4.0}/strable/data/folds/yelp_business.parquet +0 -0
  122. {strable-0.2.0 → strable-0.4.0}/strable/datasets.py +0 -0
  123. {strable-0.2.0 → strable-0.4.0}/strable/encoders.py +0 -0
  124. {strable-0.2.0 → strable-0.4.0}/strable/evaluation.py +0 -0
  125. {strable-0.2.0 → strable-0.4.0}/strable/taxonomy.py +0 -0
  126. {strable-0.2.0 → strable-0.4.0}/strable.egg-info/dependency_links.txt +0 -0
  127. {strable-0.2.0 → strable-0.4.0}/strable.egg-info/requires.txt +0 -0
  128. {strable-0.2.0 → strable-0.4.0}/strable.egg-info/top_level.txt +0 -0
  129. {strable-0.2.0 → strable-0.4.0}/tests/test_datasets.py +0 -0
  130. {strable-0.2.0 → strable-0.4.0}/tests/test_encoders_taxonomy.py +0 -0
  131. {strable-0.2.0 → strable-0.4.0}/tests/test_evaluation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: strable
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: STRABLE: Benchmarking Tabular Machine Learning with Strings
5
5
  Author: Myung Jun Kim, Félix Lefebvre, Lennart Purucker, Alan Arazi, Eilam Shapira, Roi Reichart, Frank Hutter, Marine Le Morvan, David Holzmüller, Gaël Varoquaux
6
6
  Author-email: Gioia Blayer <gioia.blayer@inria.fr>
@@ -95,7 +95,7 @@ Dynamic: license-file
95
95
 
96
96
  ---
97
97
 
98
- ## 📦 Install and use
98
+ ## 📦 Quick use: the `strable` package
99
99
 
100
100
  ```bash
101
101
  pip install strable # tables, folds, evaluate, Tf-Idf
@@ -114,10 +114,13 @@ pipeline = make_pipeline(strable.encoders.tfidf(), HistGradientBoostingRegressor
114
114
  scores = strable.evaluate(pipeline, tables=["beer-ratings"]) # one row per fold: R² or ROC-AUC
115
115
  print(scores[["table", "fold", "score"]])
116
116
 
117
+ board = strable.load_published_results() # the leaderboard's scores, one row per pipeline, table and fold
118
+ print(board[board["table"] == "beer-ratings"].groupby("id")["score"].median().nlargest(3))
119
+
117
120
  columns, mix = strable.profile(X) # type of each string column, and the table's mix
118
121
  ```
119
122
 
120
- `strable.list_tables()` names the 108 tables (`list_tables("regression")`, `"classification"`, …). `evaluate` uses the [leaderboard](https://gblayer.github.io/strable-leaderboard/)'s folds, metrics and checks; with no `tables`, it runs every regression table for a regressor and every classification table for a classifier. Scores can move slightly with other library versions: SciPy 1.17 and later shift the Tf-Idf features by about 1e-7, and learners change across scikit-learn versions. The leaderboard's environment has scikit-learn 1.7.2, SciPy 1.16.3 and skrub 0.7.0. The tables are public, so no Hugging Face token is needed. `profile` needs the `taxonomy` extra; on its first call, it downloads NLTK's `words` and `stopwords` corpora (about 800 KB) if they are missing. The package does not include the paper's experiments: for those, set up the full environment of Step 1 below.
123
+ `strable.list_tables()` names the 108 tables (`list_tables("regression")`, `"classification"`, …). `evaluate` uses the [leaderboard](https://gblayer.github.io/strable-leaderboard/)'s folds, metrics and checks; with no `tables`, it runs every regression table for a regressor and every classification table for a classifier. Scores can move slightly with other library versions: SciPy 1.17 and later shift the Tf-Idf features by about 1e-7, and learners change across scikit-learn versions. The leaderboard's environment has scikit-learn 1.7.2, SciPy 1.16.3 and skrub 0.7.0. The tables are public, so no Hugging Face token is needed. `load_published_results()` gives the leaderboard's results shipped with this version of the package (its leaderboard version is in `board.attrs`); `load_published_results(latest=True)` downloads today's leaderboard. Each new release of the leaderboard's results comes with a new version of the package. The `score` column of these results is the one `evaluate` returns, so a new pipeline compares with them table by table and fold by fold. `profile` needs the `taxonomy` extra; on its first call, it downloads NLTK's `words` and `stopwords` corpora (about 800 KB) if they are missing. The package does not include the paper's experiments: for those, set up the paper's environment of Step 1 below.
121
124
 
122
125
  ---
123
126
 
@@ -169,7 +172,9 @@ strable/
169
172
 
170
173
  ---
171
174
 
172
- ## 🛠️ Step 1 – Install
175
+ ## 🛠️ Step 1 – Set up the paper's environment
176
+
177
+ To run the paper's experiments (`scripts/`, `src/`), from a clone of this repository. To only load the tables, get the folds and score a model, `pip install strable` (Quick use, above) is enough.
173
178
 
174
179
  Python **3.12**.
175
180
 
@@ -25,7 +25,7 @@
25
25
 
26
26
  ---
27
27
 
28
- ## 📦 Install and use
28
+ ## 📦 Quick use: the `strable` package
29
29
 
30
30
  ```bash
31
31
  pip install strable # tables, folds, evaluate, Tf-Idf
@@ -44,10 +44,13 @@ pipeline = make_pipeline(strable.encoders.tfidf(), HistGradientBoostingRegressor
44
44
  scores = strable.evaluate(pipeline, tables=["beer-ratings"]) # one row per fold: R² or ROC-AUC
45
45
  print(scores[["table", "fold", "score"]])
46
46
 
47
+ board = strable.load_published_results() # the leaderboard's scores, one row per pipeline, table and fold
48
+ print(board[board["table"] == "beer-ratings"].groupby("id")["score"].median().nlargest(3))
49
+
47
50
  columns, mix = strable.profile(X) # type of each string column, and the table's mix
48
51
  ```
49
52
 
50
- `strable.list_tables()` names the 108 tables (`list_tables("regression")`, `"classification"`, …). `evaluate` uses the [leaderboard](https://gblayer.github.io/strable-leaderboard/)'s folds, metrics and checks; with no `tables`, it runs every regression table for a regressor and every classification table for a classifier. Scores can move slightly with other library versions: SciPy 1.17 and later shift the Tf-Idf features by about 1e-7, and learners change across scikit-learn versions. The leaderboard's environment has scikit-learn 1.7.2, SciPy 1.16.3 and skrub 0.7.0. The tables are public, so no Hugging Face token is needed. `profile` needs the `taxonomy` extra; on its first call, it downloads NLTK's `words` and `stopwords` corpora (about 800 KB) if they are missing. The package does not include the paper's experiments: for those, set up the full environment of Step 1 below.
53
+ `strable.list_tables()` names the 108 tables (`list_tables("regression")`, `"classification"`, …). `evaluate` uses the [leaderboard](https://gblayer.github.io/strable-leaderboard/)'s folds, metrics and checks; with no `tables`, it runs every regression table for a regressor and every classification table for a classifier. Scores can move slightly with other library versions: SciPy 1.17 and later shift the Tf-Idf features by about 1e-7, and learners change across scikit-learn versions. The leaderboard's environment has scikit-learn 1.7.2, SciPy 1.16.3 and skrub 0.7.0. The tables are public, so no Hugging Face token is needed. `load_published_results()` gives the leaderboard's results shipped with this version of the package (its leaderboard version is in `board.attrs`); `load_published_results(latest=True)` downloads today's leaderboard. Each new release of the leaderboard's results comes with a new version of the package. The `score` column of these results is the one `evaluate` returns, so a new pipeline compares with them table by table and fold by fold. `profile` needs the `taxonomy` extra; on its first call, it downloads NLTK's `words` and `stopwords` corpora (about 800 KB) if they are missing. The package does not include the paper's experiments: for those, set up the paper's environment of Step 1 below.
51
54
 
52
55
  ---
53
56
 
@@ -99,7 +102,9 @@ strable/
99
102
 
100
103
  ---
101
104
 
102
- ## 🛠️ Step 1 – Install
105
+ ## 🛠️ Step 1 – Set up the paper's environment
106
+
107
+ To run the paper's experiments (`scripts/`, `src/`), from a clone of this repository. To only load the tables, get the folds and score a model, `pip install strable` (Quick use, above) is enough.
103
108
 
104
109
  Python **3.12**.
105
110
 
@@ -100,12 +100,14 @@ extra = [
100
100
  "xmltodict",
101
101
  ]
102
102
 
103
- # Only `strable/` is installed: strable, and its fold files in strable/data/folds.
103
+ # Only `strable/` is installed: strable, its fold files in strable/data/folds and the leaderboard's
104
+ # per-fold results in strable/data/leaderboard.
104
105
  [tool.setuptools.packages.find]
105
106
  include = ["strable", "strable.*"]
106
107
 
107
108
  [tool.setuptools.package-data]
108
109
  "strable.data.folds" = ["*.parquet", "manifest.json"]
110
+ "strable.data.leaderboard" = ["*.parquet", "manifest.json"]
109
111
 
110
112
  [tool.setuptools.dynamic]
111
113
  version = { attr = "strable.__version__" }
@@ -1,13 +1,15 @@
1
1
  """STRABLE: a benchmark of 108 real-world tables with strings.
2
2
 
3
3
  Load the tables, get the benchmark's cross-validation folds, score a scikit-learn pipeline with the
4
- leaderboard's protocol, and see which kinds of strings a table holds.
4
+ leaderboard's protocol, compare it with the leaderboard's published results, and see which kinds of
5
+ strings a table holds.
5
6
  """
6
7
 
7
8
  from . import encoders
8
9
  from .datasets import get_folds, list_tables, load_table
9
10
  from .evaluation import evaluate
11
+ from .results import load_published_results
10
12
  from .taxonomy import profile
11
13
 
12
- __version__ = "0.2.0"
13
- __all__ = ["encoders", "evaluate", "get_folds", "list_tables", "load_table", "profile"]
14
+ __version__ = "0.4.0"
15
+ __all__ = ["encoders", "evaluate", "get_folds", "list_tables", "load_published_results", "load_table", "profile"]
@@ -0,0 +1,9 @@
1
+ {
2
+ "leaderboard": "https://gblayer.github.io/strable-leaderboard/",
3
+ "leaderboard_version": "v0.1.13",
4
+ "built": "2026-11-05",
5
+ "repository": "https://github.com/gblayer/strable-leaderboard",
6
+ "commit": "c37228d4dc38b7e0de7e01c7b8bbb0f7ff29e547",
7
+ "file": "site/results_per_fold.parquet",
8
+ "sha256": "4698420c833e361f2401983707a76e5e5e96c01dea09a20e3ccd24cc9013f956"
9
+ }
@@ -0,0 +1,50 @@
1
+ """The STRABLE leaderboard's published results, one row per pipeline, table and outer fold.
2
+
3
+ ``data/leaderboard/results_per_fold.parquet`` ships with the package: the leaderboard's
4
+ ``site/results_per_fold.parquet`` at the version and commit of gblayer/strable-leaderboard that
5
+ ``data/leaderboard/manifest.json`` gives. A pinned strable version therefore pins the tables, the folds and
6
+ the field of published results together. ``latest=True`` downloads today's leaderboard instead, from
7
+ its copy on the Hugging Face Space inria-soda/strable-leaderboard (cached by huggingface_hub).
8
+
9
+ Columns: ``id`` (the pipeline: ``<encoder>+<learner>``, or the learner alone for an end-to-end model,
10
+ with ``:tuned`` for a tuned learner, e.g. ``tfidf+tabpfn-3.5``, ``catboost:tuned``), ``encoder``,
11
+ ``learner``, ``variant`` (default or tuned), ``table``, ``task`` (regression, binary or
12
+ multiclass), ``fold`` (0, 1 or 2), ``score`` (R² for regression, ROC-AUC for classification: higher
13
+ is better, as ``strable.evaluate`` computes it), ``total_s`` (the fold's run time, in seconds),
14
+ ``n_rows``, ``time_per_1k_s`` (run time per 1,000 rows, in seconds), ``overlap`` (True when the
15
+ model's pre-training data may include STRABLE tables, marked ∩ on the leaderboard) and ``api``
16
+ (True for a model run on its provider's servers). A pipeline has 324 rows (108 tables x 3 folds), or
17
+ fewer when its model supports one task only (96 for a classification-only model).
18
+ """
19
+
20
+ from __future__ import annotations
21
+
22
+ import json
23
+ from pathlib import Path
24
+
25
+ import pandas as pd
26
+
27
+ RESULTS_DIR = Path(__file__).resolve().parent / "data" / "leaderboard"
28
+ HF_SPACE = "inria-soda/strable-leaderboard"
29
+
30
+
31
+ def load_published_results(latest: bool = False) -> pd.DataFrame:
32
+ """The leaderboard's per-fold results, as a DataFrame with one row per pipeline, table and fold.
33
+
34
+ By default, the results shipped with this version of the package; ``latest=True`` downloads
35
+ today's leaderboard. ``df.attrs`` gives the leaderboard version (``leaderboard_version``) and its
36
+ build date (``built``).
37
+ """
38
+ if latest:
39
+ from huggingface_hub import hf_hub_download
40
+
41
+ rows = hf_hub_download(HF_SPACE, "results_per_fold.parquet", repo_type="space")
42
+ info = json.loads(Path(hf_hub_download(HF_SPACE, "results.json", repo_type="space")).read_text())
43
+ attrs = {"leaderboard_version": info["version"], "built": info["built"]}
44
+ else:
45
+ rows = RESULTS_DIR / "results_per_fold.parquet"
46
+ info = json.loads((RESULTS_DIR / "manifest.json").read_text())
47
+ attrs = {"leaderboard_version": info["leaderboard_version"], "built": info["built"]}
48
+ df = pd.read_parquet(rows)
49
+ df.attrs.update(attrs)
50
+ return df
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: strable
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: STRABLE: Benchmarking Tabular Machine Learning with Strings
5
5
  Author: Myung Jun Kim, Félix Lefebvre, Lennart Purucker, Alan Arazi, Eilam Shapira, Roi Reichart, Frank Hutter, Marine Le Morvan, David Holzmüller, Gaël Varoquaux
6
6
  Author-email: Gioia Blayer <gioia.blayer@inria.fr>
@@ -95,7 +95,7 @@ Dynamic: license-file
95
95
 
96
96
  ---
97
97
 
98
- ## 📦 Install and use
98
+ ## 📦 Quick use: the `strable` package
99
99
 
100
100
  ```bash
101
101
  pip install strable # tables, folds, evaluate, Tf-Idf
@@ -114,10 +114,13 @@ pipeline = make_pipeline(strable.encoders.tfidf(), HistGradientBoostingRegressor
114
114
  scores = strable.evaluate(pipeline, tables=["beer-ratings"]) # one row per fold: R² or ROC-AUC
115
115
  print(scores[["table", "fold", "score"]])
116
116
 
117
+ board = strable.load_published_results() # the leaderboard's scores, one row per pipeline, table and fold
118
+ print(board[board["table"] == "beer-ratings"].groupby("id")["score"].median().nlargest(3))
119
+
117
120
  columns, mix = strable.profile(X) # type of each string column, and the table's mix
118
121
  ```
119
122
 
120
- `strable.list_tables()` names the 108 tables (`list_tables("regression")`, `"classification"`, …). `evaluate` uses the [leaderboard](https://gblayer.github.io/strable-leaderboard/)'s folds, metrics and checks; with no `tables`, it runs every regression table for a regressor and every classification table for a classifier. Scores can move slightly with other library versions: SciPy 1.17 and later shift the Tf-Idf features by about 1e-7, and learners change across scikit-learn versions. The leaderboard's environment has scikit-learn 1.7.2, SciPy 1.16.3 and skrub 0.7.0. The tables are public, so no Hugging Face token is needed. `profile` needs the `taxonomy` extra; on its first call, it downloads NLTK's `words` and `stopwords` corpora (about 800 KB) if they are missing. The package does not include the paper's experiments: for those, set up the full environment of Step 1 below.
123
+ `strable.list_tables()` names the 108 tables (`list_tables("regression")`, `"classification"`, …). `evaluate` uses the [leaderboard](https://gblayer.github.io/strable-leaderboard/)'s folds, metrics and checks; with no `tables`, it runs every regression table for a regressor and every classification table for a classifier. Scores can move slightly with other library versions: SciPy 1.17 and later shift the Tf-Idf features by about 1e-7, and learners change across scikit-learn versions. The leaderboard's environment has scikit-learn 1.7.2, SciPy 1.16.3 and skrub 0.7.0. The tables are public, so no Hugging Face token is needed. `load_published_results()` gives the leaderboard's results shipped with this version of the package (its leaderboard version is in `board.attrs`); `load_published_results(latest=True)` downloads today's leaderboard. Each new release of the leaderboard's results comes with a new version of the package. The `score` column of these results is the one `evaluate` returns, so a new pipeline compares with them table by table and fold by fold. `profile` needs the `taxonomy` extra; on its first call, it downloads NLTK's `words` and `stopwords` corpora (about 800 KB) if they are missing. The package does not include the paper's experiments: for those, set up the paper's environment of Step 1 below.
121
124
 
122
125
  ---
123
126
 
@@ -169,7 +172,9 @@ strable/
169
172
 
170
173
  ---
171
174
 
172
- ## 🛠️ Step 1 – Install
175
+ ## 🛠️ Step 1 – Set up the paper's environment
176
+
177
+ To run the paper's experiments (`scripts/`, `src/`), from a clone of this repository. To only load the tables, get the folds and score a model, `pip install strable` (Quick use, above) is enough.
173
178
 
174
179
  Python **3.12**.
175
180
 
@@ -5,6 +5,7 @@ strable/__init__.py
5
5
  strable/datasets.py
6
6
  strable/encoders.py
7
7
  strable/evaluation.py
8
+ strable/results.py
8
9
  strable/taxonomy.py
9
10
  strable.egg-info/PKG-INFO
10
11
  strable.egg-info/SOURCES.txt
@@ -120,6 +121,9 @@ strable/data/folds/vehicles.parquet
120
121
  strable/data/folds/wine-dataset.parquet
121
122
  strable/data/folds/workforce-demographics-wide.parquet
122
123
  strable/data/folds/yelp_business.parquet
124
+ strable/data/leaderboard/manifest.json
125
+ strable/data/leaderboard/results_per_fold.parquet
123
126
  tests/test_datasets.py
124
127
  tests/test_encoders_taxonomy.py
125
- tests/test_evaluation.py
128
+ tests/test_evaluation.py
129
+ tests/test_results.py
@@ -0,0 +1,39 @@
1
+ """The leaderboard's published results: the copy shipped with the package, and today's (network)."""
2
+
3
+ import hashlib
4
+ import json
5
+
6
+ import pytest
7
+
8
+ import strable
9
+ from strable.results import RESULTS_DIR
10
+
11
+ COLUMNS = ["id", "encoder", "learner", "variant", "table", "task", "fold", "score", "total_s", "n_rows",
12
+ "time_per_1k_s", "overlap", "api"]
13
+
14
+
15
+ def test_shipped_results_cover_the_108_tables_and_their_folds():
16
+ board = strable.load_published_results()
17
+ assert list(board.columns) == COLUMNS
18
+ assert set(board["table"]) == set(strable.list_tables())
19
+ assert set(board["fold"]) == {0, 1, 2} and set(board["task"]) <= {"regression", "binary", "multiclass"}
20
+ assert not board.duplicated(["id", "table", "fold"]).any()
21
+ assert board.groupby("id").size().max() == 108 * 3
22
+ manifest = json.loads((RESULTS_DIR / "manifest.json").read_text())
23
+ assert board.attrs == {"leaderboard_version": manifest["leaderboard_version"], "built": manifest["built"]}
24
+ assert hashlib.sha256((RESULTS_DIR / "results_per_fold.parquet").read_bytes()).hexdigest() == manifest["sha256"]
25
+
26
+
27
+ def test_shipped_results_use_the_package_tasks():
28
+ """Each table's task in the results is the one the package's folds give it."""
29
+ board = strable.load_published_results()
30
+ tasks = board.drop_duplicates("table").set_index("table")["task"]
31
+ for group in ("regression", "binary", "multiclass"):
32
+ assert set(tasks[tasks == group].index) == set(strable.list_tables(group))
33
+
34
+
35
+ @pytest.mark.network
36
+ def test_latest_results_are_downloaded_from_the_leaderboard():
37
+ board = strable.load_published_results(latest=True)
38
+ assert list(board.columns) == COLUMNS and board.attrs["leaderboard_version"].startswith("v")
39
+ assert len(board) >= len(strable.load_published_results()) * 0.9
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes