# deanmeiring/features-abstractions-meaning architecture

> Architecture diagram of the GitHub repository deanmeiring/features-abstractions-meaning, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deanmeiring/features-abstractions-meaning
- Repository: https://github.com/deanmeiring/features-abstractions-meaning

## Overview

This repository is an experimental ML-feature-language project: models encode data as discrete words from learned vocabularies, then evaluate whether those words support reconstruction, prediction, reuse, or reading. The main workflow spans image, traffic, and telecom data, with a reusable feature library and reader as a product-facing branch. The graph preserves the central model, data, and evaluation modules named in the SOURCE INDEX. Many experiment files were not sampled, so their individual call flows are represented only where the README or index supports them.

Main entry points: [`experiments`](https://github.com/deanmeiring/features-abstractions-meaning/tree/main/experiments) (Experiment runs), [`fam/set_vqvae.py`](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/set_vqvae.py) (Set VQ-VAE), [`fam/library.py`](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/library.py) (Feature library), [`fam/scorecard.py`](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/scorecard.py) (Word scorecard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_fashion_data["Fashion-MNIST loader<br/>[images.py]"]
  node_telco_data["Telco churn data<br/>[data.py]"]
  node_telecom_data["Telecom hourly data<br/>[telecom.py]"]
  node_traffic_data["Traffic data<br/>[traffic.py]"]
end

subgraph group_encoders["Word encoders"]
  node_autoencoder["Autoencoder<br/>[autoencoder.py]"]
  node_vqvae["VQ-VAE<br/>[vqvae.py]"]
  node_image_vqvae["Image VQ-VAE<br/>[image_vqvae.py]"]
  node_set_vqvae["Set VQ-VAE<br/>[set_vqvae.py]"]
  node_word_vqvae["Word VQ-VAE<br/>[word_vqvae.py]"]
  node_traffic_words["Traffic words<br/>[traffic_words.py]"]
  node_window_words["Window words<br/>[window_words.py]"]
  node_residual_words["Correction words<br/>[residual_words.py]"]
end

subgraph group_applications["Reuse and prediction"]
  node_traffic_graph["Traffic graph<br/>[traffic_graph.py]"]
end

subgraph group_evaluation["Evaluation"]
  node_experiment_runs["Experiment runs"]
  node_compute_limits["Compute limits<br/>[compute.py]"]
  node_scorecard["Word scorecard<br/>[scorecard.py]"]
  node_evaluation_helpers["Data evaluation<br/>[data.py]"]
end

subgraph group_library["Library and reader"]
  node_library_store[("Feature library<br/>[library.py]")]
  node_llm_reader["LLM reader<br/>[reader.py]"]
end

node_user(("Researcher"))

node_user -->|"runs experiments"| node_experiment_runs
node_experiment_runs -->|"sets limits"| node_compute_limits
node_experiment_runs -->|"loads churn data"| node_telco_data
node_experiment_runs -->|"evaluates features"| node_evaluation_helpers
node_experiment_runs -->|"trains image words"| node_image_vqvae
node_experiment_runs -->|"trains set words"| node_set_vqvae
node_experiment_runs -->|"loads images"| node_fashion_data
node_experiment_runs -->|"uses traffic words"| node_traffic_words
node_experiment_runs -->|"loads traffic"| node_traffic_data
node_experiment_runs -.->|"uses sensor network"| node_traffic_graph
node_experiment_runs -->|"uses window words"| node_window_words
node_experiment_runs -->|"loads telecom data"| node_telecom_data
node_experiment_runs -->|"trains correction words"| node_residual_words
node_experiment_runs -.->|"tests compression"| node_autoencoder
node_experiment_runs -.->|"tests vocabularies"| node_vqvae
node_experiment_runs -.->|"tests word models"| node_word_vqvae
node_experiment_runs -->|"stores dictionary"| node_library_store
node_experiment_runs -->|"requests word reading"| node_llm_reader
node_experiment_runs -->|"scores reader results"| node_scorecard
node_library_store -->|"loads speaker model"| node_set_vqvae
node_llm_reader -->|"reads word cards"| node_library_store
node_experiment_runs -->|"measures word quality"| node_scorecard
node_experiment_runs -->|"audits library"| node_scorecard
node_vqvae -->|"reuses encoder"| node_autoencoder
node_set_vqvae -->|"builds on image model"| node_image_vqvae

click node_experiment_runs "https://github.com/deanmeiring/features-abstractions-meaning/tree/main/experiments"
click node_compute_limits "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/compute.py"
click node_fashion_data "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/images.py"
click node_telco_data "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/data.py"
click node_telecom_data "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/telecom.py"
click node_traffic_data "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/traffic.py"
click node_autoencoder "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/autoencoder.py"
click node_vqvae "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/vqvae.py"
click node_image_vqvae "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/image_vqvae.py"
click node_set_vqvae "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/set_vqvae.py"
click node_word_vqvae "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/word_vqvae.py"
click node_traffic_words "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/traffic_words.py"
click node_window_words "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/window_words.py"
click node_residual_words "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/residual_words.py"
click node_traffic_graph "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/traffic_graph.py"
click node_library_store "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/library.py"
click node_llm_reader "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/reader.py"
click node_scorecard "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/scorecard.py"
click node_evaluation_helpers "https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/data.py"

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_fashion_data,node_telco_data,node_telecom_data,node_traffic_data toneBlue
class node_autoencoder,node_vqvae,node_image_vqvae,node_set_vqvae,node_word_vqvae,node_traffic_words,node_window_words,node_residual_words toneAmber
class node_traffic_graph toneMint
class node_experiment_runs,node_compute_limits,node_scorecard,node_evaluation_helpers toneRose
class node_library_store,node_llm_reader,node_user toneIndigo
```

## Components

### Data preparation

- [Fashion-MNIST loader](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/images.py): `fam/images.py`
- [Telco churn data](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/data.py): `fam/data.py`
- [Telecom hourly data](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/telecom.py): `fam/telecom.py`
- [Traffic data](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/traffic.py): `fam/traffic.py`

### Word encoders

- [Autoencoder](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/autoencoder.py): `fam/autoencoder.py`
- [VQ-VAE](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/vqvae.py): `fam/vqvae.py`
- [Image VQ-VAE](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/image_vqvae.py): `fam/image_vqvae.py`
- [Set VQ-VAE](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/set_vqvae.py): `fam/set_vqvae.py`
- [Word VQ-VAE](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/word_vqvae.py): `fam/word_vqvae.py`
- [Traffic words](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/traffic_words.py): `fam/traffic_words.py`
- [Window words](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/window_words.py): `fam/window_words.py`
- [Correction words](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/residual_words.py): `fam/residual_words.py`

### Reuse and prediction

- [Traffic graph](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/traffic_graph.py): `fam/traffic_graph.py`

### Evaluation

- [Experiment runs](https://github.com/deanmeiring/features-abstractions-meaning/tree/main/experiments): `experiments`
- [Compute limits](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/compute.py): `fam/compute.py`
- [Word scorecard](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/scorecard.py): `fam/scorecard.py`
- [Data evaluation](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/data.py): `fam/data.py`

### Library and reader

- [Feature library](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/library.py): `fam/library.py`
- [LLM reader](https://github.com/deanmeiring/features-abstractions-meaning/blob/main/fam/reader.py): `fam/reader.py`

### Other components

- **Researcher**

## Connections

- Researcher → Experiment runs: runs experiments (evidence: `README.md`)
- Experiment runs → Compute limits: sets limits (evidence: `experiments/01_num_addon_services.py`)
- Experiment runs → Telco churn data: loads churn data (evidence: `experiments/01_num_addon_services.py`)
- Experiment runs → Data evaluation: evaluates features (evidence: `experiments/01_num_addon_services.py`)
- Experiment runs → Image VQ-VAE: trains image words (evidence: `experiments/10_set_words.py`)
- Experiment runs → Set VQ-VAE: trains set words (evidence: `experiments/10_set_words.py`)
- Experiment runs → Fashion-MNIST loader: loads images (evidence: `experiments/10_set_words.py`)
- Experiment runs → Traffic words: uses traffic words (evidence: `experiments/12_neighbour_words.py`)
- Experiment runs → Traffic data: loads traffic (evidence: `experiments/12_neighbour_words.py`)
- Experiment runs → Traffic graph: uses sensor network
- Experiment runs → Window words: uses window words (evidence: `experiments/20_telecom_reuse.py`)
- Experiment runs → Telecom hourly data: loads telecom data (evidence: `experiments/20_telecom_reuse.py`)
- Experiment runs → Correction words: trains correction words (evidence: `experiments/21_correction_words.py`)
- Experiment runs → Autoencoder: tests compression
- Experiment runs → VQ-VAE: tests vocabularies
- Experiment runs → Word VQ-VAE: tests word models
- Experiment runs → Feature library: stores dictionary (evidence: `experiments/19_reader_llm.py`)
- Experiment runs → LLM reader: requests word reading (evidence: `experiments/19_reader_llm.py`)
- Experiment runs → Word scorecard: scores reader results (evidence: `experiments/19_reader_llm.py`)
- Feature library → Set VQ-VAE: loads speaker model (evidence: `fam/library.py`)
- LLM reader → Feature library: reads word cards (evidence: `experiments/19_reader_llm.py`)
- Experiment runs → Word scorecard: measures word quality (evidence: `experiments/14_alphabet_scorecard.py`)
- Experiment runs → Word scorecard: audits library (evidence: `experiments/18_library_v0.py`)
- VQ-VAE → Autoencoder: reuses encoder (evidence: `fam/vqvae.py`)
- Set VQ-VAE → Image VQ-VAE: builds on image model (evidence: `fam/set_vqvae.py`)
