Update README.md
Browse files
README.md
CHANGED
|
@@ -26,7 +26,7 @@ The main highlight of this model is the integration of a rare **bilinear layer (
|
|
| 26 |
|
| 27 |
* **Loss Function:** Smooth L1 Loss
|
| 28 |
* **Optimizer:** Adam (with StepLR scheduler)
|
| 29 |
-
* **Error Rate:** ~0.
|
| 30 |
* **Extreme Test Case:**
|
| 31 |
* Input: `[[-6.0, 70.0, 4.0, -196.0]]`
|
| 32 |
* Expected Mathematical Answer: `-13744.0000`
|
|
@@ -46,6 +46,11 @@ The main highlight of this model is the integration of a rare **bilinear layer (
|
|
| 46 |
You can download the architecture file and the model weights directly from this repository:
|
| 47 |
|
| 48 |
```python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
class WebAISC(nn.Module):
|
| 50 |
|
| 51 |
def __init__(self):
|
|
@@ -68,6 +73,8 @@ class WebAISC(nn.Module):
|
|
| 68 |
x = self.x4(x)
|
| 69 |
return x
|
| 70 |
|
|
|
|
|
|
|
| 71 |
test_input = t.tensor([[-6.0, 70.0, 4.0, -196.0]], dtype=t.float32)
|
| 72 |
with t.no_grad():
|
| 73 |
prediction = model(test_input)
|
|
|
|
| 26 |
|
| 27 |
* **Loss Function:** Smooth L1 Loss
|
| 28 |
* **Optimizer:** Adam (with StepLR scheduler)
|
| 29 |
+
* **Error Rate:** ~0.185%
|
| 30 |
* **Extreme Test Case:**
|
| 31 |
* Input: `[[-6.0, 70.0, 4.0, -196.0]]`
|
| 32 |
* Expected Mathematical Answer: `-13744.0000`
|
|
|
|
| 46 |
You can download the architecture file and the model weights directly from this repository:
|
| 47 |
|
| 48 |
```python
|
| 49 |
+
import torch as t
|
| 50 |
+
import torch.nn as nn
|
| 51 |
+
import torch.optim as opt
|
| 52 |
+
from torch.utils.data import DataLoader, Dataset
|
| 53 |
+
|
| 54 |
class WebAISC(nn.Module):
|
| 55 |
|
| 56 |
def __init__(self):
|
|
|
|
| 73 |
x = self.x4(x)
|
| 74 |
return x
|
| 75 |
|
| 76 |
+
model = WebAISC
|
| 77 |
+
|
| 78 |
test_input = t.tensor([[-6.0, 70.0, 4.0, -196.0]], dtype=t.float32)
|
| 79 |
with t.no_grad():
|
| 80 |
prediction = model(test_input)
|