phanerozoic / threshold-atmost1outof4

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

Introduction of threshold-atmost1outof4

Model Details of threshold-atmost1outof4

threshold-atmost1outof4

At most 1 of 4 inputs high.

Function

atmost1outof4(a, b, c, d) = 1 if (a + b + c + d) <= 1, else 0

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

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

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

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

w = load_file('model.safetensors')

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

print(atmost1of4(0, 0, 0, 1))  # 1 (sum=1)
print(atmost1of4(0, 0, 1, 1))  # 0 (sum=2)
License

MIT

Runs of phanerozoic threshold-atmost1outof4 on huggingface.co

11
Total runs
1
24-hour runs
6
3-day runs
6
7-day runs
9
30-day runs

More Information About threshold-atmost1outof4 huggingface.co Model

More threshold-atmost1outof4 license Visit here:

https://choosealicense.com/licenses/mit

threshold-atmost1outof4 huggingface.co

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

threshold-atmost1outof4 huggingface.co Url

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

phanerozoic threshold-atmost1outof4 online free

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

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

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

threshold-atmost1outof4 install

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

threshold-atmost1outof4 install url in huggingface.co:

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

Url of threshold-atmost1outof4

threshold-atmost1outof4 huggingface.co Url

Provider of threshold-atmost1outof4 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 36
Run Growth: -8
Growth Rate: -21.62%
Updated:April 28 2026