Skip to main content

ZeroModel Core

zeromodel is the lightweight core distribution for ZeroModel 1.0.13. It owns the zeromodel.core import namespace.

Core includes deterministic VPM artifact construction, stable artifact and matrix identities, basic views, .vpm bundle serialization, lightweight PNG/SVG rendering, exact bounded policy lookup, and Lua export for compiled policy plans.

Core deliberately excludes analysis, observation contracts, vision providers, video domains, SQLAlchemy persistence, benchmarks, and research evidence tooling. Those live in separate distributions.

Install

pip install zeromodel

Runtime dependency: NumPy.

Artifact Example

from zeromodel.core import LayoutRecipe, ScoreTable, build_vpm

table = ScoreTable(
    values=[[0.9, 0.1], [0.4, 0.8]],
    row_ids=["candidate-a", "candidate-b"],
    metric_ids=["quality", "risk"],
)
recipe = LayoutRecipe.from_dict(
    {
        "version": "vpm-layout/0",
        "name": "quality-first",
        "row_order": {
            "kind": "lexicographic",
            "keys": [{"metric_id": "quality", "direction": "desc"}],
            "tie_break": "row_id",
        },
        "column_order": {"kind": "source"},
        "normalization": {"kind": "per_metric_minmax", "clip": True},
    }
)
artifact = build_vpm(table, recipe)
print(artifact.artifact_id)

Policy Lookup Example

from zeromodel.core import VPMPolicyLookup

reader = VPMPolicyLookup(artifact, action_metric_ids=["quality", "risk"])
decision = reader.read("candidate-a")
print(decision.action, decision.value)

Use zeromodel.analysis, zeromodel.observation, zeromodel.vision, zeromodel.video, and zeromodel.persistence.sqlalchemy for the higher-level packages.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zeromodel-1.2.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file zeromodel-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: zeromodel-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.4

File hashes

Hashes for zeromodel-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aef4e8185cea3134ef7accfa887c5dd671f7ebe6a29c331d6306241640565113
MD5 31f3a0ce96cd5757f6720d8522ef8811
BLAKE2b-256 5628d66d363b20e589740ef3873bbbe7ff11d61127a651879b88bddaca4853c4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 file

1.1.0

1 file

1.0.12

2 files

1.0.11

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.2

2 files

1.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page