RNNs
RNNs
Overview
From scratch implementation of RNNs
Technical Details
- Framework: PyTorch
- Dataset: Custom
- Category: Sequential Models
Implementation Details
Trained a RNN model coded from scratch in Pytorch
ModelArgs Hyperparameters
Parameter | Value | Description |
---|---|---|
batch_size |
16 | The number of samples processed before the model is updated. |
max_lr |
1e-4 | Maximum learning rate. |
dropout |
0.2 | Dropout. |
epochs |
50 | Epochs |
block_size |
16 | Sequence Length |
No of neurons |
16 | No of neurons in an RNN per layer |
Frameworks:
Pytorch
Epochs/Steps
Epochs (train) = 50
Val iterations = every epoch
Losses
Train loss - 0.51
Val loss - 0.50
Loss Curves
π View Training Loss Curves
Source Code
π GitHub Repository: RNNs
View the complete implementation, training scripts, and documentation on GitHub.