Output Layer: 10 neurons (one for each digit from 0-9).
Training Details
Dataset: MNIST (60,000 training images, 10,000 test images)
Epochs: 5 (by default)
Optimizer: Adam (lr=0.001)
Loss Function: CrossEntropyLoss
Usage
To load this model in your PyTorch project:
python
1import torch
2from simple_nn import SimpleNN
34# 1. Initialize the model architecture5model = SimpleNN()67# 2. Load the state dictionary8model.load_state_dict(torch.load("model.pth"))9model.eval()
Dataset Information
The MNIST dataset consists of 28x28 grayscale images of the 10 digits. It is a classic dataset for image classification tasks.