Skip to main content

Library for beautiful training loop for PyTorch

Project description

Model Evaluator

Description

A package for training and evaluating PyTorch models.

Now it supports only visualization of training of models, but in future will support training and evaluation of many models which can be very useful for students.

If you have any bugs/improvement ideas, create an issue thread.

GitHub repository

PyPi

Installation

For installation you need to execute following command:

pip install model-evaluator

Then you can import library and use it in your code:

import model_evaluator

Example usage

from model_evaluator import Trainer, PlottingOptions, Accuracy, F1Score

train_data_loader = ...
test_data_loader = ...
model = ...
optimizer = ...
criterion = ... # those are yours

trainer = Trainer(model, optimizer, criterion, [Accuracy(), F1Score()],
                  plotting_options=PlottingOptions.PLOT_BOTH, plot_interval=8)
trainer.train(NUM_EPOCHS, train_data_loader, test_data_loader, device)

Authors

Artsiom Halian - GitHub

Versions

1.0.13 - Added cpu loss for weighted losses
1.0.12 - Fixes
1.0.11 - Fixes
1.0.10 - Fixes
1.0.9 - Fixes
1.0.8 - Fixes
1.0.7 - Added HuggingFace support
1.0.6 - Explicit conversion to tensor
1.0.5 - Fixed plotting
1.0.4 - Fixed binary recognition
1.0.3 - Fixed multiclass backward error
1.0.2 - Fixed history error
1.0.1 - Updated readme
1.0.0 - Initial version

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

model-evaluator-1.0.13.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file model-evaluator-1.0.13.tar.gz.

File metadata

  • Download URL: model-evaluator-1.0.13.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for model-evaluator-1.0.13.tar.gz
Algorithm Hash digest
SHA256 8d64970cfb3a5cf87eacb25d28ec4378310bbbfe87f9ebb5870f396ac6af340d
MD5 07f9fe63e6f27d96be3fe0e4a3e51ab1
BLAKE2b-256 ed53cfc2a4b9b7b3d83776a552669fe3d9e327af2d5d624551bcf60b0c14139e

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