Skip to main content
Pre-release

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

omnibias-keras

Keras 3 unified backend for omnibias.

The same code runs on TensorFlow, JAX, or PyTorch because every kernel is written against keras.ops. The closed-form n-th derivative towers (sigma^(n)(z)) use the same polynomial coefficients as omnibias-torch and omnibias-jax — they are imported from the shared pure-Python omnibias.core.polynomials, so the closed-form activation / derivative math is bit-identical across backends by construction. End-to-end layer numerics otherwise follow the selected Keras backend.

Install

pip install omnibias-keras[jax]         # or [tf] / [torch]

Select the Keras backend before importing keras:

export KERAS_BACKEND=jax                 # tensorflow | jax | torch

or in Python:

import os
os.environ["KERAS_BACKEND"] = "jax"
import keras  # noqa: E402

Quickstart

import keras
from omnibias.keras import OMBU, OperatorBlock, cmbDense

# Trainable K-bias scalar operator (drop-in for an activation).
ombu = OMBU(num_channels=4, K=2, base="tanh")
y = ombu(keras.ops.zeros((8, 4)))

# Typed operator: closed-form 2nd derivative of the base activation.
lap = OperatorBlock(channels=4, op="laplacian", base="gaussian")

# Dense + inline operator, a drop-in for keras.layers.Dense.
model = keras.Sequential([
    keras.layers.Input(shape=(4,)),
    cmbDense(units=64, op="identity", base="tanh"),
    cmbDense(units=1, op="identity", base="tanh"),
])

Public API

Symbol Role
OperatorMultiBiasUnit (OMBU) trainable K-bias scalar operator
GrowableOperatorMultiBiasUnit (GrowableOMBU) OMBU with a growable K
OperatorBlock typed wrapper: identity / grad / laplacian / derivative / band / integral
cmbDense, cmbConv1D, cmbConv2D drop-in Dense / Conv1D / Conv2D with an inline operator
KGrowthScheduler plateau-triggered K-growth controller
get_activation, list_activations, register_activation, is_registered activation registry

Activation dictionary

Same names as the other backends: sigmoid, tanh, softplus, gaussian, exp, relu, silu, gelu, huber, arctan, log1pu2, sin, cos, sinh, cosh, tan, cot, coth, sech, log_cosh, softabs, smooth_sign, mish.

License

Apache-2.0. See LICENSE and ../../LICENSING.md. You never need a commercial licence for this package.

Release files for omnibias-keras 0.0.1a1

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.1a1
File Size Uploaded
omnibias_keras-0.0.1a1.tar.gz 44.5 kB Details

Built distribution (wheel)

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

Total release size: 95.2 kB

Release files / omnibias_keras-0.0.1a1.tar.gz

Download URL omnibias_keras-0.0.1a1.tar.gz
Size 44.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4ffc886b9c3bd2635a098e65f8342f9f9b8aedeb2fe55f2d826ba33b97118638
BLAKE2b-256 checksum
How to use checksums
4949afe7592144ad31f7acb2f1d62a92c9fc8bc519cea0ec086495bb16724c8f
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 Sep 13, 2026.

Transparency log

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

Download URL omnibias_keras-0.0.1a1-py3-none-any.whl
Size 50.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3210fdc4f2457ffc815f26b9c895f82fc11011add7152df112d39b0bf6a83343
BLAKE2b-256 checksum
How to use checksums
48811f903a2bec2161b229335fb39cb0489fe7481e189e78ec7fcceb41cd6109
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 Sep 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1a1 This release

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