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

Uploaded Python 3

File details

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

File metadata

  • Download URL: radnn-0.2.7.tar.gz
  • Upload date:
  • Size: 103.7 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.7.tar.gz
Algorithm Hash digest
SHA256 d395d7641f46d3d3362832f0f2841b8d8688ffb84142bee9cb10726259b742a2
MD5 57668dc2fa582ca386a8b3434a7b2d45
BLAKE2b-256 25af6839569bff8b810c7ec917a98c270a100b6185fcedaac696a6b5799309e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: radnn-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 179.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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a077f2ae5c6cae130be64254b89cc2d4bd21f5b63e7e3cc7141e41e78e39a088
MD5 5df56c8b3a4699dce42e681a9cbf26e5
BLAKE2b-256 6c32b3b093ed74d3a4648bd731fa13e45efdadb4dcaf9899de1523685ab3efe7

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