phanerozoic / threshold-isone4

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

Introduction of threshold-isone4

Model Details of threshold-isone4

threshold-isone4

Check if 4-bit input equals 1 (binary 0001).

Function

isone4(a3, a2, a1, a0) = 1 if input == 1, else 0

Where input = 8 a3 + 4 a2 + 2*a1 + a0

Truth Table
a3 a2 a1 a0 decimal out
0 0 0 0 0 0
0 0 0 1 1 1
0 0 1 0 2 0
0 0 1 1 3 0
... ... ... ... ... 0
Architecture

Single neuron pattern matcher for binary 0001:

  • Weights: [-1, -1, -1, +1]
  • Bias: -1

Fires when: -a3 - a2 - a1 + a0 - 1 >= 0

This requires a3=0, a2=0, a1=0, a0=1 (exactly the pattern 0001).

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 isone4(a3, a2, a1, a0):
    inp = torch.tensor([float(a3), float(a2), float(a1), float(a0)])
    return int((inp @ w['neuron.weight'].T + w['neuron.bias'] >= 0).item())

print(isone4(0, 0, 0, 1))  # 1 (input = 1)
print(isone4(0, 0, 1, 0))  # 0 (input = 2)
print(isone4(0, 0, 0, 0))  # 0 (input = 0)
License

MIT

Runs of phanerozoic threshold-isone4 on huggingface.co

17
Total runs
0
24-hour runs
3
3-day runs
8
7-day runs
8
30-day runs

More Information About threshold-isone4 huggingface.co Model

More threshold-isone4 license Visit here:

https://choosealicense.com/licenses/mit

threshold-isone4 huggingface.co

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

phanerozoic threshold-isone4 online free

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

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

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

threshold-isone4 install

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

threshold-isone4 install url in huggingface.co:

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

Url of threshold-isone4

threshold-isone4 huggingface.co Url

Provider of threshold-isone4 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 36
Run Growth: -13
Growth Rate: -36.11%
Updated:April 28 2026