phanerozoic / threshold-or

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

Introduction of threshold-or

Model Details of threshold-or

threshold-or

A 1-of-2 threshold gate. One active input is enough to fire.

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

Same weights as AND, but bias -1 instead of -2. The lower bar means a single vote suffices:

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

AND and OR are the same circuit with different thresholds. This is the essence of threshold logic: the bias determines how many inputs must agree.

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

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

Properties
  • Linearly separable
  • De Morgan dual: OR(x,y) = NOT(AND(NOT(x), NOT(y)))
  • Generalizes to n-input OR with weights all 1, bias -1
Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

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

MIT

Runs of phanerozoic threshold-or on huggingface.co

21
Total runs
0
24-hour runs
0
3-day runs
3
7-day runs
3
30-day runs

More Information About threshold-or huggingface.co Model

More threshold-or license Visit here:

https://choosealicense.com/licenses/mit

threshold-or huggingface.co

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

phanerozoic threshold-or online free

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

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

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

threshold-or install

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

threshold-or install url in huggingface.co:

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

Url of threshold-or

Provider of threshold-or huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 82
Run Growth: -14
Growth Rate: -37.84%
Updated:September 26 2026