Metadata-Version: 2.4
Name: pytoch-dl
Version: 1.0.0
Summary: Deep Learning Practicals, Customization Recipes, Theory Explainers & Bundled Datasets
Author: Antigravity Team
License: MIT
Keywords: deep-learning,pytorch,tensorflow,keras,neural-networks,mnist,imdb,recipes
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas
Dynamic: license-file
Dynamic: requires-python

# pytoch

> **Deep Learning Practicals, Customization Recipes, Mathematical Theory Explainers & Bundled Datasets**

`pytoch` is a self-contained, discrete, and modular Deep Learning reference library. It bundles complete implementations for 9 foundational deep learning practicals across NumPy, TensorFlow/Keras, and PyTorch, complete with customization recipes, mathematical theory explainers with viva Q&A, and offline datasets (`mnist.csv` and `imdb.csv`).

---

## Key Features

1. **All 9 Deep Learning Practicals**:
   - Discrete, modular implementations free of academic markers, student names, or roll numbers.
   - Clean cell-by-cell inspection or complete script views.
2. **Built-in Customization Recipes**:
   - Detailed guides on dataset swapping (Pandas CSV, torchvision/keras datasets, custom folders).
   - Optimizer switching (Adam, SGD + Nesterov momentum, RMSprop, AdamW).
   - Learning rate schedules, regularizers (L1, L2, Dropout), and modern activation functions.
3. **Comprehensive Theory & Viva Explainers**:
   - Mathematical formulations, forward/backward derivations, loss functions, and gradient mechanics.
   - Top viva questions and definitive technical answers.
4. **Bundled Datasets & Pull Utility**:
   - Bundles `mnist.csv` (20,000 tabular digit pixels, 35MB) and `imdb.csv` (10,000 movie reviews, 12MB) directly in package data.
   - One-command extraction to any folder on your machine (`pytoch.pull_datasets("./data")`).
   - Direct pandas loader without copying: `pytoch.load_mnist()`.

---

## Catalog of Practicals

| # | Practical Title | Framework | Dataset |
|---|----------------|-----------|---------|
| 1 | Single-Layer Perceptron (AND / OR Gates) | NumPy / Matplotlib | Logic Tables |
| 2 | 3-Layer Multi-Layer Perceptron (MLP) | TensorFlow / Keras + Pandas | `mnist.csv` |
| 3 | Neural Network Regularization (L2 Decay vs Dropout) | TensorFlow / Keras + Pandas | `mnist.csv` |
| 4 | Activation Functions (Sigmoid vs Tanh vs ReLU) | TensorFlow / Keras + Pandas | `mnist.csv` |
| 5 | CNN vs. MLP with Data Augmentation | TensorFlow / Keras + Pandas | `mnist.csv` |
| 6 | Sequential LSTM for Sentiment Analysis | TensorFlow / Keras + Pandas | `imdb.csv` |
| 7 | Transfer Learning & Fine-Tuning (MobileNetV2) | TensorFlow / Keras + Pandas | `mnist.csv` |
| 8 | Dynamic PyTorch MLP & Hyperparameter Grid Search | PyTorch + Pandas + TensorBoard | `mnist.csv` |
| 9 | Deep CNN Micro-Project with Dynamic Callbacks | TensorFlow / Keras + Pandas | `mnist.csv` |

---

## Python API Usage

```python
import pytoch

# 1. Dataset Management
pytoch.list_datasets()
pytoch.pull_datasets(target_dir="./data") # Extracts mnist.csv & imdb.csv
X, y = pytoch.load_mnist() # Load directly into memory

# 2. View Code & Practicals
pytoch.list_practicals()
pytoch.show(2)         # Full Practical 2 code
pytoch.show(2, cell=1) # View specific cell

# 3. Customization Recipes
pytoch.recipes(2)      # How to swap datasets, optimizers, loss functions

# 4. Theory & Viva Explainer
pytoch.theory(2)       # Mathematical derivations, equations, and viva Q&A

# 5. Combined View
pytoch.show(2, recipes=True, theory=True)
```

---

## CLI Usage

```bash
# View help and cheat sheet
pytoch guide

# List all practicals
pytoch list

# Display code
pytoch show 2
pytoch show 2 --cell 1

# Display recipes and theory
pytoch recipes 2
pytoch theory 2

# Extract bundled datasets to ./data
pytoch pull-data --out-dir ./data

# View bundled datasets catalog
pytoch datasets
```

---

## License

MIT License.
