Skip to main content

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.3 (28/01/2023) - Third Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ClintonPytorchTrainer-0.0.6.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file ClintonPytorchTrainer-0.0.6.tar.gz.

File metadata

  • Download URL: ClintonPytorchTrainer-0.0.6.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for ClintonPytorchTrainer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3e34c344ab5930382949e5b4179c565005df567f09ee5a9bb99bee82e94bcfbc
MD5 1131af5787c599925bb98289724d36e2
BLAKE2b-256 c99e12ee30bc109b89c86c55136d00e225b1641f191742552440e449cd3fd1f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page