mlprofessor 0.1.0a1__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.
- mlprofessor-0.1.0a1/LICENSE +21 -0
- mlprofessor-0.1.0a1/MANIFEST.in +11 -0
- mlprofessor-0.1.0a1/PKG-INFO +89 -0
- mlprofessor-0.1.0a1/PYPI.md +66 -0
- mlprofessor-0.1.0a1/README.md +733 -0
- mlprofessor-0.1.0a1/mlprofessor/__init__.py +26 -0
- mlprofessor-0.1.0a1/mlprofessor/__main__.py +7 -0
- mlprofessor-0.1.0a1/mlprofessor/cli.py +149 -0
- mlprofessor-0.1.0a1/mlprofessor/columns.py +524 -0
- mlprofessor-0.1.0a1/mlprofessor/errors.py +110 -0
- mlprofessor-0.1.0a1/mlprofessor/extensions.py +29 -0
- mlprofessor-0.1.0a1/mlprofessor/leakage.py +588 -0
- mlprofessor-0.1.0a1/mlprofessor/load.py +330 -0
- mlprofessor-0.1.0a1/mlprofessor/metrics.py +243 -0
- mlprofessor-0.1.0a1/mlprofessor/models.py +149 -0
- mlprofessor-0.1.0a1/mlprofessor/pipeline.py +1692 -0
- mlprofessor-0.1.0a1/mlprofessor/preprocess.py +108 -0
- mlprofessor-0.1.0a1/mlprofessor/result.py +177 -0
- mlprofessor-0.1.0a1/mlprofessor/split.py +482 -0
- mlprofessor-0.1.0a1/mlprofessor/stages.py +29 -0
- mlprofessor-0.1.0a1/mlprofessor/task.py +172 -0
- mlprofessor-0.1.0a1/mlprofessor/uncertainty.py +282 -0
- mlprofessor-0.1.0a1/mlprofessor.egg-info/PKG-INFO +89 -0
- mlprofessor-0.1.0a1/mlprofessor.egg-info/SOURCES.txt +28 -0
- mlprofessor-0.1.0a1/mlprofessor.egg-info/dependency_links.txt +1 -0
- mlprofessor-0.1.0a1/mlprofessor.egg-info/entry_points.txt +2 -0
- mlprofessor-0.1.0a1/mlprofessor.egg-info/requires.txt +4 -0
- mlprofessor-0.1.0a1/mlprofessor.egg-info/top_level.txt +1 -0
- mlprofessor-0.1.0a1/pyproject.toml +40 -0
- mlprofessor-0.1.0a1/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Selphaware
|
|
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,11 @@
|
|
|
1
|
+
# The source distribution holds the package, the licence and the PyPI page only.
|
|
2
|
+
# experiments/ is never shipped (D86); the harness and its tests stay in the repo.
|
|
3
|
+
prune experiments
|
|
4
|
+
prune tests
|
|
5
|
+
prune verify
|
|
6
|
+
prune docs
|
|
7
|
+
prune loop
|
|
8
|
+
prune plan
|
|
9
|
+
prune examples
|
|
10
|
+
prune .claude
|
|
11
|
+
prune .github
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mlprofessor
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: Measures how predictable one target column of one table is, on rows no fitted step has seen.
|
|
5
|
+
Author: Selphaware
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Repository, https://github.com/selphaware/ml-professor
|
|
8
|
+
Project-URL: Documentation, https://github.com/selphaware/ml-professor/blob/main/README.md
|
|
9
|
+
Keywords: machine learning,profiling,predictability,tabular data,validation,leakage
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Requires-Python: <3.13,>=3.12
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Requires-Dist: pandas<3.2,>=3.1.1
|
|
19
|
+
Requires-Dist: numpy<2.6,>=2.5.4
|
|
20
|
+
Requires-Dist: scikit-learn<1.10,>=1.9.1
|
|
21
|
+
Requires-Dist: threadpoolctl<4,>=3.8.0
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# mlprofessor
|
|
25
|
+
|
|
26
|
+
`mlprofessor` measures how predictable one target column of one table is. You
|
|
27
|
+
give it a table and name a target column. It holds out a quarter of the rows,
|
|
28
|
+
fits a few standard model families on the rest, scores the chosen one on the
|
|
29
|
+
held-out rows, and reports that score against a simple baseline, with an
|
|
30
|
+
interval, a p-value, and an account of every row and column it used or set
|
|
31
|
+
aside.
|
|
32
|
+
|
|
33
|
+
It is a measuring tool, not a model-building tool: it does not produce a model
|
|
34
|
+
you should deploy. This is an early (alpha) release. It covers one table,
|
|
35
|
+
supervised learning, binary classification and regression, and random, grouped
|
|
36
|
+
or time-ordered validation.
|
|
37
|
+
|
|
38
|
+
## Install
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
pip install mlprofessor
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Python 3.12. It depends on pandas, numpy, scikit-learn and threadpoolctl.
|
|
45
|
+
Nothing needs the network at run time.
|
|
46
|
+
|
|
47
|
+
## Use
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
from mlprofessor import profile
|
|
51
|
+
|
|
52
|
+
result = profile(
|
|
53
|
+
"customers.csv", # a CSV path, or a pandas DataFrame
|
|
54
|
+
"churned", # the target column
|
|
55
|
+
time_col=False, # required: a time column's name, or False
|
|
56
|
+
group_col=False, # required: an entity column's name, or False
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
print(result.headline) # metric, score, baseline, skill, interval, p-value
|
|
60
|
+
print(result.warnings) # code, column, message
|
|
61
|
+
print(result.columns) # one row per input column, with its role
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Every call says two things, and the tool assumes neither: whether the rows are
|
|
65
|
+
ordered in time (`time_col`) and whether rows belong together (`group_col`). A
|
|
66
|
+
call that leaves either out stops with a named error.
|
|
67
|
+
|
|
68
|
+
From the command line:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
mlprofessor profile --data customers.csv --target churned --out runs/customers --no-time-order --no-entities
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## What it measures, and what it does not
|
|
75
|
+
|
|
76
|
+
It measures how well these model families did on this table, under this
|
|
77
|
+
validation scheme, on rows they had not seen, against a baseline. Low skill is
|
|
78
|
+
not proof that the target cannot be predicted. High skill is not proof of
|
|
79
|
+
cause.
|
|
80
|
+
|
|
81
|
+
Identical results are promised only on the library versions the project is
|
|
82
|
+
tested on (pandas 3.1.1, numpy 2.5.4, scikit-learn 1.9.1, threadpoolctl
|
|
83
|
+
3.8.0). Every result records the versions that produced it.
|
|
84
|
+
|
|
85
|
+
## Documentation
|
|
86
|
+
|
|
87
|
+
The full documentation, with every validation scheme, warning and stated
|
|
88
|
+
limit, is in the repository:
|
|
89
|
+
https://github.com/selphaware/ml-professor/blob/main/README.md
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# mlprofessor
|
|
2
|
+
|
|
3
|
+
`mlprofessor` measures how predictable one target column of one table is. You
|
|
4
|
+
give it a table and name a target column. It holds out a quarter of the rows,
|
|
5
|
+
fits a few standard model families on the rest, scores the chosen one on the
|
|
6
|
+
held-out rows, and reports that score against a simple baseline, with an
|
|
7
|
+
interval, a p-value, and an account of every row and column it used or set
|
|
8
|
+
aside.
|
|
9
|
+
|
|
10
|
+
It is a measuring tool, not a model-building tool: it does not produce a model
|
|
11
|
+
you should deploy. This is an early (alpha) release. It covers one table,
|
|
12
|
+
supervised learning, binary classification and regression, and random, grouped
|
|
13
|
+
or time-ordered validation.
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
pip install mlprofessor
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Python 3.12. It depends on pandas, numpy, scikit-learn and threadpoolctl.
|
|
22
|
+
Nothing needs the network at run time.
|
|
23
|
+
|
|
24
|
+
## Use
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from mlprofessor import profile
|
|
28
|
+
|
|
29
|
+
result = profile(
|
|
30
|
+
"customers.csv", # a CSV path, or a pandas DataFrame
|
|
31
|
+
"churned", # the target column
|
|
32
|
+
time_col=False, # required: a time column's name, or False
|
|
33
|
+
group_col=False, # required: an entity column's name, or False
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
print(result.headline) # metric, score, baseline, skill, interval, p-value
|
|
37
|
+
print(result.warnings) # code, column, message
|
|
38
|
+
print(result.columns) # one row per input column, with its role
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Every call says two things, and the tool assumes neither: whether the rows are
|
|
42
|
+
ordered in time (`time_col`) and whether rows belong together (`group_col`). A
|
|
43
|
+
call that leaves either out stops with a named error.
|
|
44
|
+
|
|
45
|
+
From the command line:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
mlprofessor profile --data customers.csv --target churned --out runs/customers --no-time-order --no-entities
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## What it measures, and what it does not
|
|
52
|
+
|
|
53
|
+
It measures how well these model families did on this table, under this
|
|
54
|
+
validation scheme, on rows they had not seen, against a baseline. Low skill is
|
|
55
|
+
not proof that the target cannot be predicted. High skill is not proof of
|
|
56
|
+
cause.
|
|
57
|
+
|
|
58
|
+
Identical results are promised only on the library versions the project is
|
|
59
|
+
tested on (pandas 3.1.1, numpy 2.5.4, scikit-learn 1.9.1, threadpoolctl
|
|
60
|
+
3.8.0). Every result records the versions that produced it.
|
|
61
|
+
|
|
62
|
+
## Documentation
|
|
63
|
+
|
|
64
|
+
The full documentation, with every validation scheme, warning and stated
|
|
65
|
+
limit, is in the repository:
|
|
66
|
+
https://github.com/selphaware/ml-professor/blob/main/README.md
|