Downloads · 30 days
13
27% of all-time downloads
phanerozoic/threshold-xnor3
threshold-xnor3 is a machine learning model from phanerozoic. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
3-input XNOR gate. Outputs 1 when an even number of inputs are 1 (0 or 2).
Downloads · 30 days
13
27% of all-time downloads
All-time downloads
48
Public
Parameters
18
960 B on disk
Likes
0
Public
Click a slice to open those files.
.py3.5 KB · 50%
From the Hugging Face model README
3-input XNOR gate. Outputs 1 when an even number of inputs are 1 (0 or 2).
Cascade: XNOR3(a,b,c) = XOR(XNOR(a,b), c)
a,b ──► XNOR ──► XOR ──► output
c ──┘
| Neurons | 6 |
| Layers | 4 |
| Parameters | 18 |
| Magnitude | 19 |
| a | b | c | output |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
from safetensors.torch import load_file
w = load_file('model.safetensors')
# See model.py for forward pass
MIT