Skip to main content
Pre-release

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

omnibias-keras

Make operators part of the layer. A Keras model can consume analytic derivative outputs.

Make operators part of the layer.

Static poster · Narrow-screen animation · How this visual is computed

A Keras tensor enters an operator-aware layer; a value or analytic activation derivative leaves with the same channel organization. Model builders can integrate the layer using their selected Keras backend and serialization workflow.

The animation uses computed outputs to explain this package. Frame transitions are illustrative unless a training step is explicitly identified; it is not a performance comparison.

API reference · Source · Tests · Talk to Derivon

The mathematical connection

OMBU encodes bias collapse: a normalized pack of nearby activations converges to an activation derivative, which the analytic path evaluates directly. Its finite-bias and derivative contracts should be chosen explicitly. Temperature collapse is not a property of every Keras layer; smooth decision models need their own gates and schedule.

Run this README

The examples use omnibias-keras[torch] on Python >=3.10. Their installed-wheel profile selects runtime features, not an editable workspace. Install the prepared prerelease from PyPI:

python -m pip install --pre "omnibias-keras[torch]==0.0.2a1"

For local development before publication, build and test the coordinated wheelhouse using the release guide. The package's wheel profile executes the examples below outside the source checkout.

Existing published consumers may need historical primitive versions; see the compatibility policy.

Why this package exists

Keep the Keras model-building workflow while replacing supported activation derivatives with shared analytic formulas. Multi-bias units and operator blocks let an activation carry a selected derivative or other supported operator into a trainable layer. The mathematical coefficients come from core; tensor execution follows the chosen Keras backend.

What you can build

  • A shared activation registry through keras.ops.
  • OperatorMultiBiasUnit / OMBU and operator-typed blocks.
  • Dense and convolutional adapters plus identity-initialized and growable units.

Choose this package for an existing Keras stack that needs activation-level operators. Choose the dedicated Torch or JAX distributions for the network-level directional and mixed jet APIs. A Keras backend choice is an installation and process-start decision, not something to switch after importing the library.

A working example

import os
os.environ.setdefault("KERAS_BACKEND", "torch")
from keras import ops
from omnibias.keras import OMBU

unit = OMBU(num_channels=2, K=3, base="tanh")
z = ops.convert_to_tensor([[0.2, -0.3]])
value = unit(z)
second = unit.analytic_derivative(z, order=2)
assert tuple(value.shape) == tuple(second.shape) == (1, 2)

Choose the right contract

Set KERAS_BACKEND before the first Keras import. Dtypes and gradients follow that backend, and serialization should be checked in the environment used for deployment. Activation-level derivative support does not imply that every arbitrary Keras model has an automatic whole-network jet conversion.

Explore and validate

The API guide contains the generated module/export inventory. Use it to find the focused implementation rather than guessing a symbol from another package. The capability map connects the primitives to larger scientific workflows.

From the main repository, run the package’s regression suite:

uv run pytest packages/omnibias-keras/tests -q

License

Apache-2.0. See LICENSE and the licensing policy.

Metadata

Release files for omnibias-keras 0.0.2a1

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

Source distribution (sdist)

Source distribution for omnibias-keras 0.0.2a1
File Size Uploaded Provenance Actions
omnibias_keras-0.0.2a1.tar.gz 46.5 kB With provenance Details for omnibias_keras-0.0.2a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omnibias-keras 0.0.2a1
File Interpreter ABI Platform Actions
omnibias_keras-0.0.2a1-py3-none-any.whl Python 3 none any Details for omnibias_keras-0.0.2a1-py3-none-any.whl

Total release size: 98.1 kB

Release files / omnibias_keras-0.0.2a1.tar.gz

Download URL omnibias_keras-0.0.2a1.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ebac5df09dd39090bc2c3a141f25cf0514e282b87b01a02e9dc0fda0bb965a1b
BLAKE2b-256 checksum
How to use checksums
905b21efef81a0a3ccc21d4781ef5f6a158743db2184d5ae8d3c7ca4be9c137a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Oct 4, 2026.

Transparency log

Release files / omnibias_keras-0.0.2a1-py3-none-any.whl

Download URL omnibias_keras-0.0.2a1-py3-none-any.whl
Size 51.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff087e1d51c85e3a9e8e11880ca6a476ac93f036c079c07c80fab21887a27a50
BLAKE2b-256 checksum
How to use checksums
022e17cefc80d78df884e0313f51b2dad2ce4c15ae784f1d95bc5af3299b3e99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Oct 4, 2026.

Transparency log

Security for omnibias-keras 0.0.2a1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for omnibias_keras-0.0.2a1.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 Oct 4, 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.

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

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