Skip to main content

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 mlsystem that is the sandbox of the ML Engineer / Data Scientist.
  • In the mlsystem there is a central file store for datasets, a file store for configs of experiments and a file store for storing trained models along with the experiment artifacts.
  • Experiment reproducibility for torch and tensorflow , taking into account GPU non-determinism.
  • All hyperparameters for an experiment (architectural, data, training, ...) are organized in json configuration files, that are used as python dictionaries.
  • Allows for rapid development of file system related functionality. The class FileStore encapsulates the use of os, shutil, pickle, json and 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

radnn-0.2.5.tar.gz (101.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

radnn-0.2.5-py3-none-any.whl (175.7 kB view details)

Uploaded Python 3

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

Hashes for radnn-0.2.5.tar.gz
Algorithm Hash digest
SHA256 1d694e63ae2a74bde32170f1f6c2e0f5bff12e919f47acc414faa6295628b225
MD5 7a284719fc0940f9606443878b8229ff
BLAKE2b-256 47519bd731a911dc6a1f2905c127b4da916d63e0db7044488b81ed57c66a41fd

See more details on using hashes here.

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

Hashes for radnn-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d20143e240bb70e2514757edeebfd37eda70e13c7f24aac05372c49c68fc3e6c
MD5 5502d8c2de0e7aef75821972a356ce51
BLAKE2b-256 14917b76121b816ca906e1e77aedbf42947469054ffce624802fccf3c2571b76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page