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.1.tar.gz
(9.2 kB
view details)
Built Distribution
Kheiron-1.0.1-py3-none-any.whl
(11.9 kB
view details)
File details
Details for the file Kheiron-1.0.1.tar.gz
.
File metadata
- Download URL: Kheiron-1.0.1.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 | b5c7150985ec04ab94d4efd7d06a1b676d2de1ce4d5d63555c94b55418819522 |
|
MD5 | ae04ec87109364ef12b2dc2531e9489b |
|
BLAKE2b-256 | c4185429e3c7c324ace48e0e36e6154ac39f30a3a25b3837b0ddef796960c50c |
File details
Details for the file Kheiron-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: Kheiron-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.9 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 | 1bdf205fc88ce42fdd4f992bef263185f52b8ad20fd2f82eb076b5b5f7d30c96 |
|
MD5 | 6c0c27b1c08af77668e52d944b91a2a9 |
|
BLAKE2b-256 | af4c74dd292a898b1371b1d332ac301b12f76ca1759873826e12fd11f42846a8 |