Skip to main content

A multi-domain experiment package: Deep Learning (MLP, CNN, ResNet, RNN, LSTM, Transformer, GAN, VAE) and ML ESE Lab (regression, SVM, decision tree, random forest, XGBoost, k-means).

Project description

dlspit v2.0.0 — Multi-Domain Experiment Package

A pip-installable multi-domain experiment viewer and runner covering:

  • DL — Deep Learning: MLP, Backpropagation, CNN, ResNet, RNN, LSTM, Transformer, GAN, VAE, Transfer Learning
  • ML-ESE — Machine Learning ESE Lab: EDA, Linear Regression, Decision Tree, SVM, SVM RBF, Random Forest, XGBoost, K-Means Clustering

By default, dlspit prints the source code of the selected experiment. Use --run to actually execute it.


Installation

# Core only (source viewing works for all experiments)
pip install dlspit

# With DL dependencies (tensorflow — required to --run DL experiments)
pip install "dlspit[dl]"

# With ML-ESE dependencies (scikit-learn, pandas, xgboost, …)
pip install "dlspit[ml-ese]"

# Everything
pip install "dlspit[all]"

CLI Usage

List commands

# Show available domains
dlspit --list

# List all DL experiments
dlspit DL --list

# List all ML-ESE experiments
dlspit ML-ESE --list

Deep Learning experiments

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

# Execute an experiment
dlspit DL --run 1aMP_Xor
dlspit DL --run 4CNN

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

ML-ESE experiments

# Print source code (default)
dlspit ML-ESE linear_regression
dlspit ML-ESE decision_tree

# Execute an experiment
dlspit ML-ESE --run linear_regression
dlspit ML-ESE --run kmeans_clustering

# As a module
python -m dl_experiments ML-ESE linear_regression
python -m dl_experiments ML-ESE --run random_forest

DL 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

ML-ESE Experiment Index

Key Description Dataset
eda_titanic EDA & data visualisation on the Titanic dataset Seaborn built-in
linear_regression Linear Regression — predicting student marks dataset.csv
decision_tree Decision Tree Classifier — sports match prediction Inline
svm_classifier SVM Classifier — student pass/fail prediction Inline
svm_rbf_kernel SVM with RBF Kernel — non-linear XOR-like classification Inline
random_forest Random Forest Classifier — loan approval prediction loan_approval_dataset.csv
xgboost_classifier XGBoost Classifier — loan approval prediction loan_approval_dataset.csv
kmeans_clustering K-Means Clustering — customer segmentation (Elbow Method) seg.csv

Note: Experiments marked with a CSV dataset require that file to be present in your current working directory when using --run. Source code display (dlspit ML-ESE <key>) always works without any CSV.


Python API

# DL domain
from dl_experiments.dl import list_experiments, show_source, run_experiment

print(list_experiments())          # ['1aMP_Xor', '1bMP_Binary', ...]
show_source("4CNN")                # print source, never executes
run_experiment("4CNN")             # executes (requires tensorflow)

# ML-ESE domain
from dl_experiments.ml_ese import list_experiments, show_source, run_experiment

print(list_experiments())          # ['eda_titanic', 'linear_regression', ...]
show_source("linear_regression")   # print source, never executes
run_experiment("decision_tree")    # executes (requires scikit-learn)

Requirements

Group Packages Required for
core numpy>=1.24 Always
dl tensorflow>=2.12 Running DL experiments
ml-ese scikit-learn, pandas, matplotlib, seaborn, xgboost Running ML-ESE experiments

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-2.0.0.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

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

dlspit-2.0.0-py3-none-any.whl (64.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dlspit-2.0.0.tar.gz
Algorithm Hash digest
SHA256 3fab4673598cf9a30cd8ee43a7ce723dfd69dfade6bea0eee6c67180d8339146
MD5 14873c3a06b5130bcf5f9f0b4ca01a45
BLAKE2b-256 fd7204c4bdbef55a0669f487482271cb713f35bb738a57a1b4fec58a81726986

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dlspit-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fac720eeb8aa2c4b658f4d3ec861d0ef178ae13bf41d20d875f7abc7865fee12
MD5 cbdf962bc4a56b2c263852b90e012747
BLAKE2b-256 356d26d8c97d9a1997bdc43596eb193ee92b2ff2715398fb19b6ab84758f21e2

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