Skip to main content

A collection of Deep Learning experiments: MLP, CNN, ResNet, RNN, LSTM, Transformer, GAN, VAE, Transfer Learning.

Project description

dlspit — DL Experiments

A pip-installable collection of Deep Learning experiment modules covering McCulloch-Pitts neurons, MLP, backpropagation, CNN, ResNet, RNN, LSTM, Transformer, GAN, VAE, and Transfer Learning.

Installation

# Core (NumPy only — Exp 1aMP_Xor works without extras)
pip install dlspit

# With TensorFlow (required for Exp 1bMP_Binary through 10Transfer)
pip install "dlspit[tensorflow]"

# With scikit-learn (required for Exp 7Lstm MinMaxScaler)
pip install "dlspit[sklearn]"

# Everything
pip install "dlspit[all]"

Usage

Python API

import dl_experiments

# Print the source code of an experiment (default behaviour)
dl_experiments.main("1aMP_Xor")           # McCulloch-Pitts
dl_experiments.main("4CNN", "5Resnet")    # CNN + ResNet
dl_experiments.main()                     # all experiments

# Actually execute an experiment
dl_experiments.run_experiment("4CNN")

# Print source directly
dl_experiments.show_source("7Lstm")

# List all valid keys
print(dl_experiments.list_experiments())

CLI

# Print source code (default)
dlspit 1aMP_Xor
dlspit 4CNN 5Resnet 6RNN

# List all valid experiment keys
dlspit --list

# Execute an experiment
dlspit --run 4CNN
dlspit --run                    # execute all

# As a module
python -m dl_experiments 1aMP_Xor
python -m dl_experiments --run 4CNN

Experiment Index

Key Description
1aMP_Xor McCulloch-Pitts neuron — XOR & XNOR gates
1bMP_Binary MLP binary classifier (XNOR via backprop)
2aLoss_Activation Activation & loss function comparison on MNIST
2bBPN Backpropagation on MNIST (SGD feedforward NN)
3regularization L2 regularisation + Dropout on MNIST
4CNN Convolutional Neural Network on MNIST
5Resnet ResNet50 transfer learning on CIFAR-10
6RNN Simple RNN for IMDB sentiment analysis
7Lstm Stacked LSTM for time-series prediction
8Transform Transformer encoder for IMDB text classification
9aVAE Variational Autoencoder on MNIST
9bGAN Generative Adversarial Network on MNIST
10Transfer MobileNetV2 transfer learning on CIFAR-10

Requirements

  • Python ≥ 3.10
  • numpy ≥ 1.24
  • (Optional) tensorflow ≥ 2.12 — for Exp 1bMP_Binary through 10Transfer
  • (Optional) scikit-learn ≥ 1.3 — for Exp 7Lstm (MinMaxScaler)

License

MIT

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

dlspit-1.0.3.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

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

dlspit-1.0.3-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file dlspit-1.0.3.tar.gz.

File metadata

  • Download URL: dlspit-1.0.3.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dlspit-1.0.3.tar.gz
Algorithm Hash digest
SHA256 360bf1c40be0f5d0e446f948006ad496f69eee4f7e54ed95afd64bd76f3f3686
MD5 9a7a321d9f56c498df75d3b7163e65c6
BLAKE2b-256 3c33788c15872476a2781b45b407b0d28b96ce9b6d5cd76a7121c487ad612384

See more details on using hashes here.

File details

Details for the file dlspit-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: dlspit-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dlspit-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0748d50abc470eca5e48d46f0f5fd7b3afacb51c45c054b71c62e65372780b1d
MD5 dfcb5960cc8b2b13c5c6b7ac9cfedcd1
BLAKE2b-256 2c332b1c41e3ab2121957d0b001c47d9cd04e785da7b3cb859af20d58ce4b2c5

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