phanerozoic / threshold-and

huggingface.co
Total runs: 16
24-hour runs: 0
7-day runs: 0
30-day runs: 2
Model's Last Updated: January 23 2026

Introduction of threshold-and

Model Details of threshold-and

threshold-and

A 2-of-2 threshold gate. Both inputs must be active to reach the firing threshold.

Circuit
    x   y
    │   │
    └─┬─┘
      ▼
  ┌───────┐
  │ w: 1,1│
  │ b: -2 │
  └───────┘
      │
      ▼
   AND(x,y)
Mechanism

Each input contributes +1 to the sum. The bias of -2 means exactly two contributions are required to reach zero:

x y sum output
0 0 -2 0
0 1 -1 0
1 0 -1 0
1 1 0 1

The bias acts as a vote threshold. With bias -2, you need 2 votes.

Parameters
Weights [1, 1]
Bias -2
Total 3 parameters
Optimality

Exhaustive enumeration of all 129 weight configurations at magnitudes 0-4 confirms this circuit is already at minimum magnitude (4) . There is exactly one valid configuration at magnitude 4, and no valid configurations exist below it.

Properties
  • Linearly separable (unlike XOR)
  • Commutative, associative, idempotent
  • Generalizes to n-input AND with weights all 1, bias -n
Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

def and_gate(x, y):
    inputs = torch.tensor([float(x), float(y)])
    return int((inputs * w['weight']).sum() + w['bias'] >= 0)
Files
threshold-and/
├── model.safetensors
├── model.py
├── config.json
└── README.md
License

MIT

Runs of phanerozoic threshold-and on huggingface.co

16
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
2
30-day runs

More Information About threshold-and huggingface.co Model

More threshold-and license Visit here:

https://choosealicense.com/licenses/mit

threshold-and huggingface.co

threshold-and huggingface.co is an AI model on huggingface.co that provides threshold-and's model effect (), which can be used instantly with this phanerozoic threshold-and model. huggingface.co supports a free trial of the threshold-and model, and also provides paid use of the threshold-and. Support call threshold-and model through api, including Node.js, Python, http.

phanerozoic threshold-and online free

threshold-and huggingface.co is an online trial and call api platform, which integrates threshold-and's modeling effects, including api services, and provides a free online trial of threshold-and, you can try threshold-and online for free by clicking the link below.

phanerozoic threshold-and online free url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-and

threshold-and install

threshold-and is an open source model from GitHub that offers a free installation service, and any user can find threshold-and on GitHub to install. At the same time, huggingface.co provides the effect of threshold-and install, users can directly use threshold-and installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

threshold-and install url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-and

Url of threshold-and

Provider of threshold-and huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 87
Run Growth: 37
Growth Rate: 42.53%
Updated:September 26 2026