Rapid Deep Neural Networks
Project description
RaDNN - Rapid Deep Neural Networks
RaDNN is a library that aims to assist Machine Learning research and development, by minimizing the time needed for trivial functionality, streamlining experiments and standardizing the development of neural network models and datasets. It follows an object-oriented approach, employing software design patterns.
🚀 Key Features
- The notion of the
mlsystemthat is the sandbox of the ML Engineer / Data Scientist. - In the
mlsystemthere is a central file store fordatasets, a file store forconfigsof experiments and a file store for storing trainedmodelsalong with the experiment artifacts. - Experiment reproducibility for
torchandtensorflow, taking into account GPU non-determinism. - All hyperparameters for an experiment (architectural, data, training, ...) are organized in
jsonconfiguration files, that are used as python dictionaries. - Allows for rapid development of file system related functionality. The class
FileStoreencapsulates the use ofos,shutil,pickle,jsonand other packages that are trivial to the objective of the ML research and development process. - Follows a composition approach to rapidly develop custom Neural Network models.
- Layers are organized into neural modules, that are organized into neural blocks, that belong to an encoder / decoder part of the model.
- Data are organized following hierarchical grouping to rapidly re-use samples in k-fold experiments.
- The notion of dataset caches, speeds up the data feeding during training of models.
- Library of image data pipeline method, support for image tensor standardization, and combos of image augmentation techniques.
- Several classes for common plots that are deployed rapidly in comparison to custom
matplotlibdevelopment. - Provides evaluator objects for calculating metrics.
📦 Installation
Install via pip:
pip install radnn
🧠 Quick Start
from radnn import mlsys, FileSystem
from radnn.plot import PlotImage
# Get the file store for the CIFAR10 dataset
mlsys.filesys = FileSystem(dataset_folder="/home/user/MLData")
fs = mlsys.filesys.datasets.subfs("CIFAR10")
# Deserialize the original sample set dictionary
dCIFAR10Test = fs.obj.load("test_batch", is_python2_format=True)
dCIFAR10ClassName = {0: "airplane", 1: "automobile", 2: "bird", 3: "cat", 4: "deer",
5: "dog", 6: "frog", 7: "horse", 8: "ship", 9: "truck"}
# Get the first image, its label and the corresponding class, to create a title for the plot
nFirstImage = dCIFAR10Test["data"][0].reshape([-1, 3, 32, 32]).transpose([0, 2, 3, 1])
nFirstImageLabel = dCIFAR10Test["labels"][0]
sFirstImageClass = dCIFAR10ClassName[nFirstImageLabel]
sTitle = f"First image in CIFAR10 validation set is a {sFirstImageClass}"
# Show the image
PlotImage(nFirstImage, title=sTitle).prepare().show()
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file radnn-0.2.5.tar.gz.
File metadata
- Download URL: radnn-0.2.5.tar.gz
- Upload date:
- Size: 101.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d694e63ae2a74bde32170f1f6c2e0f5bff12e919f47acc414faa6295628b225
|
|
| MD5 |
7a284719fc0940f9606443878b8229ff
|
|
| BLAKE2b-256 |
47519bd731a911dc6a1f2905c127b4da916d63e0db7044488b81ed57c66a41fd
|
File details
Details for the file radnn-0.2.5-py3-none-any.whl.
File metadata
- Download URL: radnn-0.2.5-py3-none-any.whl
- Upload date:
- Size: 175.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d20143e240bb70e2514757edeebfd37eda70e13c7f24aac05372c49c68fc3e6c
|
|
| MD5 |
5502d8c2de0e7aef75821972a356ce51
|
|
| BLAKE2b-256 |
14917b76121b816ca906e1e77aedbf42947469054ffce624802fccf3c2571b76
|