# docroch/learning-data-science architecture

> Architecture diagram of the GitHub repository docroch/learning-data-science, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/docroch/learning-data-science
- Repository: https://github.com/docroch/learning-data-science

## Overview

#### Purpose and Execution Model
This is a self-contained data-science learning repository, not a single deployable application. Its primary entry points are Jupyter notebooks organized by discipline; users run notebooks interactively against bundled datasets and inspect produced models, analyses, and plots. The only apparent executable application entry points are Dash examples at `data-understanding/data-visualization/dash_example.py` and `data-understanding/data-visualization/dash_full_app.py`.

#### Data Assets and Boundaries
Datasets are colocated with their instructional domain, creating mostly independent experiments rather than a shared data pipeline. Tabular CSV inputs serve preprocessing, statistical, and classical-ML notebooks, while image trees and binary IDX files serve deep-learning workloads. Representative boundaries:
- `data-preparation/datasets/`
- `machine-learning/datasets/`
- `deep-learning/datasets/PetImages/`
No central ingestion layer, database, API, or dataset catalog is present.

#### Data Preparation Stage
Preparation notebooks demonstrate cleaning and feature transformation: missing values, duplicates/concatenation, outliers, categorical dummies, and normalization. Persisted `.h5` artifacts indicate fitted preprocessing objects or serialized outputs, but their producer/consumer contract is notebook-local rather than a reusable package API.
- `data-preparation/missing_values.ipynb`
- `data-preparation/dummies-normalization.ipynb`
- `data-preparation/preprocessing/Preprocessing.ipynb`

#### Data Understanding and Visualization
This branch is the exploratory-analysis layer. Descriptive and inferential statistics notebooks operate on dedicated datasets to teach distributions, divergence measures, hypothesis tests, and A/B testing. Visualization notebooks use pandas/matplotlib/seaborn/Plotly; Dash scripts represent the repository’s interactive UI boundary and likely consume local EPA datasets.
- `data-understanding/descriptive-statistics/descriptive.ipynb`
- `data-understanding/inferential-statistics/ab-test.ipynb`
- `data-understanding/data-visualization/dash_full_app.py`

#### Classical Machine Learning
Classical ML is partitioned by learning paradigm and task. Supervised notebooks train/evaluate classifiers and regressors; unsupervised notebooks perform clustering, dimensionality reduction, and anomaly detection. Each notebook directly binds a selected local dataset to a particular algorithm, so model training, evaluation, and visualization are coupled within the notebook rather than orchestrated through shared training code.
- `machine-learning/supervised-learning/classification/`
- `machine-learning/supervised-learning/regression/`
- `machine-learning/unsupervised-learning/`

#### Deep Learning
Deep-learning notebooks cover dense neural networks, CNN image classification, and recurrent sequence/stock-market modeling. Inputs include local image train/test directory hierarchies, Fashion-MNIST compressed files, and CSV time-series/tabular data. Saved `.h5` files are material model artifacts, providing the closest equivalent to trained-model persistence.
- `deep-learning/cat-vs-dog.ipynb`
- `deep-learning/cnn-xray.ipynb`
- `deep-learning/datasets/XRay/`

#### Runtime, Infrastructure, and External Services
The material runtime is Python with Jupyter notebooks; expected libraries are implied by notebook topics, including data-analysis, plotting, classical ML, deep-learning, and Dash ecosystems. The repository contains no dependency manifest, CI/CD, containerization, cloud infrastructure, model-serving endpoint, or runtime orchestration. Telegram in `README.md` is a collaboration contact only, not an application integration.

Main entry points: [`data-preparation/datasets`](https://github.com/docroch/learning-data-science/tree/main/data-preparation/datasets) (Preparation datasets), [`machine-learning/datasets`](https://github.com/docroch/learning-data-science/tree/main/machine-learning/datasets) (Classical-ML datasets), [`deep-learning`](https://github.com/docroch/learning-data-science/tree/main/deep-learning) (Deep-learning notebooks), [`deep-learning/cat-vs-dog.ipynb`](https://github.com/docroch/learning-data-science/blob/main/deep-learning/cat-vs-dog.ipynb) (Cat vs dog CNN)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Interactive Runtime"]
  node_jupyter{{"Jupyter notebooks<br/>Python runtime"}}
  node_dash["Dash applications<br/>interactive UI<br/>[dash_full_app.py]"]
end

subgraph group_preparation["Data Preparation"]
  node_prep_data[("Preparation datasets<br/>local CSV assets")]
  node_missing_values["Missing-values lesson<br/>notebook"]
  node_feature_transforms["Dummies &amp; normalization<br/>notebook"]
  node_preprocessing["Preprocessing workflow<br/>notebook"]
end

subgraph group_understanding["Data Understanding"]
  node_descriptive_stats["Descriptive statistics<br/>notebook<br/>[descriptive.ipynb]"]
  node_ab_testing["A/B testing<br/>notebook<br/>[ab-test.ipynb]"]
  node_visualization["Visualization notebooks<br/>notebook collection"]
end

subgraph group_ml["Machine Learning"]
  node_classical_data[("Classical-ML datasets<br/>local CSV assets")]
  node_classification["Classification<br/>notebook collection"]
  node_regression["Regression<br/>notebook collection"]
  node_unsupervised["Unsupervised learning<br/>notebook collection"]
end

subgraph group_deep["Deep Learning"]
  node_deep_notebooks["Deep-learning notebooks<br/>notebook collection"]
  node_cat_dog["Cat vs dog CNN<br/>notebook<br/>[cat-vs-dog.ipynb]"]
  node_xray_cnn["X-ray CNN<br/>notebook<br/>[cnn-xray.ipynb]"]
  node_pet_images[("Pet image dataset<br/>image tree")]
  node_xray_images[("X-ray dataset<br/>image tree")]
  node_saved_models[("Saved H5 models<br/>model artifacts")]
end

node_jupyter -->|"runs"| node_missing_values
node_jupyter -->|"runs"| node_feature_transforms
node_jupyter -->|"runs"| node_preprocessing
node_prep_data -->|"input"| node_missing_values
node_prep_data -->|"input"| node_feature_transforms
node_prep_data -->|"input"| node_preprocessing
node_jupyter -->|"runs"| node_descriptive_stats
node_jupyter -->|"runs"| node_ab_testing
node_jupyter -->|"runs"| node_visualization
node_jupyter -->|"runs"| node_classification
node_jupyter -->|"runs"| node_regression
node_jupyter -->|"runs"| node_unsupervised
node_classical_data -->|"selected input"| node_classification
node_classical_data -->|"selected input"| node_regression
node_classical_data -->|"selected input"| node_unsupervised
node_jupyter -->|"runs"| node_deep_notebooks
node_deep_notebooks -->|"includes"| node_cat_dog
node_deep_notebooks -->|"includes"| node_xray_cnn
node_pet_images -->|"training images"| node_cat_dog
node_xray_images -->|"training images"| node_xray_cnn
node_cat_dog -->|"saves"| node_saved_models
node_xray_cnn -->|"saves"| node_saved_models
node_dash -.->|"interactive visualization"| node_visualization

click node_dash "https://github.com/docroch/learning-data-science/blob/main/data-understanding/data-visualization/dash_full_app.py"
click node_prep_data "https://github.com/docroch/learning-data-science/tree/main/data-preparation/datasets"
click node_missing_values "https://github.com/docroch/learning-data-science/blob/main/data-preparation/missing_values.ipynb"
click node_feature_transforms "https://github.com/docroch/learning-data-science/blob/main/data-preparation/dummies-normalization.ipynb"
click node_preprocessing "https://github.com/docroch/learning-data-science/blob/main/data-preparation/preprocessing/Preprocessing.ipynb"
click node_descriptive_stats "https://github.com/docroch/learning-data-science/blob/main/data-understanding/descriptive-statistics/descriptive.ipynb"
click node_ab_testing "https://github.com/docroch/learning-data-science/blob/main/data-understanding/inferential-statistics/ab-test.ipynb"
click node_visualization "https://github.com/docroch/learning-data-science/tree/main/data-understanding/data-visualization"
click node_classical_data "https://github.com/docroch/learning-data-science/tree/main/machine-learning/datasets"
click node_classification "https://github.com/docroch/learning-data-science/tree/main/machine-learning/supervised-learning/classification"
click node_regression "https://github.com/docroch/learning-data-science/tree/main/machine-learning/supervised-learning/regression"
click node_unsupervised "https://github.com/docroch/learning-data-science/tree/main/machine-learning/unsupervised-learning"
click node_deep_notebooks "https://github.com/docroch/learning-data-science/tree/main/deep-learning"
click node_cat_dog "https://github.com/docroch/learning-data-science/blob/main/deep-learning/cat-vs-dog.ipynb"
click node_xray_cnn "https://github.com/docroch/learning-data-science/blob/main/deep-learning/cnn-xray.ipynb"
click node_pet_images "https://github.com/docroch/learning-data-science/tree/main/deep-learning/datasets/PetImages"
click node_xray_images "https://github.com/docroch/learning-data-science/tree/main/deep-learning/datasets/XRay"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_jupyter,node_dash toneBlue
class node_prep_data,node_missing_values,node_feature_transforms,node_preprocessing toneAmber
class node_descriptive_stats,node_ab_testing,node_visualization toneMint
class node_classical_data,node_classification,node_regression,node_unsupervised toneRose
class node_deep_notebooks,node_cat_dog,node_xray_cnn,node_pet_images,node_xray_images,node_saved_models toneIndigo
```

## Components

### Interactive Runtime

- **Jupyter notebooks**: Python runtime · Primary interactive execution environment.
- [Dash applications](https://github.com/docroch/learning-data-science/blob/main/data-understanding/data-visualization/dash_full_app.py): interactive UI · The repository's executable application boundary. · `data-understanding/data-visualization/dash_full_app.py`

### Data Preparation

- [Preparation datasets](https://github.com/docroch/learning-data-science/tree/main/data-preparation/datasets): local CSV assets · `data-preparation/datasets`
- [Missing-values lesson](https://github.com/docroch/learning-data-science/blob/main/data-preparation/missing_values.ipynb): notebook · `data-preparation/missing_values.ipynb`
- [Dummies & normalization](https://github.com/docroch/learning-data-science/blob/main/data-preparation/dummies-normalization.ipynb): notebook · `data-preparation/dummies-normalization.ipynb`
- [Preprocessing workflow](https://github.com/docroch/learning-data-science/blob/main/data-preparation/preprocessing/Preprocessing.ipynb): notebook · Notebook-local fitted preprocessing and serialized outputs. · `data-preparation/preprocessing/Preprocessing.ipynb`

### Data Understanding

- [Descriptive statistics](https://github.com/docroch/learning-data-science/blob/main/data-understanding/descriptive-statistics/descriptive.ipynb): notebook · `data-understanding/descriptive-statistics/descriptive.ipynb`
- [A/B testing](https://github.com/docroch/learning-data-science/blob/main/data-understanding/inferential-statistics/ab-test.ipynb): notebook · `data-understanding/inferential-statistics/ab-test.ipynb`
- [Visualization notebooks](https://github.com/docroch/learning-data-science/tree/main/data-understanding/data-visualization): notebook collection · Plots with pandas, matplotlib, seaborn, and Plotly. · `data-understanding/data-visualization`

### Machine Learning

- [Classical-ML datasets](https://github.com/docroch/learning-data-science/tree/main/machine-learning/datasets): local CSV assets · `machine-learning/datasets`
- [Classification](https://github.com/docroch/learning-data-science/tree/main/machine-learning/supervised-learning/classification): notebook collection · Training, evaluation, and visualization are coupled per notebook. · `machine-learning/supervised-learning/classification`
- [Regression](https://github.com/docroch/learning-data-science/tree/main/machine-learning/supervised-learning/regression): notebook collection · Training, evaluation, and visualization are coupled per notebook. · `machine-learning/supervised-learning/regression`
- [Unsupervised learning](https://github.com/docroch/learning-data-science/tree/main/machine-learning/unsupervised-learning): notebook collection · Clustering, dimensionality reduction, and anomaly detection. · `machine-learning/unsupervised-learning`

### Deep Learning

- [Deep-learning notebooks](https://github.com/docroch/learning-data-science/tree/main/deep-learning): notebook collection · Dense networks, CNNs, and recurrent sequence models. · `deep-learning`
- [Cat vs dog CNN](https://github.com/docroch/learning-data-science/blob/main/deep-learning/cat-vs-dog.ipynb): notebook · `deep-learning/cat-vs-dog.ipynb`
- [X-ray CNN](https://github.com/docroch/learning-data-science/blob/main/deep-learning/cnn-xray.ipynb): notebook · `deep-learning/cnn-xray.ipynb`
- [Pet image dataset](https://github.com/docroch/learning-data-science/tree/main/deep-learning/datasets/PetImages): image tree · `deep-learning/datasets/PetImages`
- [X-ray dataset](https://github.com/docroch/learning-data-science/tree/main/deep-learning/datasets/XRay): image tree · `deep-learning/datasets/XRay`
- **Saved H5 models**: model artifacts · Persisted deep-learning model outputs.

## Connections

- Jupyter notebooks → Missing-values lesson: runs
- Jupyter notebooks → Dummies & normalization: runs
- Jupyter notebooks → Preprocessing workflow: runs
- Preparation datasets → Missing-values lesson: input
- Preparation datasets → Dummies & normalization: input
- Preparation datasets → Preprocessing workflow: input
- Jupyter notebooks → Descriptive statistics: runs
- Jupyter notebooks → A/B testing: runs
- Jupyter notebooks → Visualization notebooks: runs
- Jupyter notebooks → Classification: runs
- Jupyter notebooks → Regression: runs
- Jupyter notebooks → Unsupervised learning: runs
- Classical-ML datasets → Classification: selected input
- Classical-ML datasets → Regression: selected input
- Classical-ML datasets → Unsupervised learning: selected input
- Jupyter notebooks → Deep-learning notebooks: runs
- Deep-learning notebooks → Cat vs dog CNN: includes
- Deep-learning notebooks → X-ray CNN: includes
- Pet image dataset → Cat vs dog CNN: training images
- X-ray dataset → X-ray CNN: training images
- Cat vs dog CNN → Saved H5 models: saves
- X-ray CNN → Saved H5 models: saves
- Dash applications → Visualization notebooks: interactive visualization
