neurotabular 1.0.2__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.
Potentially problematic release.
This version of neurotabular might be problematic. Click here for more details.
- neurotabular-1.0.2/ABLATION_REPORT.md +95 -0
- neurotabular-1.0.2/BENCHMARK_REPORT.md +100 -0
- neurotabular-1.0.2/CHANGELOG.md +168 -0
- neurotabular-1.0.2/CITATION.cff +10 -0
- neurotabular-1.0.2/CODE_OF_CONDUCT.md +25 -0
- neurotabular-1.0.2/CONTRIBUTING.md +43 -0
- neurotabular-1.0.2/LEGAL.md +63 -0
- neurotabular-1.0.2/LICENSE +21 -0
- neurotabular-1.0.2/MANIFEST.in +33 -0
- neurotabular-1.0.2/PERFORMANCE_PROFILE.md +87 -0
- neurotabular-1.0.2/PKG-INFO +421 -0
- neurotabular-1.0.2/PUBLISHING.md +71 -0
- neurotabular-1.0.2/README.md +378 -0
- neurotabular-1.0.2/RELEASE_CHECKLIST.md +18 -0
- neurotabular-1.0.2/RELEASE_NOTES.md +45 -0
- neurotabular-1.0.2/RESEARCH_NOTES.md +74 -0
- neurotabular-1.0.2/SECURITY.md +23 -0
- neurotabular-1.0.2/SOURCE_MANIFEST.sha256 +81 -0
- neurotabular-1.0.2/THIRD_PARTY_NOTICES.md +22 -0
- neurotabular-1.0.2/VERSIONING.md +26 -0
- neurotabular-1.0.2/benchmarks/benchmark_compile.py +121 -0
- neurotabular-1.0.2/benchmarks/kaggle_cuda_smoke.py +46 -0
- neurotabular-1.0.2/benchmarks/profile_0_2.py +136 -0
- neurotabular-1.0.2/benchmarks/run_0_2_ablations.py +198 -0
- neurotabular-1.0.2/benchmarks/run_ablations.py +194 -0
- neurotabular-1.0.2/benchmarks/run_benchmarks.py +357 -0
- neurotabular-1.0.2/docs/API.md +416 -0
- neurotabular-1.0.2/docs/API_BOUNDARY.md +143 -0
- neurotabular-1.0.2/docs/BENCHMARK_0_3.md +65 -0
- neurotabular-1.0.2/docs/PERFORMANCE_0_3_1.md +54 -0
- neurotabular-1.0.2/docs/TARGET_CONTRACT.md +57 -0
- neurotabular-1.0.2/docs/USAGE.md +485 -0
- neurotabular-1.0.2/docs/architecture_0_3.md +69 -0
- neurotabular-1.0.2/docs/policies/API_STABILITY_POLICY.md +35 -0
- neurotabular-1.0.2/docs/policies/DEPRECATION_POLICY.md +40 -0
- neurotabular-1.0.2/docs/policies/PERSISTENCE_POLICY.md +36 -0
- neurotabular-1.0.2/docs/policies/README.md +19 -0
- neurotabular-1.0.2/docs/policies/SUPPORT_SCOPE.md +41 -0
- neurotabular-1.0.2/docs/policies/VERSIONING_POLICY.md +34 -0
- neurotabular-1.0.2/docs/policies/WARNING_POLICY.md +39 -0
- neurotabular-1.0.2/docs/support/MINIMAL_REPRODUCER_GUIDE.md +101 -0
- neurotabular-1.0.2/examples/basic_classification.py +39 -0
- neurotabular-1.0.2/examples/mixed_dataframe_workflow.py +122 -0
- neurotabular-1.0.2/examples/pipeline_workflow.py +56 -0
- neurotabular-1.0.2/examples/support_environment.py +61 -0
- neurotabular-1.0.2/pyproject.toml +72 -0
- neurotabular-1.0.2/release/0.3.1/RELEASE_NOTES.md +31 -0
- neurotabular-1.0.2/setup.cfg +4 -0
- neurotabular-1.0.2/src/neurotabular/__init__.py +7 -0
- neurotabular-1.0.2/src/neurotabular/_base.py +630 -0
- neurotabular-1.0.2/src/neurotabular/_version.py +3 -0
- neurotabular-1.0.2/src/neurotabular/_warnings.py +32 -0
- neurotabular-1.0.2/src/neurotabular/classifier.py +247 -0
- neurotabular-1.0.2/src/neurotabular/device.py +219 -0
- neurotabular-1.0.2/src/neurotabular/network.py +383 -0
- neurotabular-1.0.2/src/neurotabular/preprocessing.py +528 -0
- neurotabular-1.0.2/src/neurotabular/regressor.py +177 -0
- neurotabular-1.0.2/src/neurotabular/tasks.py +65 -0
- neurotabular-1.0.2/src/neurotabular/training.py +646 -0
- neurotabular-1.0.2/src/neurotabular.egg-info/PKG-INFO +421 -0
- neurotabular-1.0.2/src/neurotabular.egg-info/SOURCES.txt +87 -0
- neurotabular-1.0.2/src/neurotabular.egg-info/dependency_links.txt +1 -0
- neurotabular-1.0.2/src/neurotabular.egg-info/requires.txt +23 -0
- neurotabular-1.0.2/src/neurotabular.egg-info/top_level.txt +1 -0
- neurotabular-1.0.2/tests/conftest.py +50 -0
- neurotabular-1.0.2/tests/p40_helpers.py +69 -0
- neurotabular-1.0.2/tests/test_classifier.py +221 -0
- neurotabular-1.0.2/tests/test_device.py +166 -0
- neurotabular-1.0.2/tests/test_distribution_hygiene.py +66 -0
- neurotabular-1.0.2/tests/test_fitted_diagnostics.py +158 -0
- neurotabular-1.0.2/tests/test_multiclass.py +108 -0
- neurotabular-1.0.2/tests/test_network.py +71 -0
- neurotabular-1.0.2/tests/test_persistence.py +70 -0
- neurotabular-1.0.2/tests/test_persistence_edge_schema.py +170 -0
- neurotabular-1.0.2/tests/test_preprocessing.py +271 -0
- neurotabular-1.0.2/tests/test_product_paths.py +132 -0
- neurotabular-1.0.2/tests/test_public_api_contract.py +202 -0
- neurotabular-1.0.2/tests/test_regressor.py +180 -0
- neurotabular-1.0.2/tests/test_schema_errors.py +108 -0
- neurotabular-1.0.2/tests/test_sklearn_compat.py +153 -0
- neurotabular-1.0.2/tests/test_support_environment.py +88 -0
- neurotabular-1.0.2/tests/test_target_contract.py +299 -0
- neurotabular-1.0.2/tests/test_training.py +189 -0
- neurotabular-1.0.2/tests/test_user_journeys.py +149 -0
- neurotabular-1.0.2/tests/test_version.py +5 -0
- neurotabular-1.0.2/tests/test_version_metadata.py +137 -0
- neurotabular-1.0.2/tests/test_warning_policy.py +49 -0
- neurotabular-1.0.2/tests/test_weights.py +102 -0
- neurotabular-1.0.2/tools/check_distribution.py +152 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# NeuroTabular 0.2.0 ablation report
|
|
2
|
+
|
|
3
|
+
## Protocol
|
|
4
|
+
|
|
5
|
+
Internal architecture screening used six deterministic dataset families and
|
|
6
|
+
seeds 19 and 31, a stratified 75/25 split, at most 20 epochs, and the same
|
|
7
|
+
optimizer/validation/model budget. The families cover numeric, missing,
|
|
8
|
+
categorical, high-cardinality, imbalanced, and medium synthetic data. Every
|
|
9
|
+
transform was fitted only on the training partition.
|
|
10
|
+
|
|
11
|
+
These are development ablations, not a substitute for a broad real-world
|
|
12
|
+
benchmark suite.
|
|
13
|
+
|
|
14
|
+
## Numerical representations
|
|
15
|
+
|
|
16
|
+
| Variant | Mean ROC-AUC | Mean log loss | Median fit s | Median predict s |
|
|
17
|
+
|---|---:|---:|---:|---:|
|
|
18
|
+
| scalar | 0.904508 | 0.342421 | 0.7470 | 0.0176 |
|
|
19
|
+
| affine | 0.904000 | 0.347604 | 0.9697 | 0.0205 |
|
|
20
|
+
| periodic | 0.792801 | 0.496602 | 0.7317 | 0.0175 |
|
|
21
|
+
| piecewise | 0.882937 | 0.398508 | 1.0519 | 0.0193 |
|
|
22
|
+
| piecewise + frequency | 0.883459 | not selected | not selected | not selected |
|
|
23
|
+
| piecewise + frequency + gate | 0.886431 | not selected | not selected | not selected |
|
|
24
|
+
|
|
25
|
+
Decision: keep `scalar` as the release default. Other modes remain explicit
|
|
26
|
+
experimental options.
|
|
27
|
+
|
|
28
|
+
## Category frequency and input gating
|
|
29
|
+
|
|
30
|
+
| Variant | Mean ROC-AUC | Mean log loss | Median fit s | Median predict s |
|
|
31
|
+
|---|---:|---:|---:|---:|
|
|
32
|
+
| scalar | 0.904508 | 0.342421 | 0.7470 | 0.0176 |
|
|
33
|
+
| scalar + frequency | 0.906508 | 0.339034 | 0.6535 | 0.0164 |
|
|
34
|
+
| scalar + gate | 0.902472 | not selected | not selected | not selected |
|
|
35
|
+
| scalar + frequency + gate | 0.905628 | not selected | not selected | not selected |
|
|
36
|
+
| affine + frequency | 0.908474 | higher cost | higher cost | higher cost |
|
|
37
|
+
|
|
38
|
+
Decision: enable scalar + aggregate category frequency by default and keep the
|
|
39
|
+
feature gate off. The frequency implementation aggregates counts at the actual
|
|
40
|
+
rare ID and uses encoded-ID lookup, preserving training-only semantics.
|
|
41
|
+
|
|
42
|
+
## Categorical regularization
|
|
43
|
+
|
|
44
|
+
| Variant | Mean ROC-AUC | Mean log loss | Median fit s |
|
|
45
|
+
|---|---:|---:|---:|
|
|
46
|
+
| scalar + frequency | 0.860722 | 0.469896 | 0.6033 |
|
|
47
|
+
| 5% categorical ID dropout | 0.860600 | 0.469496 | 0.6333 |
|
|
48
|
+
| 5% embedding dropout | 0.860533 | 0.469691 | 0.6070 |
|
|
49
|
+
|
|
50
|
+
Decision: do not enable either regularizer by default.
|
|
51
|
+
|
|
52
|
+
## Full-data refit
|
|
53
|
+
|
|
54
|
+
| Variant | Mean ROC-AUC | Median fit s |
|
|
55
|
+
|---|---:|---:|
|
|
56
|
+
| scalar + frequency | 0.906508 | 0.5942 |
|
|
57
|
+
| scalar + frequency + refit | 0.901626 | 0.9989 |
|
|
58
|
+
|
|
59
|
+
Decision: retain `full_data_refit` as an explicit option, default `False`.
|
|
60
|
+
|
|
61
|
+
## High-cardinality overflow controls
|
|
62
|
+
|
|
63
|
+
| Variant | Mean ROC-AUC | Mean log loss | Median fit s | Median predict s |
|
|
64
|
+
|---|---:|---:|---:|---:|
|
|
65
|
+
| uncapped scalar + frequency | 0.867874 | 0.458545 | 0.7314 | 0.0152 |
|
|
66
|
+
| top 64 + one rare bucket | 0.868496 | 0.457902 | 0.4650 | 0.0136 |
|
|
67
|
+
| top 64 + 16 hash buckets | 0.869386 | 0.458899 | 0.4691 | 0.0165 |
|
|
68
|
+
|
|
69
|
+
Changes were small and inconsistent across seeds; hashing also increased
|
|
70
|
+
prediction work in the recorded screen. Decision: do not expose these controls
|
|
71
|
+
as release defaults.
|
|
72
|
+
|
|
73
|
+
## Execution-engine experiments
|
|
74
|
+
|
|
75
|
+
`torch.compile` did not provide a portable result on the recorded Windows host
|
|
76
|
+
because the required compiler toolchain was unavailable. AdamW backend timing
|
|
77
|
+
was also host-dependent. Decision: no compile default and no forced optimizer
|
|
78
|
+
backend; use the supported PyTorch/AdamW automatic path.
|
|
79
|
+
|
|
80
|
+
## Release configuration
|
|
81
|
+
|
|
82
|
+
```text
|
|
83
|
+
numerical_embedding = "scalar"
|
|
84
|
+
use_category_frequency = True
|
|
85
|
+
feature_gating = False
|
|
86
|
+
full_data_refit = False
|
|
87
|
+
categorical dropout = 0
|
|
88
|
+
embedding dropout = 0
|
|
89
|
+
category cap/hash = disabled
|
|
90
|
+
torch.compile = disabled
|
|
91
|
+
AdamW strategy = automatic
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The release intentionally avoids stacking components whose internal evidence
|
|
95
|
+
was weak, inconsistent, specialized, or too costly.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# NeuroTabular 0.2.0 benchmark report
|
|
2
|
+
|
|
3
|
+
## Scope
|
|
4
|
+
|
|
5
|
+
This report records a reproducible engineering benchmark for the release
|
|
6
|
+
defaults. It is intended as development evidence, not a universal performance
|
|
7
|
+
claim. Synthetic datasets are generated deterministically; the two public
|
|
8
|
+
checks are bundled with scikit-learn and are not committed to the repository.
|
|
9
|
+
|
|
10
|
+
## Recorded environment
|
|
11
|
+
|
|
12
|
+
- Windows 11;
|
|
13
|
+
- Python 3.12.13;
|
|
14
|
+
- PyTorch 2.13.0+cpu;
|
|
15
|
+
- NumPy 2.5.2, pandas 3.0.5, scikit-learn 1.9.0;
|
|
16
|
+
- 2 physical / 4 logical CPU cores;
|
|
17
|
+
- 11.71 GiB system RAM;
|
|
18
|
+
- CUDA unavailable; VRAM and AMP throughput not measured.
|
|
19
|
+
|
|
20
|
+
The package declares Python 3.10-3.12 and PyTorch 2.0+ support. CI provides the
|
|
21
|
+
compatibility matrix; this host is only the recorded benchmark machine.
|
|
22
|
+
|
|
23
|
+
## Synthetic development matrix
|
|
24
|
+
|
|
25
|
+
Seven deterministic binary datasets, seeds 17 and 23, and a stratified 75/25
|
|
26
|
+
train/test split were used. The test partition was not used for preprocessing,
|
|
27
|
+
validation, early stopping, or model selection.
|
|
28
|
+
|
|
29
|
+
The families cover small numeric, small mixed, missing values,
|
|
30
|
+
categorical-heavy, moderately high-cardinality, imbalanced, and 5,000-row
|
|
31
|
+
medium synthetic cases.
|
|
32
|
+
|
|
33
|
+
| Metric | NeuroTabular 0.2.0 |
|
|
34
|
+
|---|---:|
|
|
35
|
+
| Mean ROC-AUC | 0.878408 |
|
|
36
|
+
| Mean log loss | 0.408868 |
|
|
37
|
+
| Mean selected/run epochs | 13.714 |
|
|
38
|
+
|
|
39
|
+
Per-dataset release results:
|
|
40
|
+
|
|
41
|
+
| Dataset | ROC-AUC |
|
|
42
|
+
|---|---:|
|
|
43
|
+
| categorical-heavy | 0.803667 |
|
|
44
|
+
| imbalanced binary | 0.943398 |
|
|
45
|
+
| medium synthetic | 0.979658 |
|
|
46
|
+
| mixed with NaNs | 0.810422 |
|
|
47
|
+
| moderate high-cardinality | 0.843444 |
|
|
48
|
+
| small mixed | 0.856100 |
|
|
49
|
+
| small numeric | 0.912168 |
|
|
50
|
+
|
|
51
|
+
## Contextual tree baseline
|
|
52
|
+
|
|
53
|
+
The same quality matrix recorded:
|
|
54
|
+
|
|
55
|
+
| Model | Mean ROC-AUC | Mean log loss |
|
|
56
|
+
|---|---:|---:|
|
|
57
|
+
| NeuroTabular 0.2.0 | 0.878408 | 0.408868 |
|
|
58
|
+
| HistGradientBoosting | 0.873459 | 0.487927 |
|
|
59
|
+
|
|
60
|
+
`HistGradientBoostingClassifier` is included only as a reproducible contextual
|
|
61
|
+
baseline. Optional LightGBM and CatBoost runners execute only when those
|
|
62
|
+
packages are installed; they are not runtime dependencies. This table must not
|
|
63
|
+
be read as evidence that NeuroTabular generally dominates tree ensembles.
|
|
64
|
+
|
|
65
|
+
## Public-data engineering check
|
|
66
|
+
|
|
67
|
+
Breast Cancer Wisconsin and a binary projection of Wine were loaded from
|
|
68
|
+
scikit-learn. Two seeds were used with the same train/test discipline.
|
|
69
|
+
|
|
70
|
+
| Metric | NeuroTabular 0.2.0 |
|
|
71
|
+
|---|---:|
|
|
72
|
+
| Mean ROC-AUC | 0.998113 |
|
|
73
|
+
| Mean fit seconds | 0.4306 |
|
|
74
|
+
| Mean prediction seconds | 0.0156 |
|
|
75
|
+
|
|
76
|
+
These datasets are small and largely numerical, so the result is a smoke/no-
|
|
77
|
+
regression style engineering check rather than a broad benchmark.
|
|
78
|
+
|
|
79
|
+
## Parameters and memory
|
|
80
|
+
|
|
81
|
+
A documented 5,000-row mixed profile used 9,063 trainable parameters for that
|
|
82
|
+
specific schema. Peak process RSS in the recorded cold profile was about 86.8
|
|
83
|
+
MiB. Both values are schema- and environment-dependent; the embedding-width
|
|
84
|
+
rule can produce different model sizes for different cardinalities.
|
|
85
|
+
|
|
86
|
+
VRAM is `N/A` because CUDA was unavailable on the recorded host.
|
|
87
|
+
|
|
88
|
+
## Reproduction
|
|
89
|
+
|
|
90
|
+
From an installed development checkout:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
python benchmarks/run_benchmarks.py --output benchmark.json
|
|
94
|
+
python benchmarks/profile_0_2.py --output profile.json
|
|
95
|
+
python benchmarks/run_0_2_ablations.py --output ablations.json
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Use an idle host, record package versions, and treat absolute timings as
|
|
99
|
+
host-specific. Raw JSON outputs are generated artifacts and intentionally
|
|
100
|
+
excluded from the source release.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable public changes to NeuroTabular are recorded here. Published tags and
|
|
4
|
+
release artifacts are immutable.
|
|
5
|
+
|
|
6
|
+
## [1.0.2] - Unreleased compatibility candidate
|
|
7
|
+
|
|
8
|
+
- Remove the unnecessary Python <3.13 metadata cap; retain Requires-Python >=3.10.
|
|
9
|
+
- Validate conventional CPython 3.11–3.14 on Linux CPU, including exact 3.13.15,
|
|
10
|
+
ordinary PyPI dependency installs, minimum/current stacks and warnings as errors.
|
|
11
|
+
- Retain Python 3.10 legacy compatibility; distinguish Python 3.15 code compatibility
|
|
12
|
+
on the official Torch CPU channel from its ordinary PyPI distribution limitation.
|
|
13
|
+
- Expand the proposed Linux/Windows CI matrix and add Apple Silicon macOS coverage.
|
|
14
|
+
- Update installation/support guidance, version metadata and release notes.
|
|
15
|
+
- Preserve runtime implementation bytes except the version constant and frozen
|
|
16
|
+
30/30 binary plus 4/4 representative predictions bit for bit.
|
|
17
|
+
- Retain the four existing direct dependency bounds. Require joblib>=1.5 on
|
|
18
|
+
Python 3.12; >=1.4.2 excluding 1.5.0/1.5.1 on Python 3.13; >=1.5.2 on
|
|
19
|
+
Python 3.14; and >=1.6 on Python>=3.15. These prevent removed-distutils,
|
|
20
|
+
pickle-hashing and loky worker/resource-tracker failures. Add cached-Pipeline
|
|
21
|
+
and parallel cross-validation regression tests.
|
|
22
|
+
- Keep public API, training, predictive defaults and persistence contracts unchanged.
|
|
23
|
+
Remote CI and publication remain separate maintainer gates.
|
|
24
|
+
|
|
25
|
+
## [1.0.1] - 2026-10-11
|
|
26
|
+
|
|
27
|
+
- Make the package README suitable for PyPI with absolute documentation links
|
|
28
|
+
and stable installation/status guidance.
|
|
29
|
+
- Align version/citation metadata, release notes and the version regression test.
|
|
30
|
+
- Retain the existing manual Trusted Publishing workflow and separate
|
|
31
|
+
TestPyPI/PyPI environments.
|
|
32
|
+
- Preserve all runtime implementation bytes except the version constant;
|
|
33
|
+
no algorithm, API, default, feature or dependency-bound change.
|
|
34
|
+
|
|
35
|
+
## [1.0.0] - 2026-10-11
|
|
36
|
+
|
|
37
|
+
- Stabilize the reviewed public estimator/API scope for the first stable release.
|
|
38
|
+
- Retain RC1 target hardening and earlier product/persistence/packaging work.
|
|
39
|
+
- Promote version, stable metadata, installation guidance and support policies;
|
|
40
|
+
no algorithm, predictive default, dependency-bound or feature change.
|
|
41
|
+
- Complete fresh full validation, frozen equivalence, clean installs and an
|
|
42
|
+
exact stable-commit seven-job remote CI result before publication.
|
|
43
|
+
- Disclose independent human pilots, macOS and physical CUDA evidence limits.
|
|
44
|
+
|
|
45
|
+
## [1.0.0rc1] - Published release candidate
|
|
46
|
+
|
|
47
|
+
### Target contract hardening
|
|
48
|
+
|
|
49
|
+
- Classifier fit, eval_set and score share single-output binary/multiclass
|
|
50
|
+
target validation. Fractional, non-finite and unsupported multioutput targets
|
|
51
|
+
raise ValueError before training, encoding or metrics.
|
|
52
|
+
- Object-backed scalar labels receive value-preserving pandas inference before
|
|
53
|
+
sklearn target typing. Numeric strings stay strings. Zero-weight training rows
|
|
54
|
+
remain ignored before target discovery, including their invalid labels.
|
|
55
|
+
- Regression score now shares the existing finite numeric-target contract of
|
|
56
|
+
fit and eval_set. Valid regression values and R2 semantics are unchanged.
|
|
57
|
+
- Constructor defaults, prediction math, training, preprocessing, checkpoint
|
|
58
|
+
selection and valid-model persistence are unchanged by this repair.
|
|
59
|
+
- Add focused and randomized target tests, transactional refit checks and an
|
|
60
|
+
explicit target contract. This intentionally removes erroneous acceptance of
|
|
61
|
+
unsupported targets before 1.0; it is not an artifact migration mechanism.
|
|
62
|
+
|
|
63
|
+
### Candidate scope
|
|
64
|
+
|
|
65
|
+
- Include the previously unreleased product diagnostics, support guidance and
|
|
66
|
+
maintenance policies listed below. Physical CUDA remains optional and unvalidated.
|
|
67
|
+
- RC1 was subsequently published with exact-commit seven-job CI PASS.
|
|
68
|
+
This historical result does not replace stable-commit remote CI.
|
|
69
|
+
- Independent user pilots remain outstanding evidence and a disclosed soft risk.
|
|
70
|
+
Stable 1.0 approval and publication are separate maintainer decisions.
|
|
71
|
+
|
|
72
|
+
### Previously unreleased product hardening
|
|
73
|
+
|
|
74
|
+
- Reconcile the public-0.3.1-based local stabilization candidate and canonical
|
|
75
|
+
policy/support scope; classify the intended 1.0 boundary without enacting a freeze.
|
|
76
|
+
- Preserve Python 3.10–3.12 intent, scope CUDA to optional best effort and prepare
|
|
77
|
+
independent acceptance evidence. These earlier changes did not alter algorithm or dependency bounds.
|
|
78
|
+
|
|
79
|
+
- Adopt local-development API maintenance, deprecation, warning, persistence and
|
|
80
|
+
versioning policies without declaring a 1.0 freeze or changing the runtime.
|
|
81
|
+
- Add support reporting/reproducer guidance and exact privacy-output checks;
|
|
82
|
+
clarify activation, standalone sklearn examples and optional diagnostics.
|
|
83
|
+
- Keep historical compatibility models/receipts in the repository only; exclude
|
|
84
|
+
them and internal research memories from public distributions. Enforce strict
|
|
85
|
+
artifact hygiene in CI and manual-build workflows before any future upload.
|
|
86
|
+
- Add a compact, training-only `input_schema_` fitted diagnostic without new
|
|
87
|
+
constructor options or changes to predictions and training semantics.
|
|
88
|
+
- Identify invalid numeric and duplicate columns and clarify schema/DataFrame
|
|
89
|
+
and CUDA recovery messages, preserving exception types and strictness.
|
|
90
|
+
- Extend mixed-data persistence, refit/RNG and sklearn regression coverage;
|
|
91
|
+
document fitted inspection and a DataFrame-preserving pipeline example.
|
|
92
|
+
|
|
93
|
+
## [0.3.1] - 2026-10-08
|
|
94
|
+
|
|
95
|
+
### Changed
|
|
96
|
+
|
|
97
|
+
- Reduce CPU prediction-path overhead for already numeric columns and DataFrames
|
|
98
|
+
whose columns already match the learned schema order.
|
|
99
|
+
- Preserve the original conversion, schema-reordering, missing-value,
|
|
100
|
+
categorical, and caller-ownership paths when the fast paths do not apply.
|
|
101
|
+
- Preserve prediction/probability behavior bit for bit on the frozen release
|
|
102
|
+
validation, including the 30-case binary equivalence panel.
|
|
103
|
+
|
|
104
|
+
### Validation and packaging
|
|
105
|
+
|
|
106
|
+
- Add product-path regression tests for numeric conversion, memory ownership,
|
|
107
|
+
schema ordering, and mixed/nullable numeric inputs.
|
|
108
|
+
- Add distribution-hygiene checks for wheel/sdist contents and local/private
|
|
109
|
+
artifact leakage.
|
|
110
|
+
- Run CI on release branches in addition to `main`, while retaining Python
|
|
111
|
+
3.10-3.12, Windows, minimum-PyTorch, Ruff, build, and installed-artifact jobs.
|
|
112
|
+
- Document the scoped P35 CPU/WSL performance measurements in
|
|
113
|
+
`docs/PERFORMANCE_0_3_1.md`.
|
|
114
|
+
|
|
115
|
+
NeuroTabular 0.3.1 is a compatible performance/product-hardening patch. It does
|
|
116
|
+
not intentionally change the algorithm, defaults, model capacity, or predictive
|
|
117
|
+
quality. Physical CUDA validation remains pending.
|
|
118
|
+
|
|
119
|
+
## [0.3.0] - 2026-09-20
|
|
120
|
+
|
|
121
|
+
### Added
|
|
122
|
+
|
|
123
|
+
- Automatic multiclass classification with ordered labels, cross entropy,
|
|
124
|
+
normalized softmax probabilities, weights and loss/accuracy stopping.
|
|
125
|
+
- `NeuroTabularRegressor` with train-only weighted target standardization,
|
|
126
|
+
inverse transformation and loss/RMSE/MAE/R² evaluation.
|
|
127
|
+
- Shared preprocessing, neural backbone and multi-task training core.
|
|
128
|
+
- Pickle/joblib validation in fresh processes for all three tasks.
|
|
129
|
+
- Expanded schema, weighting, target, device, sklearn and packaging validation,
|
|
130
|
+
with documentation and frozen real-data benchmark evidence.
|
|
131
|
+
|
|
132
|
+
### Changed
|
|
133
|
+
|
|
134
|
+
- Refactor internal estimator/training code while preserving exact v0.2.0 binary
|
|
135
|
+
behavior on the frozen 30-case equivalence panel and retaining public defaults.
|
|
136
|
+
|
|
137
|
+
## [0.2.0] - 2026-09-06
|
|
138
|
+
|
|
139
|
+
### First public release
|
|
140
|
+
|
|
141
|
+
- Add `NeuroTabularClassifier`, a scikit-learn-compatible neural binary
|
|
142
|
+
classifier for heterogeneous pandas DataFrames.
|
|
143
|
+
- Add automatic numerical/categorical detection, missing-value handling,
|
|
144
|
+
training-only preprocessing, categorical embeddings, rare/unknown IDs, and
|
|
145
|
+
categorical log-frequency side features.
|
|
146
|
+
- Add scalar numerical inputs by default plus explicit affine, periodic, and
|
|
147
|
+
piecewise experimental representations.
|
|
148
|
+
- Add adaptive categorical embedding widths, residual MLP backbone, optional
|
|
149
|
+
feature gating, and optional full-data refit.
|
|
150
|
+
- Add AdamW, cosine scheduling, automatic batching, internal/external validation,
|
|
151
|
+
early stopping, strict best-checkpoint restoration, sample weights, and
|
|
152
|
+
`class_weight="balanced"`.
|
|
153
|
+
- Add transactional re-fitting and restoration of caller Python/NumPy/PyTorch
|
|
154
|
+
CPU RNG states.
|
|
155
|
+
- Treat declared-but-unobserved pandas categorical levels as unknown.
|
|
156
|
+
- Reject complex values and unsafe float32 conversions explicitly.
|
|
157
|
+
- Ignore zero-weight rows before target discovery and preprocessing.
|
|
158
|
+
- Add CPU/CUDA diagnostics, synchronized CUDA probing, safe automatic fallback,
|
|
159
|
+
and AMP only on compatible CUDA devices.
|
|
160
|
+
- Add Python 3.10-3.12, PyTorch 2.0+, Linux/Windows CI, wheel/sdist verification,
|
|
161
|
+
and clean-wheel smoke tests.
|
|
162
|
+
- Add benchmark, performance, ablation, research, usage, API, security,
|
|
163
|
+
contribution, publishing, and release documentation.
|
|
164
|
+
|
|
165
|
+
### Status
|
|
166
|
+
|
|
167
|
+
NeuroTabular 0.2.0 is experimental and pre-1.0. No state-of-the-art or universal
|
|
168
|
+
performance claim is made.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use NeuroTabular in research, please cite this software."
|
|
3
|
+
title: "NeuroTabular"
|
|
4
|
+
type: software
|
|
5
|
+
authors:
|
|
6
|
+
- family-names: "Lullo"
|
|
7
|
+
given-names: "Luca"
|
|
8
|
+
version: 1.0.2
|
|
9
|
+
repository-code: "https://github.com/lucalullo/neuro-tabular"
|
|
10
|
+
license: MIT
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Code of conduct
|
|
2
|
+
|
|
3
|
+
NeuroTabular contributors and maintainers are expected to keep project spaces
|
|
4
|
+
respectful, constructive, and focused on the work.
|
|
5
|
+
|
|
6
|
+
## Expected behavior
|
|
7
|
+
|
|
8
|
+
- Discuss ideas and code without attacking people.
|
|
9
|
+
- Welcome good-faith questions and contributions from different backgrounds.
|
|
10
|
+
- Give actionable feedback and acknowledge uncertainty.
|
|
11
|
+
- Respect privacy, attribution, licensing, and responsible disclosure.
|
|
12
|
+
- Stop behavior that maintainers identify as disruptive or unsafe.
|
|
13
|
+
|
|
14
|
+
Harassment, discrimination, threats, deliberate humiliation, doxxing, spam,
|
|
15
|
+
and unwelcome sexualized attention are not acceptable.
|
|
16
|
+
|
|
17
|
+
## Reporting and enforcement
|
|
18
|
+
|
|
19
|
+
Use a private maintainer channel for conduct concerns when one is available.
|
|
20
|
+
Do not publish private personal information. Security vulnerabilities follow
|
|
21
|
+
`SECURITY.md`.
|
|
22
|
+
|
|
23
|
+
Maintainers may edit or remove content, close or lock discussions, reject
|
|
24
|
+
contributions, or restrict participation to protect the project and community.
|
|
25
|
+
Reports should be handled as confidentially and consistently as practical.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Contributing to NeuroTabular
|
|
2
|
+
|
|
3
|
+
Thank you for considering a contribution. NeuroTabular is experimental, so
|
|
4
|
+
focused issues, synthetic reproductions, and measured changes are especially
|
|
5
|
+
valuable. Participation is governed by [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
6
|
+
Report vulnerabilities through [SECURITY.md](SECURITY.md), not a public issue.
|
|
7
|
+
|
|
8
|
+
## Development setup
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
python -m venv .venv
|
|
12
|
+
source .venv/bin/activate # Linux/macOS bash; Windows: .\.venv\Scripts\Activate.ps1
|
|
13
|
+
python -m pip install -e ".[dev]"
|
|
14
|
+
python -m ruff check .
|
|
15
|
+
python -m pytest -W error
|
|
16
|
+
python -m build
|
|
17
|
+
python -m twine check dist/*
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Pull requests
|
|
21
|
+
|
|
22
|
+
1. Keep each change focused and explain its user or research motivation.
|
|
23
|
+
2. Add fast synthetic tests for changed behavior.
|
|
24
|
+
3. Update README, API, usage, and changelog content when user-visible behavior
|
|
25
|
+
changes.
|
|
26
|
+
4. Run lint, warnings-as-errors tests, build, and metadata checks.
|
|
27
|
+
5. Include a reproducible benchmark for architecture, default, preprocessing,
|
|
28
|
+
or performance changes.
|
|
29
|
+
6. State compatibility, device coverage, and limitations explicitly.
|
|
30
|
+
|
|
31
|
+
Do not commit datasets, credentials, local paths, caches, environments, build
|
|
32
|
+
outputs, benchmark caches, or generated archives.
|
|
33
|
+
|
|
34
|
+
Public estimator constructors must remain side-effect-free and cloneable.
|
|
35
|
+
Training data must never influence validation preprocessing state. New runtime
|
|
36
|
+
dependencies require a necessity, maintenance, license, and size review.
|
|
37
|
+
|
|
38
|
+
## Original work
|
|
39
|
+
|
|
40
|
+
Contributions must be original work or material the contributor is authorized
|
|
41
|
+
to submit. Do not copy source, tests, or documentation from other projects. By
|
|
42
|
+
contributing, you agree that the submission may be distributed under the MIT
|
|
43
|
+
License.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Legal, provenance, and naming notes
|
|
2
|
+
|
|
3
|
+
This document records preliminary engineering due diligence. It is not legal
|
|
4
|
+
advice, a freedom-to-operate opinion, or professional trademark clearance. The
|
|
5
|
+
name **NeuroTabular** is not represented or guaranteed to be legally available.
|
|
6
|
+
|
|
7
|
+
## Code and data provenance
|
|
8
|
+
|
|
9
|
+
- NeuroTabular source, tests, documentation, examples, and benchmark harnesses
|
|
10
|
+
were written for this project.
|
|
11
|
+
- The implementation calls public APIs from NumPy, pandas, PyTorch, and
|
|
12
|
+
scikit-learn. It does not vendor or modify their source.
|
|
13
|
+
- Public scientific papers and official performance documentation informed
|
|
14
|
+
independently written design decisions recorded in `RESEARCH_NOTES.md`.
|
|
15
|
+
- No source implementation was copied from external tabular-learning projects.
|
|
16
|
+
- Software validation uses synthetic fixtures. Some executable examples use
|
|
17
|
+
demo datasets bundled with scikit-learn; historical benchmark reports describe
|
|
18
|
+
their own dataset sources. No third-party dataset is distributed here.
|
|
19
|
+
- Training and inference contain no telemetry, hosted-service client, upload,
|
|
20
|
+
account requirement, or network request.
|
|
21
|
+
|
|
22
|
+
Contributors must submit original work or material they are authorized to
|
|
23
|
+
license. Users remain responsible for data governance, privacy, security,
|
|
24
|
+
regulatory obligations, and the consequences of models trained on their data.
|
|
25
|
+
|
|
26
|
+
## Preliminary naming review on 2026-08-27
|
|
27
|
+
|
|
28
|
+
Exact-name web, PyPI, and GitHub searches performed for this engineering review
|
|
29
|
+
did not identify a clearly indexed Python package or software repository using
|
|
30
|
+
the exact project name. Search engines and indexes can be incomplete, delayed,
|
|
31
|
+
or jurisdictionally narrow; the result does not establish availability.
|
|
32
|
+
|
|
33
|
+
The review identified the earlier EU word mark **NEUROTAB**, application number
|
|
34
|
+
`015727282`, associated with software and medical/neurostimulation-related
|
|
35
|
+
goods. **NeuroTabular contains the complete string “NeuroTab” and identifies
|
|
36
|
+
software. This creates a material naming risk that requires professional review
|
|
37
|
+
before public launch, marketing, registration, or commercial reliance.**
|
|
38
|
+
|
|
39
|
+
The exact status, renewal state, goods and services, ownership, and geographic
|
|
40
|
+
scope must be checked directly in official registers immediately before any
|
|
41
|
+
publication decision. Similarity analysis depends on jurisdiction, goods,
|
|
42
|
+
services, consumers, presentation, and other legal factors that this engineering
|
|
43
|
+
review cannot determine.
|
|
44
|
+
|
|
45
|
+
Official starting points include:
|
|
46
|
+
|
|
47
|
+
- [EUIPO search services](https://www.euipo.europa.eu/en/search-ip)
|
|
48
|
+
- [EUIPO eSearch](https://euipo.europa.eu/eSearch/)
|
|
49
|
+
- [TMview](https://www.tmdn.org/tmview/)
|
|
50
|
+
- [WIPO Global Brand Database](https://branddb.wipo.int/)
|
|
51
|
+
|
|
52
|
+
Searches can miss unregistered rights, recent filings, translations, similar
|
|
53
|
+
marks, non-indexed uses, and relevant national rights. Package, repository, or
|
|
54
|
+
domain availability does not create trademark rights.
|
|
55
|
+
|
|
56
|
+
## Before publication
|
|
57
|
+
|
|
58
|
+
Repeat exact and similarity searches on PyPI, GitHub, the web, EUIPO/TMview,
|
|
59
|
+
WIPO, and relevant national registers. Obtain professional trademark advice for
|
|
60
|
+
intended markets, particularly software-related classes and any medical or
|
|
61
|
+
neurological use. Review the exact dependency artifacts and notices, scan the
|
|
62
|
+
repository and history for credentials or private data, and confirm that all
|
|
63
|
+
contributors have supplied original authorized work.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Luca Lullo and NeuroTabular contributors
|
|
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.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
include ABLATION_REPORT.md
|
|
2
|
+
include BENCHMARK_REPORT.md
|
|
3
|
+
include CHANGELOG.md
|
|
4
|
+
include CITATION.cff
|
|
5
|
+
include CODE_OF_CONDUCT.md
|
|
6
|
+
include CONTRIBUTING.md
|
|
7
|
+
include LEGAL.md
|
|
8
|
+
include LICENSE
|
|
9
|
+
include PERFORMANCE_PROFILE.md
|
|
10
|
+
include PUBLISHING.md
|
|
11
|
+
include README.md
|
|
12
|
+
include RELEASE_NOTES.md
|
|
13
|
+
include RESEARCH_NOTES.md
|
|
14
|
+
include SECURITY.md
|
|
15
|
+
include THIRD_PARTY_NOTICES.md
|
|
16
|
+
include VERSIONING.md
|
|
17
|
+
recursive-include docs *.md
|
|
18
|
+
recursive-include benchmarks *.py
|
|
19
|
+
recursive-include examples *.py
|
|
20
|
+
recursive-include tests *.py
|
|
21
|
+
include RELEASE_CHECKLIST.md
|
|
22
|
+
include SOURCE_MANIFEST.sha256
|
|
23
|
+
recursive-include tools *.py
|
|
24
|
+
recursive-include release *.md
|
|
25
|
+
prune .p35-local
|
|
26
|
+
prune .p36-local
|
|
27
|
+
prune .p35-product
|
|
28
|
+
prune .p36-product
|
|
29
|
+
prune .p37-local
|
|
30
|
+
prune .p37-product
|
|
31
|
+
prune product_validation
|
|
32
|
+
prune docs/research
|
|
33
|
+
prune tests/fixtures
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# NeuroTabular 0.2.0 performance profile
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
|
|
5
|
+
This profile records where end-to-end time is spent on one reproducible CPU
|
|
6
|
+
workload. It is diagnostic rather than a throughput guarantee.
|
|
7
|
+
|
|
8
|
+
## Recorded environment and workload
|
|
9
|
+
|
|
10
|
+
- Windows 11, Python 3.12.13;
|
|
11
|
+
- PyTorch 2.13.0+cpu;
|
|
12
|
+
- 2 physical / 4 logical CPU cores, 11.71 GiB RAM;
|
|
13
|
+
- 5,000 mixed rows, 15 columns;
|
|
14
|
+
- five epochs, hidden width 32, one residual block;
|
|
15
|
+
- ROC-AUC validation metric;
|
|
16
|
+
- CPU only, no AMP, no VRAM measurement.
|
|
17
|
+
|
|
18
|
+
## Stage timings
|
|
19
|
+
|
|
20
|
+
| Stage | Seconds |
|
|
21
|
+
|---|---:|
|
|
22
|
+
| End-to-end fit | 2.771824 |
|
|
23
|
+
| Preprocessing | 0.037767 |
|
|
24
|
+
| Tensor conversion | 0.000078 |
|
|
25
|
+
| Device transfer | 0.000011 |
|
|
26
|
+
| Batch construction | 0.000033 |
|
|
27
|
+
| Forward | 0.101932 |
|
|
28
|
+
| Backward | 0.070493 |
|
|
29
|
+
| Optimizer | 0.019705 |
|
|
30
|
+
| Validation inference | 0.018597 |
|
|
31
|
+
| Metric calculation | 0.029753 |
|
|
32
|
+
| Checkpoint copy | 0.003144 |
|
|
33
|
+
| Best-state restoration | 0.001453 |
|
|
34
|
+
| Engine setup/first-use | 2.456397 |
|
|
35
|
+
| Training engine total | 2.708069 |
|
|
36
|
+
| End-to-end prediction | 0.023689 |
|
|
37
|
+
| Prediction preprocessing | 0.013382 |
|
|
38
|
+
| Prediction network, derived | 0.010307 |
|
|
39
|
+
|
|
40
|
+
The dominant cost in this cold process was engine setup/first-use overhead.
|
|
41
|
+
Absolute timings should not be extrapolated to other machines or workloads.
|
|
42
|
+
|
|
43
|
+
## Code-path findings
|
|
44
|
+
|
|
45
|
+
### Preprocessing
|
|
46
|
+
|
|
47
|
+
Categorical frequency transform indexes a learned NumPy frequency table using
|
|
48
|
+
already encoded category IDs, avoiding a second pandas mapping pass. Numerical
|
|
49
|
+
quantile knots are fitted so all supported numerical representations can share
|
|
50
|
+
training-only preprocessing state; scalar mode consumes only scaled values and
|
|
51
|
+
missing indicators at runtime.
|
|
52
|
+
|
|
53
|
+
### Training and validation
|
|
54
|
+
|
|
55
|
+
Processed tables are converted once and kept on the selected device. Batches
|
|
56
|
+
use index tensors rather than repeated host-to-device table copies. When
|
|
57
|
+
`eval_metric="loss"`, validation avoids probability-array construction and
|
|
58
|
+
sigmoid work that the metric does not need. Best weights are copied only on a
|
|
59
|
+
strict improvement and restored once.
|
|
60
|
+
|
|
61
|
+
### CPU autocast and CUDA
|
|
62
|
+
|
|
63
|
+
When AMP is disabled, CPU execution uses `contextlib.nullcontext`; no disabled
|
|
64
|
+
CPU `torch.autocast` context is constructed. AMP is enabled only after a
|
|
65
|
+
successful CUDA probe and compatibility check.
|
|
66
|
+
|
|
67
|
+
### Adaptive embeddings
|
|
68
|
+
|
|
69
|
+
Categorical widths are bounded and adapt to cardinality, sample count, feature
|
|
70
|
+
count, and a compact aggregate width budget. On this recorded schema the model
|
|
71
|
+
used 9,063 trainable parameters. The budget controls embedding widths, not total
|
|
72
|
+
RAM/VRAM bytes.
|
|
73
|
+
|
|
74
|
+
## Memory
|
|
75
|
+
|
|
76
|
+
The recorded cold profile peak RSS delta was about 86.8 MiB. RSS includes the
|
|
77
|
+
Python process, native libraries, allocator behavior, and first-use effects.
|
|
78
|
+
VRAM was not measured because CUDA was unavailable.
|
|
79
|
+
|
|
80
|
+
## Practical guidance
|
|
81
|
+
|
|
82
|
+
- benchmark on the target hardware;
|
|
83
|
+
- avoid judging speed from one tiny dataset;
|
|
84
|
+
- use the built-in profiling attributes to separate preprocessing, training,
|
|
85
|
+
validation, and prediction costs;
|
|
86
|
+
- treat high-cardinality categoricals separately because embedding table size
|
|
87
|
+
depends on cardinality even when width is bounded.
|