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.4.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

Kheiron-1.0.4-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Kheiron-1.0.4.tar.gz
  • Upload date:
  • Size: 10.9 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.4.tar.gz
Algorithm Hash digest
SHA256 512642170f1db8f2f9673b1d5409f91ca07ab0b0e286566b6b9dbf713410941c
MD5 761688a1f997579bc94bd0676881bbf1
BLAKE2b-256 179ad8f3d660a243f29a5a444d89a695db28f6aec66055006b8fbe21b3e48913

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Kheiron-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 157d19eaad06639bf160da541b50a82e2b69c88256367696f153fc3702fd2b90
MD5 ddca4d2c9888cb34f8f6881284e2a711
BLAKE2b-256 9504161174f2723bb2d4f63907e27714f5a3cf414d9bcf5db25647ead16678a1

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