Metadata-Version: 2.4
Name: pykeres
Version: 1.0.0
Summary: pykeres: Deep Learning Practicals Code Guide Library with Cell-by-Cell Notebook Implementations and Viva Cheat Sheets
Author-email: Shreyas Daptare <shreyas@example.com>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# keres

A weirdly named, ultra-handy Python code guide library containing cell-by-cell implementations of Deep Learning Lab Practicals (Roll No. 23 - Shreyas Daptare).

Inspired by the `MLExamples` cheat-sheet pattern in `seaborne`, `keres` stores Jupyter notebooks converted into structured, cell-by-cell plaintext that can be browsed interactively, printed, extracted, or exported back into standalone Python scripts or Jupyter Notebooks.

---

## Installation

Install in development/editable mode:

```bash
cd keres
pip install -e .
```

Or direct pip install:

```bash
pip install ./keres
```

---

## Python API Usage

### Built-in Interactive Guide & Cheat Sheet
```python
import keres

# Open built-in interactive guide
keres.guide()   # or keres.help()

# View quick tweak recipes for exams/viva:
keres.tweaks(2)  # Swapping FashionMNIST with Pandas local CSV, Adam to SGD, Dropout
keres.tweaks(7)  # MobileNetV2 -> ResNet/EfficientNet, 10x smaller fine-tuning lr rule
```

### Direct Module Access (Quickest)
```python
import keres

# List all available practicals
keres.list_practicals()

# Print practicals cell-by-cell
keres.practical_1()
keres.practical_2(tweaks=True) # Full code + viva tweak recipes appended
keres.mock_practical()

# Inspect a single cell (1-based index)
keres.practical_1(cell=1)  # View Cell 1 only (AND Gate Perceptron)
keres.practical_1(cell=2)  # View Cell 2 only (OR Gate Perceptron)
```

### Class-based Access (`Keres`)
```python
from keres import Keres

guide = Keres()

# Programmatic retrieval
code_str = guide.get_practical(num=3)
cells = guide.get_cells(num=3)
for c in cells:
    print(f"Cell {c['cell_number']}: {c['title']}")

# Exporting utilities
guide.export_all_texts("./my_txt_notes")
guide.export_script(num=1, output_path="run_practical_1.py")
guide.export_notebook(num=1, output_path="practical_1.ipynb")
```

---

## CLI Usage

`keres` provides an intuitive command-line interface:

```bash
# Display built-in guide & cheat sheet
keres guide     # or simply run: keres

# List all practicals
keres list

# Display a practical cell-by-cell
keres show 1
keres show 2 --tweaks

# Display a specific cell only
keres show 1 --cell 2

# View only the quick tweak recipe (Pandas CSV, Optimizers, Viva notes)
keres tweaks 2

# Export all practicals as text files
keres export --out-dir ./my_txt_notes
```

---

## Practical Index

| Practical | Title / Topic | Framework | Cells |
| :--- | :--- | :--- | :---: |
| **Mock Practical** | Neural Network Training with Different Loss Functions | PyTorch | 5 |
| **Practical 01** | Single-Layer Perceptron (AND & OR Gate Decision Boundaries) | NumPy / Matplotlib | 2 |
| **Practical 02** | Multi-Layer Perceptron (MLP) Comparison on Fashion-MNIST | PyTorch / Torchvision | 8 |
| **Practical 03** | Regularization Techniques (L2 Weight Decay vs Dropout) | TensorFlow / Keras | 6 |
| **Practical 04** | Activation Functions Analysis (Sigmoid, Tanh, ReLU, LeakyReLU) | PyTorch | 5 |
| **Practical 05** | Convolutional Neural Networks (CNN) vs MLP for Image Classification | PyTorch / Torchvision | 10 |
| **Practical 06** | Recurrent Neural Networks (LSTM) for IMDB Sentiment Classification | TensorFlow / Keras | 6 |
| **Practical 07** | Transfer Learning & Fine-Tuning with MobileNetV2 | TensorFlow / Keras | 6 |
| **Practical 08** | Hyperparameter Optimization & TensorBoard Visualization | PyTorch / TensorBoard | 5 |
