This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 2.0.1 instead.
Reason given by maintainers: AI-slop
Dualing
Dualing provides small TensorFlow building blocks for contrastive, cross-entropy, and triplet Siamese networks.
Install
uv add dualing
Dualing requires Python 3.11 or newer.
Quick start
import numpy as np
from dualing import MLP, ContrastiveSiamese, balanced_pair_dataset
samples = np.random.default_rng(0).normal(size=(100, 16))
labels = np.repeat([0, 1], 50)
dataset = balanced_pair_dataset(samples, labels, n_pairs=100, batch_size=16)
model = ContrastiveSiamese(MLP((32, 8)))
model.compile(optimizer="adam")
model.fit(dataset, epochs=5)
Dataset helpers return native tf.data.Dataset objects and all models use
standard Keras compile, fit, and evaluate behavior.
Development
uv sync
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run --group docs sphinx-build -W -b html docs docs/_build/html
uv build
API documentation is available at dualing.readthedocs.io.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dualing-2.0.0.tar.gz.
File metadata
- Download URL: dualing-2.0.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b3315052c74013b51e32923e403bfc57cf69a4f1a11770f01109bc557f8ebda
|
|
| MD5 |
22d37f7792651819878927872b0483a4
|
|
| BLAKE2b-256 |
52b983f00607cc070edbb4c7da2e0d00dc6e1d91c2dd4ebf640f707f42f743a6
|
File details
Details for the file dualing-2.0.0-py3-none-any.whl.
File metadata
- Download URL: dualing-2.0.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c401fe4d56f0fe6a1cabc2ba5231badb5981de75841d04204cb8dcda967a8ea9
|
|
| MD5 |
3d1c45d940215bc2d1dfe59ed15a7cad
|
|
| BLAKE2b-256 |
4769c9ab300571a01bfdc23de475b5dceef2b9726f4ed86652636c75c78e0903
|