Metadata-Version: 2.4
Name: teefoml
Version: 0.1.3
Summary: Nine machine-learning lab notebooks for interactive display and export
Author: Naitik Donda
License-Expression: MIT
Project-URL: Homepage, https://pypi.org/project/teefoml/
Keywords: machine-learning,jupyter,education,notebooks
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ipython>=8
Requires-Dist: matplotlib>=3.7
Requires-Dist: numpy>=1.24
Requires-Dist: pandas>=2
Requires-Dist: scikit-learn>=1.3
Dynamic: license-file

# teefoml

`teefoml` bundles nine original machine-learning lab notebooks and provides a
small, cross-platform API for displaying their source in Jupyter Notebook,
JupyterLab, Google Colab, and VS Code. Displaying a lab never executes its code.

## Installation

```bash
python -m pip install teefoml
```

Python 3.10 and newer is supported. Installation also installs IPython, NumPy,
Matplotlib, pandas, and scikit-learn. (`time` is part of Python's standard
library and is not a dependency.) TensorFlow and Keras are intentionally not
installed because they are large and are only needed when executing Lab 7.
Install TensorFlow separately in a supported Python environment if you want to
run that lab; displaying and exporting it does not require TensorFlow.

## Quick start

In a Jupyter or Colab cell:

```python
import teefoml

teefoml.lab1()          # display Lab 1; do not execute it
teefoml.show_lab(5)     # display a numbered lab
teefoml.all_labs()      # display all labs
teefoml.list_labs()     # display and return lab titles
teefoml.help()          # display an API reminder
```

The display uses native IPython Markdown and syntax-highlighted code output, so
source remains easy to select and copy. There is no reliable, supported API
that inserts new editable cells into every Jupyter Notebook, JupyterLab, Colab,
and VS Code frontend. `teefoml` therefore deliberately avoids frontend-specific
JavaScript and uses exact notebook export as the portable editable fallback.

## Labs

| Lab | Title | Description |
|---:|---|---|
| 1 | NumPy Fundamentals and Vectorization | Arrays, broadcasting, reshaping, vectorization, and normalization. |
| 2 | Gradient Descent for Linear Regression | Scalar linear regression and scikit-learn comparison. |
| 3 | Matrix-Based Linear Regression | Multivariable gradient descent using matrix operations. |
| 4 | Logistic Regression Gradient Descent | Sigmoid activation and a matrix gradient step. |
| 5 | Logistic Regression and Optimization | Logistic regression, propagation, and optimization. |
| 6 | Building a Simple Neural Network | Activations and a two-layer neural network from NumPy. |
| 7 | Neural Networks with TensorFlow and Keras | Binary classification and MNIST multiclass models. |
| 8 | Linear Discriminant Analysis | Manual LDA and scikit-learn comparison. |
| 9 | Principal Component Analysis | Manual eigendecomposition and scikit-learn PCA. |

## Export editable notebooks

```python
from pathlib import Path
import teefoml

path = teefoml.export_lab(5)                 # ./lab5.ipynb
paths = teefoml.export_labs(Path("my_labs")) # all nine
```

Exports preserve the bundled notebooks byte for byte, including code, Markdown,
raw cells, metadata, comments, indentation, and cell order. Existing files are
never overwritten. Open an exported file normally to edit or run its cells.

## External data

The supplied Lab 7 and Lab 8 notebooks refer to `diabetes.csv` and `LDA_1.csv`
respectively. Those files were not present alongside the source notebooks and
are not included because their exact contents and redistribution rights could
not be established. Place the matching course datasets beside an exported
notebook before executing those labs. Lab 7 also downloads MNIST through Keras
when that section is executed, so it requires network access on first use.

## Build and publish

From the project directory:

```bash
python -m pip install --upgrade build twine
python -m pytest
python -m build
python -m twine check dist/*
```

Upload to TestPyPI first (you will be prompted for credentials):

```bash
python -m twine upload --repository testpypi dist/*
python -m pip install --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple/ teefoml==0.1.3
```

After verification, upload the same artifacts to production PyPI:

```bash
python -m twine upload dist/*
```

Use a PyPI API token when prompted (username `__token__`); never commit tokens.
Publishing is intentionally not automated by this project.

## License

MIT
