Update README.md
Browse files
README.md
CHANGED
|
@@ -17,32 +17,46 @@ tags:
|
|
| 17 |
- **f** = B (Boolean)
|
| 18 |
- **c** = 3 (third model in the series)
|
| 19 |
|
|
|
|
| 20 |
It takes two numbers and predicts one of three relations:
|
| 21 |
|
| 22 |
- `>` (greater)
|
|
|
|
| 23 |
- `=` (equal)
|
|
|
|
| 24 |
- `<` (less)
|
| 25 |
|
|
|
|
| 26 |
Also supports string input in the format `x?y`.
|
| 27 |
|
| 28 |
## Model Details
|
| 29 |
|
| 30 |
-
| Property | Value
|
| 31 |
-
|-----------------------|------------------------|
|
| 32 |
-
| Parameters | ~1731
|
| 33 |
| Input | two floats `(a, b)` or string `"a?b"` |
|
| 34 |
-
| Output | `<`, `=`, or `>`
|
| 35 |
| Architecture | small MLP (input features: `a, b, a-b`) |
|
| 36 |
-
| Framework | PyTorch + Safetensors
|
| 37 |
-
| License | CC-BY-SA-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
## Intended Use
|
| 40 |
|
| 41 |
- Extremely lightweight number comparison
|
|
|
|
| 42 |
- Edge / constrained environments
|
|
|
|
| 43 |
- Educational / experimental micro-models
|
|
|
|
| 44 |
- Fun baseline for boolean tasks
|
| 45 |
|
|
|
|
| 46 |
**Not intended for** high-precision scientific computing or production systems that require perfect floating-point equality handling.
|
| 47 |
|
| 48 |
## Example inference script
|
|
@@ -100,24 +114,26 @@ class PizdecB3(nn.Module):
|
|
| 100 |
model = PizdecB3.from_pretrained("pizdecB3")
|
| 101 |
|
| 102 |
# Usage
|
| 103 |
-
print(model.predict(10, 5))
|
| 104 |
-
print(model.predict(3, 3))
|
| 105 |
-
print(model.predict_str("8?2"))
|
|
|
|
| 106 |
```
|
| 107 |
|
| 108 |
## Known Limitations
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
|
| 116 |
## Files
|
| 117 |
|
| 118 |
-
|
| 119 |
-
|
|
|
|
| 120 |
|
| 121 |
---
|
| 122 |
|
| 123 |
-
Part of the experimental **RaspizdAI** micro-model collection.
|
|
|
|
| 17 |
- **f** = B (Boolean)
|
| 18 |
- **c** = 3 (third model in the series)
|
| 19 |
|
| 20 |
+
|
| 21 |
It takes two numbers and predicts one of three relations:
|
| 22 |
|
| 23 |
- `>` (greater)
|
| 24 |
+
|
| 25 |
- `=` (equal)
|
| 26 |
+
|
| 27 |
- `<` (less)
|
| 28 |
|
| 29 |
+
|
| 30 |
Also supports string input in the format `x?y`.
|
| 31 |
|
| 32 |
## Model Details
|
| 33 |
|
| 34 |
+
| Property | Value |
|
| 35 |
+
|-----------------------|----------------------------------------|
|
| 36 |
+
| Parameters | ~1731 |
|
| 37 |
| Input | two floats `(a, b)` or string `"a?b"` |
|
| 38 |
+
| Output | `<`, `=`, or `>` |
|
| 39 |
| Architecture | small MLP (input features: `a, b, a-b`) |
|
| 40 |
+
| Framework | PyTorch + Safetensors |
|
| 41 |
+
| License | CC-BY-SA-4.0 |
|
| 42 |
+
|
| 43 |
+
## Training Dynamics
|
| 44 |
+
|
| 45 |
+
Here is the visualization of the model's training metrics (Loss and Accuracy):
|
| 46 |
+
|
| 47 |
+

|
| 48 |
|
| 49 |
## Intended Use
|
| 50 |
|
| 51 |
- Extremely lightweight number comparison
|
| 52 |
+
|
| 53 |
- Edge / constrained environments
|
| 54 |
+
|
| 55 |
- Educational / experimental micro-models
|
| 56 |
+
|
| 57 |
- Fun baseline for boolean tasks
|
| 58 |
|
| 59 |
+
|
| 60 |
**Not intended for** high-precision scientific computing or production systems that require perfect floating-point equality handling.
|
| 61 |
|
| 62 |
## Example inference script
|
|
|
|
| 114 |
model = PizdecB3.from_pretrained("pizdecB3")
|
| 115 |
|
| 116 |
# Usage
|
| 117 |
+
print(model.predict(10, 5)) # >
|
| 118 |
+
print(model.predict(3, 3)) # =
|
| 119 |
+
print(model.predict_str("8?2")) # >
|
| 120 |
+
|
| 121 |
```
|
| 122 |
|
| 123 |
## Known Limitations
|
| 124 |
|
| 125 |
+
* Struggles with very close floating-point numbers (e.g. `100` vs `99.9`, `7.0` vs `7.01`)
|
| 126 |
+
* Exact equality on large floats can be unstable
|
| 127 |
+
* No support for non-numeric input
|
| 128 |
+
* Not suitable for high-precision comparison tasks
|
| 129 |
+
* Performance degrades when numbers differ by less than ~0.01–0.05 depending on magnitude
|
| 130 |
|
| 131 |
## Files
|
| 132 |
|
| 133 |
+
* `model.safetensors` — model weights
|
| 134 |
+
* `config.json` — basic config
|
| 135 |
+
* `training_metrics.png` — training visualization
|
| 136 |
|
| 137 |
---
|
| 138 |
|
| 139 |
+
Part of the experimental **RaspizdAI** micro-model collection.
|