Skip to main content

Kheiron: Train and evaluate libary for Pytorch model.

Project description

Kheiron

Kheiron: Train and evaluate libary for Pytorch model.

Author: Trong-Dat Ngo.


Examples

Text classification
options = TrainingOptions(task='text-classification',
                          train_batch_size=8,
                          eval_batch_size=8,
                          metric_for_best_model='macro_f1',
                          greater_is_better=True,
                          track_metrics=True)

trainer = Trainer(model=model,
                  opts=options,
                  train_set=tokenized_sets['train'],
                  eval_set=tokenized_sets['test'],
                  collate_fn=data_collator)

trainer.train()
Token classification
Sammarization
Translation

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

Kheiron-1.0.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

Kheiron-1.0.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file Kheiron-1.0.2.tar.gz.

File metadata

  • Download URL: Kheiron-1.0.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for Kheiron-1.0.2.tar.gz
Algorithm Hash digest
SHA256 86d0550609fd9abca1b3a89bc510be8cc3bde1587b8967b456ee194187388afa
MD5 03c52ca8f627b872b34b4c6720905ab4
BLAKE2b-256 1e00893d7145137b94c11d2d808201e773f41bb71a5665574f6b9442bfc2f1a3

See more details on using hashes here.

File details

Details for the file Kheiron-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: Kheiron-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for Kheiron-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4f3f03bfecac72611d720f067cf6e9ef7aea8208035bc1bbd3f86325baa58e9
MD5 350d3dbcf7ab45172046b48238cccb4b
BLAKE2b-256 229f932a075b36d29922e1f09beb74eaf73e97bdcdb28b6924d6d074d2dad014

See more details on using hashes here.

Supported by

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