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
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.
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:
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.