Skip to main content

DL — Deep Learning Practicals 1–9 (pip package)

All nine practicals refactored into one importable, pip-installable package named DL. After installing, you can import DL from any folder on any machine and run every practical — no more cd-ing into folders or broken relative CSV paths.

Installation

From PyPI:

pip install opdl

The install name is opdl (the name DL was already taken on PyPI), but the import name is exactly DL as used throughout this README.

For local development, from this folder:

pip install .          # normal install
# or, for development (edits take effect immediately):
pip install -e .

Dependencies installed automatically: none. This is a solo package — pip install opdl installs only the DL import package and the dl-prac* commands. It does not pull in TensorFlow, PyTorch, scikit-learn, etc.

Important: Because there are zero dependencies, pip install opdl will succeed on a bare Python install, but individual practicals still need their heavy libraries present when you actually run them (for example TensorFlow for prac 1, 2, 4, 5, 7; PyTorch for prac 3, 6, 8, 9). Install only the ones you need, e.g.::

pip install tensorflow torch scikit-learn pandas matplotlib

Everything else stays the same: the import name is DL, the install name is opdl, and nothing runs at import time — every practical is main() + helper functions.

What's inside

Practical Module Command Dataset
1 DL.prac1_feedforward dl-prac1 Employee.csv (bundled)
2 DL.prac2_regularization dl-prac2 StudentsPerformance.csv (bundled)
3 DL.prac3_fixmatch dl-prac3 semi_supervised_dataset.csv (bundled)
4 DL.prac4_multitask dl-prac4 ames_mutagenicity_data.csv (bundled, ~90 MB)
5 DL.prac5_cnn dl-prac5 SVHN — download separately (see below)
6 DL.prac6_autoencoder dl-prac6 CIFAR-10 pickles — download separately
7 DL.prac7_rnn dl-prac7 IMDB — auto-downloaded by Keras
8 DL.prac8_recursive dl-prac8 none (synthetic tree demo)
9 DL.prac9_linear dl-prac9 none (sklearn synthetic blobs)

Usage

As commands

dl-prac1
dl-prac8
dl-prac5 --train-dir C:\data\hoousenumbers\train --test-dir C:\data\hoousenumbers\test
dl-prac6 --data-dir C:\data\cifar-10-batches-py
dl-prac7 --epochs 2 --max-samples 5000

As a library

from DL import prac8_recursive
model, probs = prac8_recursive.main()

from DL import prac2_regularization
cfg = prac2_regularization.Config(epochs=20)   # tweak any hyper-parameter
prac2_regularization.main(cfg=cfg)

# Use the bundled datasets with your own code too:
from DL import data_path
import pandas as pd
df = pd.read_csv(data_path("Employee.csv"))

Every main() also accepts your own data / output paths, e.g. prac1_feedforward.main(csv_path="my.csv"), prac3_fixmatch.main(data_path="my_data.csv", output_dir="out").

External datasets (prac 5 & 6)

These are too large to bundle in a wheel:

Both raise a clear FileNotFoundError with instructions if the data is missing.

Notes on the refactor

  • Nothing runs at import time; every practical is main() + helper functions.
  • Dataset paths are resolved with importlib-friendly helpers (DL.data_path(...)) instead of __file__/cwd tricks, so they work in any installed location (including zipped wheels).
  • Original scripts are untouched in their original folders; the package lives under src/DL/.
  • Practical 3's dataset was missing from the original folder, so a replacement sample dataset (10 labeled + 10 unlabeled movie reviews) is bundled as semi_supervised_dataset.csv. Drop in your own CSV with the same id,text,label schema to use the real one.

Metadata

Release files for opdl 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opdl 0.2.1
File Size Uploaded Provenance
opdl-0.2.1.tar.gz 33.3 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for opdl 0.2.1
File Interpreter ABI Platform
opdl-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 67.0 MB

Release files / opdl-0.2.1.tar.gz

Download URL opdl-0.2.1.tar.gz
Size 33.3 MB
Tags Source
SHA-256 checksum
How to use checksums
9a3cb4574bfa378fb78816445f01bc0fadc19078805815e83a23bf536f6ec3de
BLAKE2b-256 checksum
How to use checksums
6c4acb9667ec5d37f860b94a5699489813123132abea7def9a6190312919aa8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / opdl-0.2.1-py3-none-any.whl

Download URL opdl-0.2.1-py3-none-any.whl
Size 33.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
742796a1188b59cf39c3b0124066bc96778bba4d3027667b93be2571715b1d86
BLAKE2b-256 checksum
How to use checksums
e6cba72428710b5935b122fb8efb22052a064ff4951f920d943c87526af89459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for opdl 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page