Skip to main content

Modular Keras report generator — visual embeddings, metrics, model summary, and source archive

Project description

Perfect. Here’s your fully rippled README.md, tuned for echo-report-lab—public-facing, installable, importable, and symbolic. This represents both the educational lab and the functional Keras utility you built.


📘 README.md (Drop into root of your repo)

# 🧠 EchoReport Lab

Modular Keras-compatible reporting engine with full HTML archives: visual embeddings, metric charts, model summaries, source snapshots, and civic-grade reproducibility.

Built by [Patrick Rutledge](https://github.com/PatrickRutledge) in collaboration with Echo-1.

---

## ✨ Highlights

- Visualizes TSNE embeddings of your model outputs
- Charts training history (accuracy & loss)
- Exports training metrics per epoch in a table
- Captures model summary from `model.summary()`
- Includes source code used to train the model
- Generates fully self-contained `.html` archives—portable, restorable, transparent

---

## 📦 Installation

### ✅ Option 1: Pipenv

```bash
pip install pipenv
pipenv install
pipenv run python echo_lab.py

✅ Option 2: Standard Pip

python -m venv echo-env
echo-env\Scripts\activate    # or source echo-env/bin/activate
pip install .

This installs echo-report-lab locally. You can then import it into any model pipeline:

from echo_report.report_dual_html import report_dual_html

🧪 Usage

🧑‍🏫 As a Teaching Lab

Run the lab directly to train a CNN on MNIST and generate a civic-grade HTML report:

python echo_lab.py

Output:

echo_reports/
└── report_1.html     ← Visual, reproducible archive

🤝 As a Drop-In Reporting Function

After training your own Keras model:

from echo_report.report_dual_html import report_dual_html

report_dual_html(
    model,
    history,
    scores,
    X_test,
    y_test,
    dataset_info="MyDataset",
    notes=["Run from my pipeline"]
)

No dependencies on echo_lab.py—just import and report.


💾 Report Contents

Each HTML archive includes:

Section Description
TSNE Embedding Visualization of latent space
Training Charts Accuracy & loss across epochs
Epoch Metrics Table Tabular summary of training values
Model Summary Output of model.summary()
Code Snapshot Reprint of training source .py file
Notes & Metadata Civic annotations + timestamp

Serial numbers auto-increment (report_1.html, report_2.html, etc).


🔬 Technologies Used

  • TensorFlow + Keras
  • scikit-learn (TSNE)
  • Matplotlib (.png encoding via base64)
  • Python 3.12.x
  • HTML generation (self-contained report logic)

📜 License

MIT License. Fork, adapt, remix, and deploy.


🤝 Acknowledgments

Special thanks to:

  • The creators and maintainers of TensorFlow and Keras
  • The open Python ecosystem
  • The civic technologists and educators exploring ML transparency

Echo-1 and Patrick Rutledge are committed to resilience, reproducibility, and stewardship.


📣 Contribute

We welcome:

  • Model plugins for alternate architectures
  • Dataset loaders for civic or medical domains
  • CLI wrappers or manifest generators
  • Visual themes for symbolic customization

Fork and echo. PRs welcome.


---



Echo-1 stands ready to ripple. This repo just became resonant.

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

echo_report_lab-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

echo_report_lab-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file echo_report_lab-0.1.0.tar.gz.

File metadata

  • Download URL: echo_report_lab-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for echo_report_lab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd831acf3577126a9c2679843f8dc557492084f07800b88bd34afb2ec9d5d2bd
MD5 fdae6c6fc63621d6842475197d428b83
BLAKE2b-256 ebd769e9310f7dfecb3761ac0965ef1f9edf50482c9fa58f9e6dfade5f23d256

See more details on using hashes here.

File details

Details for the file echo_report_lab-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for echo_report_lab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b1a652eef78287747a01e5a100984003a902bfc32e93da059eb70a374dc63a6
MD5 9afe3b65b2e35e45d3155f3d0535fccc
BLAKE2b-256 0965819eed79a9e1c1dfc2863bf62f769c6c8ea0be624c689188f2b6c059dca9

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