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.4.tar.gz (102.2 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.4-py3-none-any.whl (173.5 kB view details)

Uploaded Python 3

File details

Details for the file radnn-0.2.4.tar.gz.

File metadata

  • Download URL: radnn-0.2.4.tar.gz
  • Upload date:
  • Size: 102.2 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.4.tar.gz
Algorithm Hash digest
SHA256 15bd06ba77214519eef518173187bc78e062ca6be396106348f490ca28fa3d2a
MD5 e8651ba035ff8811b9f01e0eadd2f9cf
BLAKE2b-256 aed4e8559855584b681b7c904856c0749906158fc81b1dc3f56e11e8a61af40c

See more details on using hashes here.

File details

Details for the file radnn-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: radnn-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 173.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a059c20d7b9946e910badb4e8ae3c11e7a4e1baf14383048c70acd6d93f48b32
MD5 fcd23e583a65074d347bc5b9fd2e670f
BLAKE2b-256 5ce3b507dbda1eb3266973fe615508706227d8c1e8121d91bf98e38ef3878dd3

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