Skip to main content

ApexLab

ApexLab is a lean standalone Python package for practical machine-learning utilities.

The current public package now spans a lean Leg 1 core plus an expanded Leg 2 analysis/model/reporting lane. ApexLab currently focuses on:

  • simplex-constrained regression via ApexRegressor
  • statistical comparison helpers (Mann-Whitney U, KS two-sample, Welch t-test, Cohen's d)
  • lightweight OLS and binary logistic regression helpers
  • deterministic anomaly detection via IsolationForest
  • supervised binary classification via DecisionTreeClassifier and RandomForestClassifier
  • deterministic dataset splitting with optional stratification
  • regression and classification metrics
  • threshold selection and anomaly-style score evaluation
  • lightweight JSON/Markdown report emission
  • lite CLI support for apexlab compare and apexlab report

The design goal is simple: ship a small, coherent toolkit first, then broaden it in later legs without dragging in a kitchen sink of dependencies. At the moment, numpy is the only non-stdlib runtime dependency.

Current shipped-version target: 1.2.0.

What ApexLab is for

ApexLab 1.2.0 is aimed at small, reproducible ML workflows where you want lightweight numerical tooling without depending on a full framework stack. The current release is especially suited to:

  • constrained linear modeling experiments
  • distribution-comparison and effect-size review
  • lightweight explanatory regression analysis
  • anomaly-oriented score review with a package-owned isolation forest
  • deterministic supervised classification experiments using package-owned tree and forest models
  • deterministic train/test split generation
  • compact evaluation and reporting flows
  • threshold-based score review for anomaly-style or binary decisions

Current status

The repository is past pure scaffolding and now contains working Leg 1 modules, runnable examples, focused tests, and validated source/wheel build artifacts.

Install

For development from projects/apexlab/:

  • pip install -e .

For a release artifact install:

  • pip install dist/apexlab-1.2.0-py3-none-any.whl

The wheel and source distribution for 1.2.0 should be treated as the active release artifact lane.

Quick start

After installation:

  • python examples/simplex_regression_demo.py
  • python examples/evaluation_demo.py

Or, after installing the package entry point:

  • apexlab compare --sample-a 1,2,3 --sample-b 4,5,6 --out-dir out
  • apexlab report --input out/compare_report.json --out-dir out/rerendered

The first demo trains a simplex-constrained regressor and prints learned weights plus a convergence summary. The second demo computes metrics, evaluates a thresholded score surface, and writes paired JSON/Markdown report output.

The evaluation demo now also acts as the canonical field test surface for the current Leg 1 + Leg 2 lite package lane.

Quick examples

From projects/apexlab/:

  • python examples/simplex_regression_demo.py
  • python examples/evaluation_demo.py

Representative demo output includes:

  • simplex demo learning weights close to [0.6, 0.3, 0.1]
  • evaluation demo producing regression metrics, classification accuracy, comparison artifacts, and paired JSON/Markdown report files
  • successful apexlab compare and apexlab report execution during the field test

Package lanes

  • src/apexlab/models/ — constrained model surfaces
  • src/apexlab/datasets/ — deterministic data split helpers
  • src/apexlab/evaluation/ — metrics, thresholds, and report generation
  • src/apexlab/diagnostics/ — training-history summaries
  • src/apexlab/utils/ — small reusable helpers
  • tests/ — focused behavior tests
  • examples/ — runnable demos using current package APIs

Dependency posture

ApexLab currently avoids heavyweight ML frameworks. There is no scikit-learn runtime dependency in 1.2.0.

Release posture

The 1.2.0 lane currently includes:

  • passing focused test coverage
  • comparison, regression, CLI-lite, and reporting expansion surfaces
  • package-owned IsolationForest, DecisionTreeClassifier, and RandomForestClassifier surfaces
  • CLI version-flag support via apexlab --version and apexlab -v
  • reference validation against external baselines
  • confirmed field-test execution via examples/evaluation_demo.py
  • a release workflow that can skip already-published files during reruns

More detail

  • docs/APEXLAB_TOOLKIT_AUTHORITATIVE_SCHEMATIC.md — authoritative package definitions
  • docs/API_OVERVIEW.md — current public Leg 1 API overview
  • docs/validation/REFERENCE_VALIDATION_20260324.md — public validation summary for the current Leg 2 analytical lane
  • docs/INITIAL_RELEASE_SCOPE.md — release-shape summary
  • docs/RELEASE_NOTES_DRAFT.md — current release notes draft for 1.2.0
  • docs/PUBLISH_CHECKLIST.md — compact pre-publish checklist

Metadata

Release files for apexlab 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apexlab 1.2.0
File Size Uploaded Provenance
apexlab-1.2.0.tar.gz 60.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for apexlab 1.2.0
File Interpreter ABI Platform
apexlab-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 92.2 kB

Release files / apexlab-1.2.0.tar.gz

Download URL apexlab-1.2.0.tar.gz
Size 60.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0681f4dc171f9dc91957ed900a65c27a19af9d8afdc9f9b3b76b163f99b8c4f6
BLAKE2b-256 checksum
How to use checksums
f31cdc48651f908ad82133130878394514ce6607c327182bf0e7aed0a543deb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

Release files / apexlab-1.2.0-py3-none-any.whl

Download URL apexlab-1.2.0-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b83200fb54669aca7f0ce16be4f1c524721bc2026eb54bef6e792ba4424bf0ce
BLAKE2b-256 checksum
How to use checksums
e66182e6edaa5ebad76df2a0aad8b981d88d04c7eb4b05c0892dc5f7387807c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

Security for apexlab 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apexlab-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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