Update README.md
Browse files
README.md
CHANGED
|
@@ -239,7 +239,11 @@ for epoch in range(10):
|
|
| 239 |
|
| 240 |
print(f"Epoch {epoch + 1}, Loss: {loss.item():.4f}")
|
| 241 |
|
| 242 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
|
| 244 |
```python
|
| 245 |
|
|
@@ -268,3 +272,4 @@ with torch.no_grad():
|
|
| 268 |
accuracy = correct / total
|
| 269 |
|
| 270 |
print(f"Accuracy: {accuracy:.4f}")
|
|
|
|
|
|
| 239 |
|
| 240 |
print(f"Epoch {epoch + 1}, Loss: {loss.item():.4f}")
|
| 241 |
|
| 242 |
+
```
|
| 243 |
+
|
| 244 |
+
### Evaluate the Model
|
| 245 |
+
|
| 246 |
+
|
| 247 |
|
| 248 |
```python
|
| 249 |
|
|
|
|
| 272 |
accuracy = correct / total
|
| 273 |
|
| 274 |
print(f"Accuracy: {accuracy:.4f}")
|
| 275 |
+
```
|