Downloads · 30 days
4
9% of all-time downloads
phanerozoic/threshold-xor4-mag21
threshold-xor4-mag21 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.
4-input XOR using cascade architecture with mag-7 XOR blocks.
Downloads · 30 days
4
9% of all-time downloads
All-time downloads
45
Public
Parameters
27
1.4 KB on disk
Likes
0
Public
Click a slice to open those files.
.py2.4 KB · 33%
From the Hugging Face model README
4-input XOR using cascade architecture with mag-7 XOR blocks.
Note: A flat architecture may achieve lower magnitude. Architecture search not yet performed.
a b c d
│ │ │ │
└──┴──┐ │ │
▼ │ │
┌─────┐ │ │
│XOR-7│ │ │
└──┬──┘ │ │
└──┬─┘ │
▼ │
┌─────┐ │
│XOR-7│ │
└──┬──┘ │
└────┬────┘
▼
┌─────┐
│XOR-7│
└──┬──┘
▼
XOR4(a,b,c,d)
| Neurons | 9 (3 per XOR) |
| Layers | 6 |
| Parameters | 27 |
| Magnitude | 21 (3 × 7) |
| Version | Magnitude | Architecture |
|---|---|---|
| xor4 (base) | 30 | Cascade, original XOR |
| xor4-mag21 | 21 | Cascade, mag-7 XOR |
from safetensors.torch import load_file
w = load_file('model.safetensors')
# See model.py for implementation
MIT