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.0.tar.gz
(9.2 kB
view details)
Built Distribution
Kheiron-1.0.0-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file Kheiron-1.0.0.tar.gz
.
File metadata
- Download URL: Kheiron-1.0.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1ec19b697f8ad1d40feef58bba700e6391b82c6c3d9592e7a2f97fc0350d19f |
|
MD5 | 18fac595afe7a9ef8c3d60f6aa4a8c14 |
|
BLAKE2b-256 | 36dc3aac6e7d052506d02a23b4fe4143c9e106b90f06d1206ba4151042f90842 |
File details
Details for the file Kheiron-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: Kheiron-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8d6847cce25aac803d3b77bc3499edaaabba78cf0ffefb23aab40e7ec67647e |
|
MD5 | 35e807a02f6f80200627c586dae2cb12 |
|
BLAKE2b-256 | 5d52362bcd43f064b422d173149332526da6eca01594707f0b0562335cd96e39 |