scikit-link 0.1.0__py3-none-any.whl

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 (90) hide show
  1. scikit_link-0.1.0.dist-info/METADATA +272 -0
  2. scikit_link-0.1.0.dist-info/RECORD +90 -0
  3. scikit_link-0.1.0.dist-info/WHEEL +4 -0
  4. scikit_link-0.1.0.dist-info/licenses/LICENSE +21 -0
  5. sklink/__init__.py +19 -0
  6. sklink/_base.py +535 -0
  7. sklink/_compat.py +63 -0
  8. sklink/_config.py +190 -0
  9. sklink/_metadata.py +14 -0
  10. sklink/_numba.py +69 -0
  11. sklink/_show_versions.py +46 -0
  12. sklink/cluster/__init__.py +11 -0
  13. sklink/cluster/_common.py +87 -0
  14. sklink/cluster/_embedding.py +202 -0
  15. sklink/cluster/_kmeans.py +405 -0
  16. sklink/cluster/_tree.py +485 -0
  17. sklink/compose/__init__.py +10 -0
  18. sklink/compose/_tables.py +1141 -0
  19. sklink/database/__init__.py +23 -0
  20. sklink/database/_binding.py +214 -0
  21. sklink/database/_columns.py +747 -0
  22. sklink/database/_database.py +1022 -0
  23. sklink/database/_keys.py +104 -0
  24. sklink/database/_schema.py +368 -0
  25. sklink/datasets/__init__.py +17 -0
  26. sklink/datasets/_shop.py +148 -0
  27. sklink/datasets/_synthetic.py +1323 -0
  28. sklink/datasets/data/customers.parquet +0 -0
  29. sklink/datasets/data/order_items.parquet +0 -0
  30. sklink/datasets/data/orders.parquet +0 -0
  31. sklink/datasets/data/products.parquet +0 -0
  32. sklink/datasets/data/target.parquet +0 -0
  33. sklink/engine/__init__.py +62 -0
  34. sklink/engine/_cache.py +60 -0
  35. sklink/engine/_leafsum.py +65 -0
  36. sklink/engine/_numpy.py +795 -0
  37. sklink/engine/_protocol.py +210 -0
  38. sklink/ensemble/__init__.py +19 -0
  39. sklink/ensemble/_forest.py +1343 -0
  40. sklink/ensemble/_gb.py +1805 -0
  41. sklink/ensemble/_iforest.py +329 -0
  42. sklink/exceptions.py +123 -0
  43. sklink/expressions/__init__.py +48 -0
  44. sklink/expressions/_ast.py +562 -0
  45. sklink/expressions/_enumerate.py +236 -0
  46. sklink/expressions/_naming.py +508 -0
  47. sklink/expressions/_validate.py +130 -0
  48. sklink/feature_extraction/__init__.py +5 -0
  49. sklink/feature_extraction/_featurizer.py +613 -0
  50. sklink/inspection/__init__.py +34 -0
  51. sklink/inspection/_common.py +247 -0
  52. sklink/inspection/_explain.py +361 -0
  53. sklink/inspection/_export.py +519 -0
  54. sklink/inspection/_importances.py +560 -0
  55. sklink/model_selection/__init__.py +10 -0
  56. sklink/model_selection/_split.py +437 -0
  57. sklink/plotting/__init__.py +51 -0
  58. sklink/plotting/_common.py +125 -0
  59. sklink/plotting/_cutoff.py +931 -0
  60. sklink/plotting/_display.py +337 -0
  61. sklink/plotting/_environment.py +28 -0
  62. sklink/plotting/_explanation.py +593 -0
  63. sklink/plotting/_forest.py +1074 -0
  64. sklink/plotting/_importance.py +448 -0
  65. sklink/plotting/_live.py +789 -0
  66. sklink/plotting/_schema.py +964 -0
  67. sklink/plotting/_search.py +546 -0
  68. sklink/plotting/_static/plotting.js +85 -0
  69. sklink/plotting/_svg.py +195 -0
  70. sklink/plotting/_theme.py +89 -0
  71. sklink/plotting/_tree.py +991 -0
  72. sklink/primitives/__init__.py +22 -0
  73. sklink/primitives/_kernels.py +461 -0
  74. sklink/primitives/_registry.py +201 -0
  75. sklink/py.typed +0 -0
  76. sklink/tree/__init__.py +14 -0
  77. sklink/tree/_binning.py +114 -0
  78. sklink/tree/_builder.py +2861 -0
  79. sklink/tree/_classes.py +1369 -0
  80. sklink/tree/_criteria.py +167 -0
  81. sklink/tree/_data.py +957 -0
  82. sklink/tree/_leafsum.py +210 -0
  83. sklink/tree/_numba_kernels.py +603 -0
  84. sklink/tree/_splitter.py +857 -0
  85. sklink/utils/__init__.py +9 -0
  86. sklink/utils/_dates.py +188 -0
  87. sklink/utils/_output.py +35 -0
  88. sklink/utils/_testing.py +628 -0
  89. sklink/utils/estimator_checks.py +1034 -0
  90. sklink/utils/validation.py +432 -0
@@ -0,0 +1,272 @@
1
+ Metadata-Version: 2.5
2
+ Name: scikit-link
3
+ Version: 0.1.0
4
+ Summary: Machine learning on multiple related tables, with the scikit-learn API: relational features, decision trees, random forests, gradient boosting and clustering
5
+ Project-URL: Homepage, https://scikit-link.rodrigo-arenas.com/
6
+ Project-URL: Documentation, https://scikit-link.rodrigo-arenas.com/stable/
7
+ Project-URL: Source, https://github.com/rodrigo-arenas/scikit-link
8
+ Project-URL: Issues, https://github.com/rodrigo-arenas/scikit-link/issues
9
+ Project-URL: Changelog, https://scikit-link.rodrigo-arenas.com/stable/release-notes
10
+ Author-email: Rodrigo Arenas <rodrigo.arenas456@gmail.com>
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: automated feature engineering,deep feature synthesis,feature engineering,featuretools,machine learning,multi-table,propositionalization,random forest,relational database,relational decision tree,relational learning,scikit-learn,tabular data
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Programming Language :: Python :: 3.15
24
+ Classifier: Topic :: Database
25
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
26
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
27
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
+ Classifier: Typing :: Typed
29
+ Requires-Python: >=3.12
30
+ Requires-Dist: duckdb>=1.4
31
+ Requires-Dist: narwhals>=2.0
32
+ Requires-Dist: numba>=0.61; (sys_platform != 'darwin' or platform_machine == 'arm64') and python_version < '3.16'
33
+ Requires-Dist: numpy>=2.0
34
+ Requires-Dist: scikit-learn>=1.8
35
+ Requires-Dist: scipy>=1.13
36
+ Provides-Extra: pandas
37
+ Requires-Dist: pandas>=2.2; extra == 'pandas'
38
+ Provides-Extra: polars
39
+ Requires-Dist: polars>=1.30; extra == 'polars'
40
+ Provides-Extra: pyarrow
41
+ Requires-Dist: pyarrow>=18; extra == 'pyarrow'
42
+ Description-Content-Type: text/markdown
43
+
44
+ <h1 align="center">
45
+ <picture><img src="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/content/public/brand/atlas-latente.svg" width="36%" align="middle" alt=""></picture>
46
+ <picture><img src="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/content/public/brand/scikit-link-wordmark.svg" width="45%" align="middle" alt="scikit-link"></picture>
47
+ </h1>
48
+
49
+ <p align="center">
50
+ <a href="https://pypi.org/project/scikit-link/"><img src="https://img.shields.io/pypi/v/scikit-link?color=e8704e" alt="PyPI version"></a>
51
+ <a href="https://pypi.org/project/scikit-link/"><img src="https://img.shields.io/pypi/pyversions/scikit-link" alt="Python versions"></a>
52
+ <a href="https://github.com/rodrigo-arenas/scikit-link/actions/workflows/ci.yml"><img src="https://github.com/rodrigo-arenas/scikit-link/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
53
+ <a href="https://scikit-link.rodrigo-arenas.com/stable/"><img src="https://img.shields.io/badge/docs-stable-2f6f5e" alt="Documentation"></a>
54
+ <a href="LICENSE"><img src="https://img.shields.io/pypi/l/scikit-link" alt="License: MIT"></a>
55
+ <a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff"></a>
56
+ </p>
57
+
58
+ <p align="center"><strong>Machine learning on multiple related tables, with the scikit-learn API.</strong></p>
59
+
60
+ Plenty of data lives in several tables: a customer and their orders, a
61
+ patient and their visits, a machine and its sensor readings, an account and
62
+ its transactions. scikit-link learns from those related rows directly. Put
63
+ one entity key per row in `X`, describe the tables and their keys in a
64
+ `Database`, and fit estimators that follow the keys inside ordinary
65
+ scikit-learn pipelines and cross-validation.
66
+
67
+ <p align="center">
68
+ <a href="https://scikit-link.rodrigo-arenas.com/relational-machine-learning"><img src="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/how-it-works.svg" width="100%" alt="Drawn with sklink.plotting: a database of customers, orders, order items and products linked by keys, and a relational decision tree of depth two that first asks about each customer's express orders, then follows the orders to their products and asks about the share of items that are toys."></a>
69
+ </p>
70
+
71
+ <p align="center">
72
+ <a href="https://scikit-link.rodrigo-arenas.com/">Website</a> ·
73
+ <a href="https://scikit-link.rodrigo-arenas.com/stable/getting-started/quickstart">Quickstart</a> ·
74
+ <a href="https://scikit-link.rodrigo-arenas.com/stable/">Documentation</a> ·
75
+ <a href="https://scikit-link.rodrigo-arenas.com/stable/case-studies/">Case studies</a> ·
76
+ <a href="https://scikit-link.rodrigo-arenas.com/benchmarks">Benchmarks</a> ·
77
+ <a href="https://scikit-link.rodrigo-arenas.com/compare/">Comparison</a> ·
78
+ <a href="https://scikit-link.rodrigo-arenas.com/roadmap">Roadmap</a>
79
+ </p>
80
+
81
+ ## Why scikit-link
82
+
83
+ - **No hand-written joins and group-bys.** The estimators compute aggregates
84
+ of the related rows themselves, such as `count(orders[type == 'express'])`,
85
+ and relational trees learn which rows to count and with which conditions.
86
+ - **No leakage.** Every fold of a cross-validation learns its features from
87
+ its own training rows, and a cutoff date per row of `X` hides the rows that
88
+ happened after it.
89
+ - **Rules you can read.** A relational tree prints its splits as questions
90
+ about the related tables, and `explain` shows what one prediction used.
91
+ - **Everything you know from scikit-learn.** `fit`, `predict`, `Pipeline`,
92
+ `GridSearchCV`, ensembles and threshold tuning work as usual, and
93
+ `RelationalFeaturizer` feeds any scikit-learn model, XGBoost or LightGBM.
94
+
95
+ ## Install
96
+
97
+ scikit-link requires Python 3.12 or later. Install it from PyPI:
98
+
99
+ ```bash
100
+ pip install "scikit-link[pandas]"
101
+ ```
102
+
103
+ The extra installs pandas, which the examples use; `[polars]` and `[pyarrow]`
104
+ are the other table formats. Numba installs with the package and compiles the
105
+ tree loops, with the same models. The distribution is called `scikit-link` and
106
+ the import is `sklink`.
107
+
108
+ ## Quickstart
109
+
110
+ [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/rodrigo-arenas/scikit-link/blob/main/examples/quickstart.ipynb)
111
+
112
+ ```python
113
+ from sklearn.ensemble import HistGradientBoostingClassifier
114
+ from sklearn.model_selection import cross_val_score
115
+ from sklearn.pipeline import make_pipeline
116
+ from sklink.datasets import make_relational_classification
117
+ from sklink.feature_extraction import RelationalFeaturizer
118
+ from sklink.inspection import export_text
119
+ from sklink.tree import RelationalDecisionTreeClassifier
120
+
121
+ # A Database of customers, orders, order items and products, and X with one
122
+ # row per customer. Build your own with sklink.Database(tables=...,
123
+ # primary_keys=..., relationships=[("orders.customer_id", "customers.customer_id")]).
124
+ db, X, likes_toys = make_relational_classification(
125
+ 1000, signal="multihop", random_state=0
126
+ )
127
+
128
+ # The label hides a rule across tables: customers who buy toys (order items
129
+ # and their products) and placed an express order above 100 (orders).
130
+ orders = db.table("orders")
131
+ big_express = orders.query("type == 'express' and amount > 100")["customer_id"]
132
+ y = (likes_toys & X["customer_id"].isin(big_express)).astype(int)
133
+
134
+ # 1. Relational features for any scikit-learn estimator.
135
+ pipe = make_pipeline(
136
+ RelationalFeaturizer(db, entity="customers", key="customer_id"),
137
+ HistGradientBoostingClassifier(),
138
+ )
139
+ print(f"accuracy {cross_val_score(pipe, X, y, cv=5).mean():.3f}")
140
+
141
+ # 2. A decision tree that learns conditions across tables.
142
+ tree = RelationalDecisionTreeClassifier(
143
+ db, entity="customers", key="customer_id", max_depth=2, min_impurity_decrease=0.01
144
+ )
145
+ print(export_text(tree.fit(X, y)))
146
+ ```
147
+
148
+ <!-- output -->
149
+ ```text
150
+ accuracy 0.959
151
+ |--- exists(orders[amount > 100.55 & type == 'express']) <= 0.500
152
+ | |--- class: 0
153
+ |--- exists(orders[amount > 100.55 & type == 'express']) > 0.500
154
+ | |--- proportion(orders.order_items[products.category == 'toys']) <= 0.100
155
+ | | |--- class: 0
156
+ | |--- proportion(orders.order_items[products.category == 'toys']) > 0.100
157
+ | | |--- class: 1
158
+ ```
159
+
160
+ ## What you can do
161
+
162
+ | Task | How it works |
163
+ |---|---|
164
+ | Turn related rows into features for any estimator | `RelationalFeaturizer` aggregates the related rows of each entity into columns, such as the number of visits or the mean transaction amount, one row per sample, for any scikit-learn model. |
165
+ | Classify or regress directly on related tables | Relational decision trees, random forests and gradient boosting learn which related rows to aggregate while they fit. A split can ask whether an entity has any related row above a learned threshold within a learned category. |
166
+ | Cluster entities or find anomalies, without labels | `RelationalKMeans` and `RelationalClusteringTree` group entities by their related rows; `RelationalIsolationForest` ranks the entities whose related rows look unlike anyone else's. |
167
+ | Prepare the tables with scikit-learn | `TransformedTablesEstimator` fits scikit-learn transformers, such as a text embedding or a scaler, on the related rows that the training samples reach, and the model learns from the transformed tables. |
168
+ | Predict at a point in time without leakage | Give each sample a cutoff date so only earlier rows are used, and validate on later periods with `TemporalCutoffSplit`. Every fold learns its categories and thresholds from its training samples only. |
169
+ | Explain a prediction | `sklink.inspection` traces the decision path of one sample, groups feature importances by table or column, and exports fitted rules as text or JSON. |
170
+ | Plot the schema and the model | `sklink.plotting` draws the tables and keys, a fitted tree, importances and the path of one prediction, as in the gallery below. |
171
+ | Use the tables you already have | A `Database` takes pandas, Polars or PyArrow tables, dictionaries of NumPy columns, or Parquet file paths, read a few columns at a time to keep memory low on large tables. Composite keys, several levels of relationships and dated rows are supported. |
172
+ | Add your own aggregations | Register a custom primitive, such as the spread between the largest and smallest value, and request it by name. |
173
+ | Save and deploy a model | `sklink.detach` drops the tables before pickling, and `sklink.rebind` attaches fresh tables to score new entities. |
174
+ | Fit faster | The tree loops are compiled with Numba, which installs with the package, and `n_jobs` grows forest trees in parallel, with the same fitted model. |
175
+
176
+ The examples use a small shop, with customers, orders, order items and
177
+ products, because it is easy to follow; the same code applies to any tables
178
+ linked by keys.
179
+
180
+ ## Plot gallery
181
+
182
+ These four `sklink.plotting` displays use the customers and orders from
183
+ `sklink.datasets.load_shop()`. The target marks customers who placed at least
184
+ three orders. Select a figure for the full-size view or see how to create it
185
+ in the [plotting reference](https://scikit-link.rodrigo-arenas.com/stable/api/sklink.plotting).
186
+
187
+ <table>
188
+ <tr>
189
+ <td width="50%" valign="top">
190
+ <a href="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/schema.png"><picture><img src="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/schema.png" width="100%" alt="The customer primary key links 24 customers to 56 orders."></picture></a><br>
191
+ <strong>Database schema</strong>
192
+ </td>
193
+ <td width="50%" valign="top">
194
+ <a href="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/tree.png"><picture><img src="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/tree.png" width="100%" alt="The selected customer follows the branch for more than 2.5 orders."></picture></a><br>
195
+ <strong>Decision tree</strong>
196
+ </td>
197
+ </tr>
198
+ <tr>
199
+ <td width="50%" valign="top">
200
+ <a href="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/importance.png"><picture><img src="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/importance.png" width="100%" alt="A flow diagram breaks down forest importance by table, column and aggregation."></picture></a><br>
201
+ <strong>Feature importance</strong>
202
+ </td>
203
+ <td width="50%" valign="top">
204
+ <a href="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/explanation.png"><picture><img src="https://raw.githubusercontent.com/rodrigo-arenas/scikit-link/main/docs/assets/readme/explanation.png" width="100%" alt="Order count occurs on 10 of the 16 decision paths for this customer."></picture></a><br>
205
+ <strong>One prediction</strong>
206
+ </td>
207
+ </tr>
208
+ </table>
209
+
210
+ ## Learn by example
211
+
212
+ - [Churn from raw tables to a deployed model](https://scikit-link.rodrigo-arenas.com/stable/case-studies/subscription-churn):
213
+ monthly cutoffs, temporal cross-validation, explanations and deployment.
214
+ - [scikit-learn ensembles and cost-based thresholds](https://scikit-link.rodrigo-arenas.com/stable/case-studies/scikit-learn-toolbox)
215
+ on relational models.
216
+ - [Forecasts with calibrated prediction intervals](https://scikit-link.rodrigo-arenas.com/stable/case-studies/machine-condition-intervals)
217
+ from sensor readings and repair logs.
218
+ - [Segments and anomalies without labels](https://scikit-link.rodrigo-arenas.com/stable/case-studies/segment-and-flag-accounts)
219
+ from bank transactions.
220
+ - [Migrate from Featuretools](https://scikit-link.rodrigo-arenas.com/stable/guides/migrate-from-featuretools) if you
221
+ use deep feature synthesis today.
222
+
223
+ ## How it compares
224
+
225
+ | | scikit-link | Featuretools | getML community | skrub |
226
+ |---|---|---|---|---|
227
+ | scikit-learn estimator API | Yes | Partial | No | Yes |
228
+ | Learns conditions inside aggregations | Yes | No | No | No |
229
+ | Native trees, forests and gradient boosting on related tables | Yes | No | No | No |
230
+ | Install on Windows and macOS without Docker | Yes | Yes | No | Yes |
231
+
232
+ skrub and scikit-link are meant to work together. The
233
+ [comparison page](https://scikit-link.rodrigo-arenas.com/compare/) explains when
234
+ to use each one, and the [benchmarks](https://scikit-link.rodrigo-arenas.com/benchmarks)
235
+ compare scikit-link with gradient boosting on hand-built features, on the same
236
+ splits and tuning budget.
237
+
238
+ ## Contribute
239
+
240
+ scikit-link is young, and contributions of every size help:
241
+
242
+ - **Share your schema.** Tell us about your tables and task in
243
+ [Discussions](https://github.com/rodrigo-arenas/scikit-link/discussions);
244
+ real use cases decide what comes next.
245
+ - **Report a bug or ask for a feature** in
246
+ [Issues](https://github.com/rodrigo-arenas/scikit-link/issues).
247
+ - **Add an aggregation.** A new primitive is a small, self-contained first
248
+ pull request; see [custom primitives](https://scikit-link.rodrigo-arenas.com/stable/tutorials/custom-primitives).
249
+ - **Add a benchmark** dataset or a documentation example.
250
+
251
+ [CONTRIBUTING.md](CONTRIBUTING.md) covers the development setup, the checks
252
+ and the testing policy. Security reports follow [SECURITY.md](SECURITY.md).
253
+ If scikit-link is useful to you, a star on GitHub helps others find it.
254
+
255
+ ## Citing
256
+
257
+ If scikit-link helps your research, please cite it. GitHub's "Cite this
258
+ repository" button reads [CITATION.cff](CITATION.cff); in BibTeX:
259
+
260
+ ```bibtex
261
+ @software{arenas_scikit_link,
262
+ author = {Arenas, Rodrigo},
263
+ title = {scikit-link: Machine learning on multiple related tables, with the scikit-learn API},
264
+ year = {2026},
265
+ url = {https://github.com/rodrigo-arenas/scikit-link},
266
+ license = {MIT}
267
+ }
268
+ ```
269
+
270
+ ## License
271
+
272
+ [MIT](LICENSE)
@@ -0,0 +1,90 @@
1
+ sklink/__init__.py,sha256=Y6PJumTu6JNh-tOtdh4wyx02M7ilw_KhPLodA1EJqug,507
2
+ sklink/_base.py,sha256=-86xDSdUI74sMtTLsO0bUrgciCYYY5xgN_cG7Eyph3A,21853
3
+ sklink/_compat.py,sha256=x_uNb-j-A-S1k3TLY9oZA0S1cZAqt5TxE1aIGG6Be0s,2374
4
+ sklink/_config.py,sha256=1xLvtgodve2m2_chQMRdH-8001s2WlCZk_C5oJkVOns,6040
5
+ sklink/_metadata.py,sha256=x-H73MnxSHk3M_6P_pZbf--fokXPvPx-lHjzWAxZ4Kg,511
6
+ sklink/_numba.py,sha256=DVt_5zzh-5TP2YkqeytFog8ezi0cQba5DXEbJz5vo50,2726
7
+ sklink/_show_versions.py,sha256=YHsAuNK8mFSRf3f6nAwaH3bu4mueWnvlzvdtgFGWuGM,1368
8
+ sklink/exceptions.py,sha256=hGaIcJR9gbAvSKeE4amrcx-2CIRcbLYQHtUsHwgppRo,3918
9
+ sklink/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ sklink/cluster/__init__.py,sha256=Mj8-x5nNy9MvchuQ52N4SPsCeUC5jdwSO0YNUCYyN4Y,435
11
+ sklink/cluster/_common.py,sha256=n_u7140UwwUMlYIxjQ8W2JUFeVHxAlGAga_q4MOj4yw,3328
12
+ sklink/cluster/_embedding.py,sha256=9YGrbmgAZ1g_mqXdNgyHZaCWpxxaP3eXJEf0SlHNqO4,7820
13
+ sklink/cluster/_kmeans.py,sha256=_yt021lXmsN0E1wvdPY-VNN30SwK4NwXXGxoIJHfP80,16016
14
+ sklink/cluster/_tree.py,sha256=gxphKOC5abvEYCv0oiGzTatFvCF_i9A0-WG9_7Svf4w,20199
15
+ sklink/compose/__init__.py,sha256=LJJbL8CCVaPz83AH7R2lRVJPB7hj37-kEH6wt-5gIZM,369
16
+ sklink/compose/_tables.py,sha256=CZTRQTIhM9wZJw8aPkLpV3CUOHt18T4WqWZW34XqXVU,45757
17
+ sklink/database/__init__.py,sha256=soDLUvcfeaVQ2Sb1pypxEq9y39Xg0FlXpxcl5b3Q5_U,491
18
+ sklink/database/_binding.py,sha256=E6Z_EPmX3daF36QLvg8pPpAkSn5oL9ljFEYT_p-X5ec,7219
19
+ sklink/database/_columns.py,sha256=Ed2nOHlEFmuboopd57ZvbCuaW1U0jCO-SRvzxmM34hw,29442
20
+ sklink/database/_database.py,sha256=ZWuPksOJjVJM5Vr4juegnTpXdLI1q_fxDGx0npKTKAk,44609
21
+ sklink/database/_keys.py,sha256=Fgw_zKakPsdl3jnHGTQ99qI9KKE0CiBHVq_62Kz-NCQ,4270
22
+ sklink/database/_schema.py,sha256=lbjlnF8KNRrnQHFRrf80SKa-CealC_dXQk6ezi0iFnU,14830
23
+ sklink/datasets/__init__.py,sha256=zvSZvSkHNzbedRP7ku4Y0YWAPPpoIwTRbHjevZRN-mU,480
24
+ sklink/datasets/_shop.py,sha256=Wz0rpHHXfQRy3OsCPIG2tVgf5NKZev5x2X2vge8p22A,5087
25
+ sklink/datasets/_synthetic.py,sha256=OqEijLuIPkqTfzfZvrZnsftMiENWQpLlHv8ZRNSG3sU,49875
26
+ sklink/datasets/data/customers.parquet,sha256=5mJYatjqx4dOPPBS5VoEfB-ImN6OwMSK2KJWF8o8uKc,823
27
+ sklink/datasets/data/order_items.parquet,sha256=r-wngLc9ssbI0VRjnVm0Bcm_TPKUHoiEgwa2r8J2V8A,2288
28
+ sklink/datasets/data/orders.parquet,sha256=8aeUgpQ_J7m6C6Fd-BYJtP3d56FGeROZapK3_cxTUo0,1667
29
+ sklink/datasets/data/products.parquet,sha256=ev1RQHRybbzOmIrJY4yjr6_LH6XVApzr8X0H_nZJSZ8,709
30
+ sklink/datasets/data/target.parquet,sha256=nCTjA7kEKPE5X0I7leEyMS1uEui-_jt4VXO74sG_q1U,580
31
+ sklink/engine/__init__.py,sha256=CcCSXVhSMywzg8IJ43JC9iwezIIOV74qrxrMI8Z8gkg,1598
32
+ sklink/engine/_cache.py,sha256=8yKueE-AxLDPkuZal6z5crYYCoTEA6zurQ-CRUZfjyI,1612
33
+ sklink/engine/_leafsum.py,sha256=7wq53oTooQqRE49IO0cuU04YR871lc8BOiR_UsUhFeY,2826
34
+ sklink/engine/_numpy.py,sha256=Wl1o_nI8t0_TMcZxnAqjwMjJy6yNrQdIlzmXKUp_Vo0,32577
35
+ sklink/engine/_protocol.py,sha256=SdAZsOniaK-ynId6sRC4xTohXol3ZJCOD2ajKdx8K_w,6297
36
+ sklink/ensemble/__init__.py,sha256=8MJlUEGYBLDxUnlaUKoM6P0PqjmHStfdedomjztkMi0,597
37
+ sklink/ensemble/_forest.py,sha256=9J9E4uAz4E82xkT68-wRz17VBoLny-z5vVTv_vI7lbM,59715
38
+ sklink/ensemble/_gb.py,sha256=LjGrajhZVSVnHIuag7VoiFqNszdrr2pIHzoNXs7-CZY,79919
39
+ sklink/ensemble/_iforest.py,sha256=xGpGmHyJvT4X68WCz2hYB-DEE2z4SnPLbIRbWcCXu6E,13432
40
+ sklink/expressions/__init__.py,sha256=xlYWqhAXlNRERT7_5tR_otM7awTHSLm_J42XGPUwHWk,1160
41
+ sklink/expressions/_ast.py,sha256=bIk4SXWEx3-piU-cvSyPRh2gijHtJkhCOI7yhB0UzKc,19744
42
+ sklink/expressions/_enumerate.py,sha256=jli_fWlMq_w-k9urb9TrhT8qR2IGq4EcpBC0Bufxkpc,10060
43
+ sklink/expressions/_naming.py,sha256=pmim9PmUw0p8iEM7x0ByJNBd5v11WsZea6o25927cmg,19664
44
+ sklink/expressions/_validate.py,sha256=jJtkpiVfqvR_LM0v86Js3PknKM9jFrRazjzcm9vqig4,4915
45
+ sklink/feature_extraction/__init__.py,sha256=ttNYyzNtK62fTK8reFZBqrLu6v2ftoIBgduUgxFjmKQ,181
46
+ sklink/feature_extraction/_featurizer.py,sha256=9yQQ-nPBatk4-5d_6PhI6gP1TskzPAG4lBRaSUGLekM,27103
47
+ sklink/inspection/__init__.py,sha256=p1jb9uKfWLIBfaEmYzOjFG3jq03mQ0kSeqDENbH7Sk0,1484
48
+ sklink/inspection/_common.py,sha256=90fCZmaLZLNVVCFvPl7uQTcc2-FVogcQDmCTKkuF1gU,9240
49
+ sklink/inspection/_explain.py,sha256=VPpNXk4GHOu3RbklsTIAzv2ORr5vKmm7L4cPZkDRuz4,15350
50
+ sklink/inspection/_export.py,sha256=ASsjCtj2comWsFkXWvL8-dWgugOCWRN3UaOxcoIGooM,21039
51
+ sklink/inspection/_importances.py,sha256=mOJKlBk_M0DMYm8RWi3ZuMOwfSn4lNdfXL1Xq34_iSU,24056
52
+ sklink/model_selection/__init__.py,sha256=saE6Xt5rKSXGcFLi1fTw9yFSXfsmj05cqcBQ9-AzFRU,329
53
+ sklink/model_selection/_split.py,sha256=WQWeW5cCfSB21Ybe0_8nawFB2FO2FWt-eweh-jAZmh0,17475
54
+ sklink/plotting/__init__.py,sha256=FJmIaS_A0Q89Qq662tHSwSDBjnoPDrUZ5BrqURLCafc,2283
55
+ sklink/plotting/_common.py,sha256=QifK2YndLU7rv_5jp0kgMG6ea13R-35403zMF9C58pE,4453
56
+ sklink/plotting/_cutoff.py,sha256=V9i2sPBq4Ml5kHP-GQCnIcR6zfT4pxjwzzbufZe3KSU,35026
57
+ sklink/plotting/_display.py,sha256=d8TshOou1DSGlGTlaTtE8tYmVCK00ZCbSZDSigFMtIM,12444
58
+ sklink/plotting/_environment.py,sha256=GA0nExrL5X_sM4q4KA-qsx8n2gbJkEHie2Hl8ZSCSC8,966
59
+ sklink/plotting/_explanation.py,sha256=B6L8ttL8L_rxMOjl_F7c91bpOd9yx9iZXQiiAkzbeg4,22002
60
+ sklink/plotting/_forest.py,sha256=_OLomPM4eCgxt42tgQcc1VykcjyDvnlzRtuhFQxI8U8,39412
61
+ sklink/plotting/_importance.py,sha256=zLxzTLf9S6YuVzjV1Ft62gjpMH-RlkUjpuL5D4Rrflk,17258
62
+ sklink/plotting/_live.py,sha256=TrJAN1D0FnzH3UfFWZpvz5WhPbW6tgDeGy4F7wsqurc,31134
63
+ sklink/plotting/_schema.py,sha256=4gDhaLt8l1XSj5X_QvJ0otfDLp8Xi8-LBYS7scIxUik,36884
64
+ sklink/plotting/_search.py,sha256=WOlGcbHl-UJ_36AG9IOslBVENTOa0JlWabd5uwEoZFs,20271
65
+ sklink/plotting/_svg.py,sha256=GQ8ZuTdqd8s_UvmffBoI84q6PSLYFiFa56Gauw2fSIc,6120
66
+ sklink/plotting/_theme.py,sha256=BJ0g29sda_74bzLzEAkKGLrJ4CkjdmZPXGGdJJBl-uU,3119
67
+ sklink/plotting/_tree.py,sha256=9f154Nee-p7oEe8nNtwa2Z73JzJ1J04YtidIw3jHuik,37273
68
+ sklink/plotting/_static/plotting.js,sha256=z6gUgtoZn4b8rkn6lwChaBDqviVa_5F6RjToIof71Ms,3375
69
+ sklink/primitives/__init__.py,sha256=HMvZjirpOjzH5blgyvZlxq5pA1K_mbRz4w6R8Y4kxYY,506
70
+ sklink/primitives/_kernels.py,sha256=0qrVm4y493XCeEEBMJP_jKW56W8I7edi4QfQ4FKoMp8,13550
71
+ sklink/primitives/_registry.py,sha256=pwiXtDz35NtYU6MEbYCmHAraIgsas5usffjPCuN3J70,6648
72
+ sklink/tree/__init__.py,sha256=ykVxyI0oCeNQsosTCxKWVdP_PP_WLY6zh5eXlCspOTU,383
73
+ sklink/tree/_binning.py,sha256=Lf9bcxZbt3PC8DtJs8dox1m1aaUCNUZXp712aiJnZ8A,4262
74
+ sklink/tree/_builder.py,sha256=1dEPUt70WAFM0RRwFLP9XHaUjnN3yYUiANCk1h4Swb4,114791
75
+ sklink/tree/_classes.py,sha256=4q4ECDsskXjWrssgXlZIkIwJyHWQIkV6RRxhVjSiV6s,58465
76
+ sklink/tree/_criteria.py,sha256=h_G9-4v03EGRVjcbvJ2O029myDYxfCayaRgZIvnFVcI,5770
77
+ sklink/tree/_data.py,sha256=c_P7-KkhvCcV1YIOwKhjHNLhk90J6_-Xkhse_NlW4kw,38631
78
+ sklink/tree/_leafsum.py,sha256=5PNiYOn5hWJFhgX7uVfFmOOg6LxfcZ3fIMff5xL_WlY,7994
79
+ sklink/tree/_numba_kernels.py,sha256=ZTmYvJgb7PDNdbz47xnQxlFHfMhf8_eDzp-MtUU1gtI,20997
80
+ sklink/tree/_splitter.py,sha256=j5LtumpL4tmCoeLTJwR6C1WmSRD4s9fyilHFZEaTV-U,32570
81
+ sklink/utils/__init__.py,sha256=uAJg7GHCAeuLUOlLzYepHz0hUqEIRyDIrLAREbcQAGU,359
82
+ sklink/utils/_dates.py,sha256=EnrUpd2s_NZbRUn6JMzshnVYaHdMvAuwI7UY4B2Ay3w,6683
83
+ sklink/utils/_output.py,sha256=m-JQRRQpC_i2X_k0qY0b_JP1KGQ_SYfQaXe-ePB0FMA,1277
84
+ sklink/utils/_testing.py,sha256=qMJKepjhZSxFMhw2V-8Aa7K8qDAn8g_-6wrP7C1pUQM,21731
85
+ sklink/utils/estimator_checks.py,sha256=2uuF8T4i83t3bX8GgEzZ3Ljsm0RRAXQps2FFS-rtz34,38133
86
+ sklink/utils/validation.py,sha256=6czxKuJmBEbUk2LBBoC6duDcl2tn_wnpIZ2ZvRgNxFs,16434
87
+ scikit_link-0.1.0.dist-info/METADATA,sha256=ETkskGirpz3S2Bn4jzkcqyLOvXC2GF90R-_HyyAMbbY,15997
88
+ scikit_link-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
89
+ scikit_link-0.1.0.dist-info/licenses/LICENSE,sha256=LqHNqMoDAIlGyHnRLbaCpKyHJw5_JSFAhfR2F7-XkYU,1071
90
+ scikit_link-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rodrigo Arenas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
sklink/__init__.py ADDED
@@ -0,0 +1,19 @@
1
+ """Relational machine learning on multi-table data, compatible with scikit-learn."""
2
+
3
+ from sklink._config import config_context, get_config, set_config
4
+ from sklink._metadata import __version__
5
+ from sklink._show_versions import show_versions
6
+ from sklink.database import Database, Relationship, Schema, detach, rebind
7
+
8
+ __all__ = [
9
+ "Database",
10
+ "Relationship",
11
+ "Schema",
12
+ "__version__",
13
+ "config_context",
14
+ "detach",
15
+ "get_config",
16
+ "rebind",
17
+ "set_config",
18
+ "show_versions",
19
+ ]