[!] This code is under development and mainly for my personal use. This project is for fast prototyping of deep learning and machine learning model with minimal code. Some parts of the code may not be well-commented or lack of citation.
dlex is an open source framework for machine learning scientific experiment.
Features
- Configuration-based experiment setup. Less code for more efficiency and reproducibility
- Pytorch or Tensorflow 2.0 or scikit-learn as backend with similar training flow
- Convenient "environment" for training similar models or tuning hyperparameter
Install
To install the current release
pip install dlex
Try your first dlex program
from dlex import yaml_configs, Configs
from dlex.torch import PytorchBackend
@yaml_configs("""backend: pytorch
model:
name: dlex.torch.models.DNN
layers: [200, 100]
dataset:
name: dlex.datasets.MNIST
num_train: 100
num_test: 10
num_classes: 5
train:
num_epochs: 10
batch_size: 128
optimizer:
name: adam
lr: 0.01
test:
metrics: [acc]""")
def train(configs: Configs):
params = configs.get_default_params()
report = PytorchBackend(params).run_train()
print(report.results)
if __name__ == "__main__":
train()
Resources
- Documentation
- Getting Started
- Various model implementations
- Implementations of machine learning algorithms for graph
License
Contributing
Contributions are more than welcome! Please get in touch if you would like to help out.
Release files for dlex 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dlex-0.0.7.tar.gz | 95.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dlex-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 266.8 kB
Release files / dlex-0.0.7.tar.gz
| Download URL | dlex-0.0.7.tar.gz |
|---|---|
| Size | 95.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
338a74ff8b5be8681aff803fbb014ba42be494d5cbc4e0dfa0f7b36f2e47fc8a
|
|
BLAKE2b-256 checksum How to use checksums |
8332b6812729dc39f29db78bd5cd2da63346c02fbbb4fe7ce8d0e33fa604636e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4
|
Release files / dlex-0.0.7-py3-none-any.whl
| Download URL | dlex-0.0.7-py3-none-any.whl |
|---|---|
| Size | 171.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47d7e3e3e64139bd194bc3b48301581772eed6512adae7347c85cc227b8e6bbc
|
|
BLAKE2b-256 checksum How to use checksums |
f61b5c6a18fe232ad7e0be72abd86412c9624ccdacb1e0072fadbad233168a6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4
|