zeromodel-analysis 1.1.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.
- zeromodel_analysis-1.1.0/PKG-INFO +133 -0
- zeromodel_analysis-1.1.0/README.md +107 -0
- zeromodel_analysis-1.1.0/pyproject.toml +44 -0
- zeromodel_analysis-1.1.0/setup.cfg +4 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/__init__.py +219 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/adapters/__init__.py +29 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/adapters/common.py +207 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/adapters/jsonl.py +52 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/adapters/tensorboard.py +52 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/adapters/trackio.py +40 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/adapters/wandb.py +45 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/compare.py +55 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/compose.py +68 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/controller.py +317 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/critic.py +471 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/domains/__init__.py +1 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/edge.py +60 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/hierarchy.py +81 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/learning.py +290 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/manifold.py +365 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/patterns.py +565 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/phos.py +168 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/policy_diagnostics.py +93 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/policy_properties.py +472 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/spatial.py +350 -0
- zeromodel_analysis-1.1.0/src/zeromodel/analysis/training.py +373 -0
- zeromodel_analysis-1.1.0/src/zeromodel_analysis.egg-info/PKG-INFO +133 -0
- zeromodel_analysis-1.1.0/src/zeromodel_analysis.egg-info/SOURCES.txt +41 -0
- zeromodel_analysis-1.1.0/src/zeromodel_analysis.egg-info/dependency_links.txt +1 -0
- zeromodel_analysis-1.1.0/src/zeromodel_analysis.egg-info/requires.txt +2 -0
- zeromodel_analysis-1.1.0/src/zeromodel_analysis.egg-info/top_level.txt +1 -0
- zeromodel_analysis-1.1.0/tests/test_analysis_api_isolation_wheel.py +120 -0
- zeromodel_analysis-1.1.0/tests/test_analysis_capabilities.py +92 -0
- zeromodel_analysis-1.1.0/tests/test_critic.py +156 -0
- zeromodel_analysis-1.1.0/tests/test_learning.py +125 -0
- zeromodel_analysis-1.1.0/tests/test_manifold.py +131 -0
- zeromodel_analysis-1.1.0/tests/test_patterns.py +262 -0
- zeromodel_analysis-1.1.0/tests/test_phos.py +53 -0
- zeromodel_analysis-1.1.0/tests/test_policy_diagnostics.py +77 -0
- zeromodel_analysis-1.1.0/tests/test_policy_properties.py +232 -0
- zeromodel_analysis-1.1.0/tests/test_spatial.py +95 -0
- zeromodel_analysis-1.1.0/tests/test_training.py +148 -0
- zeromodel_analysis-1.1.0/tests/test_training_adapters.py +122 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: zeromodel-analysis
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Summary: ZeroModel analysis package
|
|
5
|
+
Author-email: Ernan Hughes <ernanhughes@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/ernanhughes/zeromodel
|
|
8
|
+
Project-URL: Repository, https://github.com/ernanhughes/zeromodel
|
|
9
|
+
Project-URL: Documentation, https://ernanhughes.github.io/zeromodel/
|
|
10
|
+
Keywords: visual-policy-map,vpm,policy-analysis,deterministic-analysis
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
Requires-Dist: numpy>=1.23
|
|
25
|
+
Requires-Dist: zeromodel==1.1.0
|
|
26
|
+
|
|
27
|
+
# zeromodel-analysis
|
|
28
|
+
|
|
29
|
+
`zeromodel-analysis` contains deterministic analysis utilities for ZeroModel
|
|
30
|
+
Visual Policy Map artifacts. It is the second package in the ZeroModel 1.0.13
|
|
31
|
+
split and exposes its API through `zeromodel.analysis`.
|
|
32
|
+
|
|
33
|
+
The package depends on the validated core distribution, `zeromodel==1.0.13`.
|
|
34
|
+
Core data objects such as `ScoreTable`, `LayoutRecipe`, and `VPMArtifact` should
|
|
35
|
+
be imported from `zeromodel.core`, not re-exported from this package.
|
|
36
|
+
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
```powershell
|
|
40
|
+
python -m pip install zeromodel==1.0.13 zeromodel-analysis==1.0.13
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Includes
|
|
44
|
+
|
|
45
|
+
- Field comparison and fuzzy field composition.
|
|
46
|
+
- Hierarchical matrix reduction and pyramids.
|
|
47
|
+
- PHOS packing and top-left concentration analysis.
|
|
48
|
+
- Spatial optimization and optimized view generation.
|
|
49
|
+
- Matrix-pattern detection and discovered views.
|
|
50
|
+
- Decision manifolds and inflection-point detection.
|
|
51
|
+
- Policy diagnostics and finite policy-property checking.
|
|
52
|
+
- Critic, learning, and training-progress artifact builders.
|
|
53
|
+
- Lightweight tracker-export adapters for training checkpoint records.
|
|
54
|
+
|
|
55
|
+
## Excludes
|
|
56
|
+
|
|
57
|
+
`zeromodel-analysis` deliberately excludes observation capture, vision encoders,
|
|
58
|
+
video runtime/instrumentation, SQLAlchemy persistence, research orchestration,
|
|
59
|
+
examples, Torch, TorchVision, Transformers, Pillow, and database runtimes.
|
|
60
|
+
|
|
61
|
+
Analysis functions operate over numeric artifacts and bounded finite policies.
|
|
62
|
+
They do not claim semantic reasoning, causal detection, continuous formal
|
|
63
|
+
verification, or benchmark adjudication beyond the explicit deterministic
|
|
64
|
+
contracts documented by each API.
|
|
65
|
+
|
|
66
|
+
## Minimal Comparison
|
|
67
|
+
|
|
68
|
+
```python
|
|
69
|
+
import numpy as np
|
|
70
|
+
|
|
71
|
+
from zeromodel.analysis import compare_fields, vpm_and
|
|
72
|
+
|
|
73
|
+
baseline = np.array([[0.2, 0.8], [0.4, 0.1]])
|
|
74
|
+
candidate = np.array([[0.5, 0.7], [0.4, 0.3]])
|
|
75
|
+
|
|
76
|
+
comparison = compare_fields(baseline, candidate)
|
|
77
|
+
intersection = vpm_and(baseline, candidate)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Spatial Analysis
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
from zeromodel.analysis import SpatialOptimizer, build_optimized_view
|
|
84
|
+
from zeromodel.core import ScoreTable
|
|
85
|
+
|
|
86
|
+
table = ScoreTable(
|
|
87
|
+
values=[[0.1, 1.0], [0.9, 0.2], [0.8, 0.3]],
|
|
88
|
+
row_ids=["background", "target-a", "target-b"],
|
|
89
|
+
metric_ids=["target", "noise"],
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
optimizer = SpatialOptimizer(Kc=1, Kr=2, max_evals=20)
|
|
93
|
+
view = build_optimized_view(table, name="target-first", optimizer=optimizer)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Finite Policy Verification
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
from zeromodel.analysis import PolicyPropertyChecker, PolicyPropertySpec
|
|
100
|
+
from zeromodel.core import LayoutRecipe, ScoreTable, build_vpm
|
|
101
|
+
|
|
102
|
+
table = ScoreTable(
|
|
103
|
+
values=[[0.0, 1.0], [1.0, 0.0]],
|
|
104
|
+
row_ids=["enabled=true", "enabled=false"],
|
|
105
|
+
metric_ids=["WAIT", "ACT"],
|
|
106
|
+
)
|
|
107
|
+
recipe = LayoutRecipe.from_dict(
|
|
108
|
+
{
|
|
109
|
+
"version": "vpm-layout/0",
|
|
110
|
+
"name": "policy",
|
|
111
|
+
"row_order": {"kind": "source", "tie_break": "row_id"},
|
|
112
|
+
"column_order": {"kind": "source"},
|
|
113
|
+
"normalization": {"kind": "per_metric_minmax", "clip": True},
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
artifact = build_vpm(table, recipe)
|
|
117
|
+
|
|
118
|
+
spec = PolicyPropertySpec.from_dict(
|
|
119
|
+
{
|
|
120
|
+
"id": "act_requires_enabled",
|
|
121
|
+
"version": "1",
|
|
122
|
+
"assert": {
|
|
123
|
+
"implies": [
|
|
124
|
+
{"eq": [{"var": "winner"}, "ACT"]},
|
|
125
|
+
{"eq": [{"var": "state.enabled"}, True]},
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
report = PolicyPropertyChecker(artifact, action_metric_ids=("WAIT", "ACT")).check(
|
|
131
|
+
[spec]
|
|
132
|
+
)
|
|
133
|
+
```
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# zeromodel-analysis
|
|
2
|
+
|
|
3
|
+
`zeromodel-analysis` contains deterministic analysis utilities for ZeroModel
|
|
4
|
+
Visual Policy Map artifacts. It is the second package in the ZeroModel 1.0.13
|
|
5
|
+
split and exposes its API through `zeromodel.analysis`.
|
|
6
|
+
|
|
7
|
+
The package depends on the validated core distribution, `zeromodel==1.0.13`.
|
|
8
|
+
Core data objects such as `ScoreTable`, `LayoutRecipe`, and `VPMArtifact` should
|
|
9
|
+
be imported from `zeromodel.core`, not re-exported from this package.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```powershell
|
|
14
|
+
python -m pip install zeromodel==1.0.13 zeromodel-analysis==1.0.13
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Includes
|
|
18
|
+
|
|
19
|
+
- Field comparison and fuzzy field composition.
|
|
20
|
+
- Hierarchical matrix reduction and pyramids.
|
|
21
|
+
- PHOS packing and top-left concentration analysis.
|
|
22
|
+
- Spatial optimization and optimized view generation.
|
|
23
|
+
- Matrix-pattern detection and discovered views.
|
|
24
|
+
- Decision manifolds and inflection-point detection.
|
|
25
|
+
- Policy diagnostics and finite policy-property checking.
|
|
26
|
+
- Critic, learning, and training-progress artifact builders.
|
|
27
|
+
- Lightweight tracker-export adapters for training checkpoint records.
|
|
28
|
+
|
|
29
|
+
## Excludes
|
|
30
|
+
|
|
31
|
+
`zeromodel-analysis` deliberately excludes observation capture, vision encoders,
|
|
32
|
+
video runtime/instrumentation, SQLAlchemy persistence, research orchestration,
|
|
33
|
+
examples, Torch, TorchVision, Transformers, Pillow, and database runtimes.
|
|
34
|
+
|
|
35
|
+
Analysis functions operate over numeric artifacts and bounded finite policies.
|
|
36
|
+
They do not claim semantic reasoning, causal detection, continuous formal
|
|
37
|
+
verification, or benchmark adjudication beyond the explicit deterministic
|
|
38
|
+
contracts documented by each API.
|
|
39
|
+
|
|
40
|
+
## Minimal Comparison
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import numpy as np
|
|
44
|
+
|
|
45
|
+
from zeromodel.analysis import compare_fields, vpm_and
|
|
46
|
+
|
|
47
|
+
baseline = np.array([[0.2, 0.8], [0.4, 0.1]])
|
|
48
|
+
candidate = np.array([[0.5, 0.7], [0.4, 0.3]])
|
|
49
|
+
|
|
50
|
+
comparison = compare_fields(baseline, candidate)
|
|
51
|
+
intersection = vpm_and(baseline, candidate)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Spatial Analysis
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
from zeromodel.analysis import SpatialOptimizer, build_optimized_view
|
|
58
|
+
from zeromodel.core import ScoreTable
|
|
59
|
+
|
|
60
|
+
table = ScoreTable(
|
|
61
|
+
values=[[0.1, 1.0], [0.9, 0.2], [0.8, 0.3]],
|
|
62
|
+
row_ids=["background", "target-a", "target-b"],
|
|
63
|
+
metric_ids=["target", "noise"],
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
optimizer = SpatialOptimizer(Kc=1, Kr=2, max_evals=20)
|
|
67
|
+
view = build_optimized_view(table, name="target-first", optimizer=optimizer)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Finite Policy Verification
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
from zeromodel.analysis import PolicyPropertyChecker, PolicyPropertySpec
|
|
74
|
+
from zeromodel.core import LayoutRecipe, ScoreTable, build_vpm
|
|
75
|
+
|
|
76
|
+
table = ScoreTable(
|
|
77
|
+
values=[[0.0, 1.0], [1.0, 0.0]],
|
|
78
|
+
row_ids=["enabled=true", "enabled=false"],
|
|
79
|
+
metric_ids=["WAIT", "ACT"],
|
|
80
|
+
)
|
|
81
|
+
recipe = LayoutRecipe.from_dict(
|
|
82
|
+
{
|
|
83
|
+
"version": "vpm-layout/0",
|
|
84
|
+
"name": "policy",
|
|
85
|
+
"row_order": {"kind": "source", "tie_break": "row_id"},
|
|
86
|
+
"column_order": {"kind": "source"},
|
|
87
|
+
"normalization": {"kind": "per_metric_minmax", "clip": True},
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
artifact = build_vpm(table, recipe)
|
|
91
|
+
|
|
92
|
+
spec = PolicyPropertySpec.from_dict(
|
|
93
|
+
{
|
|
94
|
+
"id": "act_requires_enabled",
|
|
95
|
+
"version": "1",
|
|
96
|
+
"assert": {
|
|
97
|
+
"implies": [
|
|
98
|
+
{"eq": [{"var": "winner"}, "ACT"]},
|
|
99
|
+
{"eq": [{"var": "state.enabled"}, True]},
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
report = PolicyPropertyChecker(artifact, action_metric_ids=("WAIT", "ACT")).check(
|
|
105
|
+
[spec]
|
|
106
|
+
)
|
|
107
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "zeromodel-analysis"
|
|
7
|
+
version = "1.1.0"
|
|
8
|
+
description = "ZeroModel analysis package"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = {text = "MIT"}
|
|
12
|
+
authors = [{name = "Ernan Hughes", email = "ernanhughes@gmail.com"}]
|
|
13
|
+
keywords = [
|
|
14
|
+
"visual-policy-map",
|
|
15
|
+
"vpm",
|
|
16
|
+
"policy-analysis",
|
|
17
|
+
"deterministic-analysis",
|
|
18
|
+
]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 5 - Production/Stable",
|
|
21
|
+
"Intended Audience :: Developers",
|
|
22
|
+
"Intended Audience :: Science/Research",
|
|
23
|
+
"License :: OSI Approved :: MIT License",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Programming Language :: Python :: 3.10",
|
|
27
|
+
"Programming Language :: Python :: 3.11",
|
|
28
|
+
"Programming Language :: Python :: 3.12",
|
|
29
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
30
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
31
|
+
]
|
|
32
|
+
dependencies = [
|
|
33
|
+
"numpy>=1.23",
|
|
34
|
+
"zeromodel==1.1.0",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[project.urls]
|
|
38
|
+
Homepage = "https://github.com/ernanhughes/zeromodel"
|
|
39
|
+
Repository = "https://github.com/ernanhughes/zeromodel"
|
|
40
|
+
Documentation = "https://ernanhughes.github.io/zeromodel/"
|
|
41
|
+
|
|
42
|
+
[tool.setuptools.packages.find]
|
|
43
|
+
where = ["src"]
|
|
44
|
+
include = ["zeromodel.analysis*"]
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"""ZeroModel analysis public API."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .adapters.common import (
|
|
6
|
+
checkpoints_from_export,
|
|
7
|
+
load_tracker_records,
|
|
8
|
+
records_to_checkpoints,
|
|
9
|
+
)
|
|
10
|
+
from .adapters.jsonl import (
|
|
11
|
+
checkpoints_from_csv,
|
|
12
|
+
checkpoints_from_json,
|
|
13
|
+
checkpoints_from_jsonl,
|
|
14
|
+
)
|
|
15
|
+
from .adapters.tensorboard import (
|
|
16
|
+
TENSORBOARD_DEFAULT_ALIASES,
|
|
17
|
+
checkpoints_from_tensorboard_scalars,
|
|
18
|
+
)
|
|
19
|
+
from .adapters.trackio import (
|
|
20
|
+
TRACKIO_DEFAULT_ALIASES,
|
|
21
|
+
checkpoints_from_trackio_export,
|
|
22
|
+
)
|
|
23
|
+
from .adapters.wandb import (
|
|
24
|
+
WANDB_DEFAULT_ALIASES,
|
|
25
|
+
checkpoints_from_wandb_export,
|
|
26
|
+
)
|
|
27
|
+
from .compare import (
|
|
28
|
+
VPMComparison,
|
|
29
|
+
compare_fields,
|
|
30
|
+
)
|
|
31
|
+
from .compose import (
|
|
32
|
+
as_field,
|
|
33
|
+
vpm_add,
|
|
34
|
+
vpm_and,
|
|
35
|
+
vpm_not,
|
|
36
|
+
vpm_or,
|
|
37
|
+
vpm_subtract,
|
|
38
|
+
vpm_xor,
|
|
39
|
+
)
|
|
40
|
+
from .controller import (
|
|
41
|
+
Decision,
|
|
42
|
+
Policy,
|
|
43
|
+
Signal,
|
|
44
|
+
Thresholds,
|
|
45
|
+
VPMController,
|
|
46
|
+
VPMRow,
|
|
47
|
+
default_controller,
|
|
48
|
+
)
|
|
49
|
+
from .critic import (
|
|
50
|
+
CriticAssessment,
|
|
51
|
+
CriticObservation,
|
|
52
|
+
build_critic_vpm,
|
|
53
|
+
critic_recipe,
|
|
54
|
+
observations_from_critic_lines,
|
|
55
|
+
)
|
|
56
|
+
from .edge import (
|
|
57
|
+
TopLeftGate,
|
|
58
|
+
TopLeftGateResult,
|
|
59
|
+
)
|
|
60
|
+
from .hierarchy import (
|
|
61
|
+
HierarchyLevel,
|
|
62
|
+
build_pyramid,
|
|
63
|
+
reduce_blocks,
|
|
64
|
+
)
|
|
65
|
+
from .learning import (
|
|
66
|
+
LearningAssessment,
|
|
67
|
+
LearningObservation,
|
|
68
|
+
VALID_SPLITS,
|
|
69
|
+
build_learning_vpm,
|
|
70
|
+
learning_recipe,
|
|
71
|
+
)
|
|
72
|
+
from .manifold import (
|
|
73
|
+
DecisionManifold,
|
|
74
|
+
ManifoldFrame,
|
|
75
|
+
ManifoldSummary,
|
|
76
|
+
ManifoldTransition,
|
|
77
|
+
build_decision_manifold,
|
|
78
|
+
find_inflection_points,
|
|
79
|
+
)
|
|
80
|
+
from .patterns import (
|
|
81
|
+
MatrixPatternDetector,
|
|
82
|
+
OBJECTIVE_IDS,
|
|
83
|
+
ObjectiveResult,
|
|
84
|
+
PATTERN_CHECKER_VERSION,
|
|
85
|
+
PATTERN_METHOD,
|
|
86
|
+
PatternAnalysisSpec,
|
|
87
|
+
PatternDiscoveryArtifacts,
|
|
88
|
+
PatternReport,
|
|
89
|
+
REPORT_METRICS,
|
|
90
|
+
build_discovered_view,
|
|
91
|
+
detect_patterns,
|
|
92
|
+
)
|
|
93
|
+
from .phos import (
|
|
94
|
+
PHOSResult,
|
|
95
|
+
guarded_pack_artifact,
|
|
96
|
+
image_entropy,
|
|
97
|
+
pack_artifact,
|
|
98
|
+
phos_sort_pack,
|
|
99
|
+
robust01,
|
|
100
|
+
to_square,
|
|
101
|
+
top_left_concentration,
|
|
102
|
+
)
|
|
103
|
+
from .policy_diagnostics import (
|
|
104
|
+
CRITICALITY_METRIC_ID,
|
|
105
|
+
DECISION_MARGIN_METRIC_ID,
|
|
106
|
+
with_q_diagnostics,
|
|
107
|
+
)
|
|
108
|
+
from .policy_properties import (
|
|
109
|
+
CHECKER_VERSION,
|
|
110
|
+
PolicyPropertyChecker,
|
|
111
|
+
PolicyPropertyResult,
|
|
112
|
+
PolicyPropertySpec,
|
|
113
|
+
PolicyPropertyViolation,
|
|
114
|
+
PolicyVerificationReport,
|
|
115
|
+
VERIFICATION_METRICS,
|
|
116
|
+
decode_key_value_row_id,
|
|
117
|
+
)
|
|
118
|
+
from .spatial import (
|
|
119
|
+
SpatialOptimizationResult,
|
|
120
|
+
SpatialOptimizer,
|
|
121
|
+
build_optimized_view,
|
|
122
|
+
optimize_view_profile,
|
|
123
|
+
)
|
|
124
|
+
from .training import (
|
|
125
|
+
TrainingCheckpoint,
|
|
126
|
+
TrainingProgressAssessment,
|
|
127
|
+
build_training_progress_vpm,
|
|
128
|
+
training_progress_recipe,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
__all__ = [
|
|
132
|
+
"CHECKER_VERSION",
|
|
133
|
+
"CRITICALITY_METRIC_ID",
|
|
134
|
+
"CriticAssessment",
|
|
135
|
+
"CriticObservation",
|
|
136
|
+
"DECISION_MARGIN_METRIC_ID",
|
|
137
|
+
"Decision",
|
|
138
|
+
"DecisionManifold",
|
|
139
|
+
"HierarchyLevel",
|
|
140
|
+
"LearningAssessment",
|
|
141
|
+
"LearningObservation",
|
|
142
|
+
"ManifoldFrame",
|
|
143
|
+
"ManifoldSummary",
|
|
144
|
+
"ManifoldTransition",
|
|
145
|
+
"MatrixPatternDetector",
|
|
146
|
+
"OBJECTIVE_IDS",
|
|
147
|
+
"ObjectiveResult",
|
|
148
|
+
"PATTERN_CHECKER_VERSION",
|
|
149
|
+
"PATTERN_METHOD",
|
|
150
|
+
"PHOSResult",
|
|
151
|
+
"PatternAnalysisSpec",
|
|
152
|
+
"PatternDiscoveryArtifacts",
|
|
153
|
+
"PatternReport",
|
|
154
|
+
"Policy",
|
|
155
|
+
"PolicyPropertyChecker",
|
|
156
|
+
"PolicyPropertyResult",
|
|
157
|
+
"PolicyPropertySpec",
|
|
158
|
+
"PolicyPropertyViolation",
|
|
159
|
+
"PolicyVerificationReport",
|
|
160
|
+
"REPORT_METRICS",
|
|
161
|
+
"Signal",
|
|
162
|
+
"SpatialOptimizationResult",
|
|
163
|
+
"SpatialOptimizer",
|
|
164
|
+
"TENSORBOARD_DEFAULT_ALIASES",
|
|
165
|
+
"TRACKIO_DEFAULT_ALIASES",
|
|
166
|
+
"Thresholds",
|
|
167
|
+
"TopLeftGate",
|
|
168
|
+
"TopLeftGateResult",
|
|
169
|
+
"TrainingCheckpoint",
|
|
170
|
+
"TrainingProgressAssessment",
|
|
171
|
+
"VALID_SPLITS",
|
|
172
|
+
"VERIFICATION_METRICS",
|
|
173
|
+
"VPMComparison",
|
|
174
|
+
"VPMController",
|
|
175
|
+
"VPMRow",
|
|
176
|
+
"WANDB_DEFAULT_ALIASES",
|
|
177
|
+
"as_field",
|
|
178
|
+
"build_critic_vpm",
|
|
179
|
+
"build_decision_manifold",
|
|
180
|
+
"build_discovered_view",
|
|
181
|
+
"build_learning_vpm",
|
|
182
|
+
"build_optimized_view",
|
|
183
|
+
"build_pyramid",
|
|
184
|
+
"build_training_progress_vpm",
|
|
185
|
+
"checkpoints_from_csv",
|
|
186
|
+
"checkpoints_from_export",
|
|
187
|
+
"checkpoints_from_json",
|
|
188
|
+
"checkpoints_from_jsonl",
|
|
189
|
+
"checkpoints_from_tensorboard_scalars",
|
|
190
|
+
"checkpoints_from_trackio_export",
|
|
191
|
+
"checkpoints_from_wandb_export",
|
|
192
|
+
"compare_fields",
|
|
193
|
+
"critic_recipe",
|
|
194
|
+
"decode_key_value_row_id",
|
|
195
|
+
"default_controller",
|
|
196
|
+
"detect_patterns",
|
|
197
|
+
"find_inflection_points",
|
|
198
|
+
"guarded_pack_artifact",
|
|
199
|
+
"image_entropy",
|
|
200
|
+
"learning_recipe",
|
|
201
|
+
"load_tracker_records",
|
|
202
|
+
"observations_from_critic_lines",
|
|
203
|
+
"optimize_view_profile",
|
|
204
|
+
"pack_artifact",
|
|
205
|
+
"phos_sort_pack",
|
|
206
|
+
"records_to_checkpoints",
|
|
207
|
+
"reduce_blocks",
|
|
208
|
+
"robust01",
|
|
209
|
+
"to_square",
|
|
210
|
+
"top_left_concentration",
|
|
211
|
+
"training_progress_recipe",
|
|
212
|
+
"vpm_add",
|
|
213
|
+
"vpm_and",
|
|
214
|
+
"vpm_not",
|
|
215
|
+
"vpm_or",
|
|
216
|
+
"vpm_subtract",
|
|
217
|
+
"vpm_xor",
|
|
218
|
+
"with_q_diagnostics",
|
|
219
|
+
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Dependency-light adapters from tracker exports to ZeroModel checkpoints."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from zeromodel.analysis.adapters.common import (
|
|
6
|
+
checkpoints_from_export,
|
|
7
|
+
load_tracker_records,
|
|
8
|
+
records_to_checkpoints,
|
|
9
|
+
)
|
|
10
|
+
from zeromodel.analysis.adapters.jsonl import (
|
|
11
|
+
checkpoints_from_csv,
|
|
12
|
+
checkpoints_from_json,
|
|
13
|
+
checkpoints_from_jsonl,
|
|
14
|
+
)
|
|
15
|
+
from zeromodel.analysis.adapters.tensorboard import checkpoints_from_tensorboard_scalars
|
|
16
|
+
from zeromodel.analysis.adapters.trackio import checkpoints_from_trackio_export
|
|
17
|
+
from zeromodel.analysis.adapters.wandb import checkpoints_from_wandb_export
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
"checkpoints_from_csv",
|
|
21
|
+
"checkpoints_from_export",
|
|
22
|
+
"checkpoints_from_json",
|
|
23
|
+
"checkpoints_from_jsonl",
|
|
24
|
+
"checkpoints_from_tensorboard_scalars",
|
|
25
|
+
"checkpoints_from_trackio_export",
|
|
26
|
+
"checkpoints_from_wandb_export",
|
|
27
|
+
"load_tracker_records",
|
|
28
|
+
"records_to_checkpoints",
|
|
29
|
+
]
|