PyTorch Trainer Class
Project description
This is a PyTorch Model Trainer Class. It trains, validates input data. It also saves the model after training to avoid retraining. The class takes in 7 arguments i.e. device, epochs, model, criterion, optimizer, trainloader, valloader. It has 2 methods:: (1). model_train_validate(). This train, validate data.It also plots learning curves.Finally it saves the model to avoid retraining it.(2). load_model().This loads your saved model from the above function i.e. model_train_validate().
Change Log
0.0.1 (28/01/2023) - First Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for ClintonPytorcchTrainer-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ec048067e9ad2efcaac81b1878da1b28bdc87e7d41253476602f492e48a9939 |
|
MD5 | 708c9124392c01d0d21e8787733f9cc0 |
|
BLAKE2b-256 | c2587f91ad8c238153e8bd7ba1098aa56993a8ffd691d57588e9cc6331e8bb6b |