phanerozoic / threshold-atmost2outof3

huggingface.co
Total runs: 13
24-hour runs: -1
7-day runs: -1
30-day runs: 11
Model's Last Updated: January 24 2026

Introduction of threshold-atmost2outof3

Model Details of threshold-atmost2outof3

threshold-atmost2outof3

At most 2 of 3 inputs high. Equivalent to 3-input NAND gate.

Function

atmost2outof3(a, b, c) = 1 if (a + b + c) <= 2, else 0

Equivalently: NAND(a, b, c) = NOT(a AND b AND c)

Truth Table
a b c sum out
0 0 0 0 1
0 0 1 1 1
0 1 0 1 1
0 1 1 2 1
1 0 0 1 1
1 0 1 2 1
1 1 0 2 1
1 1 1 3 0
Architecture

Single neuron: weights [-1, -1, -1], bias 2

Fires when: -a - b - c + 2 >= 0, i.e., sum <= 2

Parameters
Inputs 3
Outputs 1
Neurons 1
Layers 1
Parameters 4
Magnitude 5
Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

def atmost2of3(a, b, c):
    inp = torch.tensor([float(a), float(b), float(c)])
    return int((inp @ w['neuron.weight'].T + w['neuron.bias'] >= 0).item())

print(atmost2of3(1, 1, 0))  # 1 (sum=2)
print(atmost2of3(1, 1, 1))  # 0 (sum=3)
License

MIT

Runs of phanerozoic threshold-atmost2outof3 on huggingface.co

13
Total runs
-1
24-hour runs
0
3-day runs
-1
7-day runs
11
30-day runs

More Information About threshold-atmost2outof3 huggingface.co Model

More threshold-atmost2outof3 license Visit here:

https://choosealicense.com/licenses/mit

threshold-atmost2outof3 huggingface.co

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

threshold-atmost2outof3 huggingface.co Url

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

phanerozoic threshold-atmost2outof3 online free

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

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

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

threshold-atmost2outof3 install

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

threshold-atmost2outof3 install url in huggingface.co:

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

Url of threshold-atmost2outof3

threshold-atmost2outof3 huggingface.co Url

Provider of threshold-atmost2outof3 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 82
Run Growth: 49
Growth Rate: 59.04%
Updated:September 26 2026