Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

UC_AutoMaiL

UC_AutoMaiL is a Python package for comparing machine learning models and evaluating the uncertainty of their scores. It started as DIY AutoML. It saves data checks, evaluation splits, model selection, predictions, held-out scores, and their uncertainty in files you can inspect after a run.

Try the alpha

Use Python 3.12 or later and activate a fresh virtual environment. Place the 0.4.1a2 wheel in your working directory and install it with dependencies from PyPI. Wheel, release notes, and TestPyPI instructions

python -m pip --isolated install --index-url https://pypi.org/simple/ ./uc_automail-0.4.1a2-py3-none-any.whl
python -m pip check
uc-automail --version
uc-automail --help

Import the public Python API as uc_automail.

import uc_automail as uc_al

print(uc_al.__version__)

To try classification, download the Iris sample CSV and save it as iris.csv.

uc-automail audit-data --csv iris.csv --target target --output runs/iris-audit
uc-automail select --csv iris.csv --target target --progress both --output runs/iris-select
uc-automail report --run runs/iris-select --charts detail --output runs/iris-report

Open runs/iris-report/report_with_figures.xlsx for the comparison, held-out scores, and charts of cross-validation scores and progress. The Progress sheet and progress.jsonl retain events from model selection. arrays.npz stores the splits and predictions, and manifest.json records the settings and file hashes. Choose new output paths when repeating commands.

For supervised classification, select accepts per-model tree depth limits such as --decision-tree-max-depth 3 and CPU controls such as --cpu-threads 2 --forest-jobs 2. To prepare a smaller dataset, extract-data --source iris.csv --recipe columns.json --output runs/iris-extract reads an ordered columns array and an optional format from JSON. CSV is the default. Install uc-automail[storage] for Parquet and DuckDB input or output.

The base install includes tabular evaluation, Excel reports, state estimation, and graph node classification. The storage extra adds Parquet and DuckDB support. Use the dl extra for TensorFlow, dl-torch for PyTorch, or dl-both to compare them with uc-automail compare-dl-backends. The Japanese Windows preview uses Tcl/Tk and a desktop display.

Backtest a time series

Compare several forecast steps over chronological holdouts. This example uses a synthetic series with a four-observation cycle.

import numpy as np
import pandas as pd
import uc_automail as uc_al

values = np.tile([10., 20., 30., 40.], 40)
pd.DataFrame({"step": np.arange(len(values)), "value": values}).to_csv("series.csv", index=False)
output = uc_al.backtest_horizons_csv(
    "series.csv", "runs/series-demo",
    time_column="step", value_column="value",
    horizons=(1, 3, 5), window_rows=24, windows=3,
    models=("seasonal", "kalman"), season_length=4,
    interval_method="adaptive", selection_tolerance=0.02,
)
print(output / "report.xlsx")

Aggregate reports RMSE, empirical coverage, and mean interval width by forecast step. With interval_method="adaptive", Interval_Evidence records the completed forecast paths used for calibration. selection_tolerance=0.02 adds the Selection_Band sheet with a 2% relative RMSE tolerance, the retained candidates, and the selected model. Coverage changed in both directions in the release benchmarks. Time-series reference and evaluation results

State estimation and coordinates

For streaming observations, construct an EKF once and pass one observation vector at a time. This example uses a one-dimensional state and a known increment at each step.

import uc_automail as uc_al

settings = dict(
    initial_mean=[0.0], initial_covariance=[[1.0]],
    transition=lambda state, step, control: state + control,
    transition_jacobian=lambda state, step, control: [[1.0]],
    measurement=lambda state, step: state,
    measurement_jacobian=lambda state, step: [[1.0]],
    process_covariance=[[0.01]], observation_covariance=[[0.1]],
)
observations = [[1.1], [2.0], [float("nan")], [3.9]]
tracker = uc_al.ExtendedKalmanFilter(**settings)
for observation in observations:
    estimate = tracker.step(observation, control=1.0)
    print(estimate["filtered"])

batch = uc_al.extended_kalman_filter(observations, controls=[1.0] * len(observations), **settings)
diagnostics = uc_al.filter_diagnostics(batch, observations, max_lag=2)
print(diagnostics["autocorrelation_pairs"], diagnostics["ljung_box_status"])

filter_diagnostics accepts either EKF or UKF batch output. It reports the normalized innovation, NIS, autocorrelations and a per-channel Ljung–Box status. The white-noise reference band and the lags outside it are given for complete channels with varying innovations. When the true state is available, uc_al.evaluate_filter_consistency(truth, result) returns pull summaries and NEES. Reported covariance reflects the transition and measurement models and the supplied noise covariances. State-estimation guide

uc_automail.physics provides geodetic, ECEF, and ENU coordinate transforms and a weighted least-squares pseudorange solver.

from uc_automail import physics

reference = [36.1, 140.08, 45.0]  # latitude and longitude in degrees, ellipsoidal height in meters
ecef_m = physics.geodetic_to_ecef(reference, ellipsoid=physics.GRS80)
print(physics.ecef_to_geodetic(ecef_m, ellipsoid=physics.GRS80))

Existing DIY AutoML examples can still use the diy_automl import and the diy-automl command. The UC_AutoMaiL Python package is available under the MIT License. License and scope

English documentation · Iris walkthrough · Forecasting examples · Report an issue

Metadata

Release files for UC-AutoMaiL 0.4.1a2

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

Source distribution (sdist)

Source distribution for UC-AutoMaiL 0.4.1a2
File Size Uploaded Provenance Actions
uc_automail-0.4.1a2.tar.gz 187.0 kB Without provenance Details for uc_automail-0.4.1a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for UC-AutoMaiL 0.4.1a2
File Interpreter ABI Platform Actions
uc_automail-0.4.1a2-py3-none-any.whl Python 3 none any Details for uc_automail-0.4.1a2-py3-none-any.whl

Total release size: 405.4 kB

Release files / uc_automail-0.4.1a2.tar.gz

Download URL uc_automail-0.4.1a2.tar.gz
Size 187.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7de6af6e217dccba122327ce362a34861cb23ea85ca85a408ddde09eedd88782
BLAKE2b-256 checksum
How to use checksums
8c59b264fdb358e6d5e86dc840b8a3c2ccc0de0263ead653166bc830c443a483
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Release files / uc_automail-0.4.1a2-py3-none-any.whl

Download URL uc_automail-0.4.1a2-py3-none-any.whl
Size 218.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb78415c0ceb37307ae18912c3577ef5010cb4086fdc8af02118573c6335a658
BLAKE2b-256 checksum
How to use checksums
5903a3f50c824e016c4ddafe74392216321d34bbeac88b14085a021c14341f29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.17

Security for UC-AutoMaiL 0.4.1a2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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