ENIAT supports and boosts your machine learning experiments!
Project description
ENIAT
Eniat is a Python template for various ML packages including PyTorch, Scikit-learn.
Currently supports only PyTorch :moyai:
It provides several convenient features
- automated training: you don't have to re-write same epoch-wise loop everytime!
- automated distributed learning for PyTorch.
- Easy configurations for your experiments.
- Various package support (in the future)
Quick Start
1. Installation
Install eniat with the below command.
pip install eniat
eniat installation doesn't convey ML packages such as torch or sklearn, so install one you need before using eniat. :moyai:
2. CLI execution
You can initiate any tasks with only console commands. :moyai:
With below command, you can conduct ML experiemnts on console provided that you have proper resources for models and data. These configurations except basic arguments are based on omegaconf, so refer to the documentation and provide valid arguments.
eniat -p PACKAGE -t TASK --OTHER_CONFIGS_YOU_NEED
Or you can simply write every configurations you need into one yaml and just type the path of it like below. I strongly recommend this, because ML experiments usually require quite large amount of parameters. Make a base configuration yaml file, and modify slightly by typing additional configurations into console command, and it will be much more convenient.
eniat -c=PATH_TO_CONFIG_FILE
3. Custom code execution
eniat is designed for various environments from mere .py
codes to jupyter notebooks.
The most fundamental component of eniat is Trainer
. It is in charge of training your models. In the other hand, Grader
only evaluates your model. Below is an example code of torch training wih eniat.
from eniat.utils.statelogger import DummyLogger
from eniat.torch import TorchTrainer, TorchGrader
logger = DummyLogger() # Default logger for Eniat
grader = TorchGrader(grader_cfg, logger = logger) # If none, train without evaluation
trainer = TorchTrainer(trainer_cfg, learner_cfg, data_cfg, logger, grader)
trainer.fit(device = 0) # training on dev 0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file eniat-0.0.1.tar.gz
.
File metadata
- Download URL: eniat-0.0.1.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3f74bd9e8b5ea5fb077bfa3a76361821ac0f61f4c8c4f9e88e8ef553ddd048 |
|
MD5 | 667952511304b70f311e592699d1f800 |
|
BLAKE2b-256 | 7d3dad60e69fc4e2977b9cec1c8d3a10ad6c11020b041b9505d2c27ce0c14be0 |
File details
Details for the file eniat-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: eniat-0.0.1-py3-none-any.whl
- Upload date:
- Size: 33.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae3279a960750c21384594da2119e4c8fb82dd849bb0586cb91e492178a2d17 |
|
MD5 | 3b1f11b950864c1d6d6a61e42860d48c |
|
BLAKE2b-256 | 912dc20b9188d6e7cc6cb1cb161494c0139a195323972c9787719b6a172712cb |