Observed since 20 Oct, 19:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Multiplication-free lookup neural models with scalar, multi-input, HDC, and additive APIs
This directory contains an audited and extended version of the addernet 1.5.0
package. It keeps the original scalar, HDC, attention, boosting, clustering, and
additive APIs while adding safer native bindings and genuine multi-input models.
AdderNetLayer.fit(...): direct O(n + range) scalar LUT fitting.AdderNetLayer.partial_fit(...): blended streaming updates.close() and context-manager lifecycle..npz saves.AdderNetMultiInputLayer: N inputs, one or more outputs, additive and pairwise LUTs.AdderNetRegressor: alias for the multi-input regression model.AdderNetClassifier: classification wrapper with arbitrary class labels.UniformQuantizer with feature-shape validation and inverse transform.import numpy as np
from addernet import AdderNetMultiInputLayer
x = np.arange(32)
y = np.arange(32)
xx, yy = np.meshgrid(x, y, indexing="ij")
X = np.column_stack([xx.ravel(), yy.ravel()])
target = (xx * yy).ravel()
model = AdderNetMultiInputLayer(bins=32, interactions="auto")
model.fit(X, target)
print(model.predict(7, 9)) # approximately 63
print(model.predict_batch([[2, 3], [4, 5]]))
python -m pip install -e .
addernet-selftest
python -m pytest
Set ADDERNET_OPENMP=1 before building only after benchmarking on the target
hardware. The default single-threaded native loop is often faster for this LUT.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.6.0 | 19 Jul 2026 | 6 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 19:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e4ed78b18b97368d96f1d4ced94f8fc94b9c452770614a8e8f77560e822322ad