# huangzih/waveletrepresentation architecture

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

- Interactive diagram: https://gitdiagram.com/huangzih/waveletrepresentation
- Repository: https://github.com/huangzih/waveletrepresentation

## Overview

This repository provides research code for data-efficient classification and regression of anomalous-diffusion trajectories. The documented workflow generates trajectory data, then trains a wavelet-based model from training and validation CSVs. It also contains feature-based estimators and trajectory-sequence architectures as alternative modeling families. The excerpts show dataset construction and model components, but not every training-loop call; those internal connections are left unasserted. The broader modeling options are identified from the source index and file tree.

Main entry points: [`classification/wavelet`](https://github.com/huangzih/waveletrepresentation/tree/main/classification/wavelet) (Wavelet models), [`datasets/sim-gen`](https://github.com/huangzih/waveletrepresentation/tree/main/datasets/sim-gen) (Classification data), [`classification/feature`](https://github.com/huangzih/waveletrepresentation/tree/main/classification/feature) (Feature models), [`classification/trajectory`](https://github.com/huangzih/waveletrepresentation/tree/main/classification/trajectory) (Sequence models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data generation"]
  node_cls_gen["Classification data"]
  node_reg_gen["Regression data"]
  node_trajectory_csv["Trajectory CSV"]
end

subgraph group_classification["Classification"]
  node_cls_features["Feature models"]
  node_cls_sequence["Sequence models"]
  node_cls_wavelet["Wavelet models"]
end

subgraph group_regression["Regression"]
  node_reg_features["Feature models"]
  node_reg_sequence["Sequence models"]
  node_reg_wavelet["Wavelet models"]
end

subgraph group_methods["Model families"]
  node_feature_methods["Handcrafted features"]
  node_sequence_methods["Sequence architectures"]
  node_wavelet_methods["Wavelet architectures"]
end

node_researcher(("Researcher"))
node_trained_models["Trained models"]

node_researcher -->|"generates data"| node_cls_gen
node_researcher -->|"trains model"| node_cls_wavelet
node_cls_gen -->|"writes CSV"| node_trajectory_csv
node_researcher -.->|"generates data"| node_reg_gen
node_reg_gen -.->|"writes CSV"| node_trajectory_csv
node_trajectory_csv -.->|"trains from"| node_cls_features
node_trajectory_csv -.->|"trains from"| node_cls_sequence
node_trajectory_csv -.->|"trains from"| node_reg_features
node_trajectory_csv -.->|"trains from"| node_reg_sequence
node_trajectory_csv -.->|"trains from"| node_reg_wavelet
node_cls_features -.->|"implements"| node_feature_methods
node_cls_sequence -.->|"implements"| node_sequence_methods
node_cls_wavelet -.->|"implements"| node_wavelet_methods
node_cls_wavelet -.->|"saves models"| node_trained_models
node_reg_wavelet -.->|"saves models"| node_trained_models

click node_cls_gen "https://github.com/huangzih/waveletrepresentation/tree/main/datasets/sim-gen"
click node_reg_gen "https://github.com/huangzih/waveletrepresentation/tree/main/datasets/sim-gen"
click node_cls_features "https://github.com/huangzih/waveletrepresentation/tree/main/classification/feature"
click node_cls_sequence "https://github.com/huangzih/waveletrepresentation/tree/main/classification/trajectory"
click node_cls_wavelet "https://github.com/huangzih/waveletrepresentation/tree/main/classification/wavelet"
click node_reg_features "https://github.com/huangzih/waveletrepresentation/tree/main/regression/feature"
click node_reg_sequence "https://github.com/huangzih/waveletrepresentation/tree/main/regression/trajectory"
click node_reg_wavelet "https://github.com/huangzih/waveletrepresentation/tree/main/regression/wavelet"
click node_feature_methods "https://github.com/huangzih/waveletrepresentation/tree/main/classification/feature"
click node_sequence_methods "https://github.com/huangzih/waveletrepresentation/tree/main/classification/trajectory"
click node_wavelet_methods "https://github.com/huangzih/waveletrepresentation/tree/main/classification/wavelet"

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_cls_gen,node_reg_gen,node_trajectory_csv toneBlue
class node_cls_features,node_cls_sequence,node_cls_wavelet toneAmber
class node_reg_features,node_reg_sequence,node_reg_wavelet toneMint
class node_feature_methods,node_sequence_methods,node_wavelet_methods toneRose
class node_researcher,node_trained_models toneIndigo
```

## Components

### Data generation

- [Classification data](https://github.com/huangzih/waveletrepresentation/tree/main/datasets/sim-gen): `datasets/sim-gen`
- [Regression data](https://github.com/huangzih/waveletrepresentation/tree/main/datasets/sim-gen): `datasets/sim-gen`
- **Trajectory CSV**

### Classification

- [Feature models](https://github.com/huangzih/waveletrepresentation/tree/main/classification/feature): `classification/feature`
- [Sequence models](https://github.com/huangzih/waveletrepresentation/tree/main/classification/trajectory): `classification/trajectory`
- [Wavelet models](https://github.com/huangzih/waveletrepresentation/tree/main/classification/wavelet): `classification/wavelet`

### Regression

- [Feature models](https://github.com/huangzih/waveletrepresentation/tree/main/regression/feature): `regression/feature`
- [Sequence models](https://github.com/huangzih/waveletrepresentation/tree/main/regression/trajectory): `regression/trajectory`
- [Wavelet models](https://github.com/huangzih/waveletrepresentation/tree/main/regression/wavelet): `regression/wavelet`

### Model families

- [Handcrafted features](https://github.com/huangzih/waveletrepresentation/tree/main/classification/feature): `classification/feature`
- [Sequence architectures](https://github.com/huangzih/waveletrepresentation/tree/main/classification/trajectory): `classification/trajectory`
- [Wavelet architectures](https://github.com/huangzih/waveletrepresentation/tree/main/classification/wavelet): `classification/wavelet`

### Other components

- **Researcher**
- **Trained models**

## Connections

- Researcher → Classification data: generates data (evidence: `README.md`)
- Researcher → Wavelet models: trains model (evidence: `README.md`)
- Classification data → Trajectory CSV: writes CSV (evidence: `datasets/sim-gen/cls_datasets_3d.py`)
- Researcher → Regression data: generates data
- Regression data → Trajectory CSV: writes CSV
- Trajectory CSV → Feature models: trains from
- Trajectory CSV → Sequence models: trains from
- Trajectory CSV → Feature models: trains from
- Trajectory CSV → Sequence models: trains from
- Trajectory CSV → Wavelet models: trains from
- Feature models → Handcrafted features: implements
- Sequence models → Sequence architectures: implements
- Wavelet models → Wavelet architectures: implements
- Wavelet models → Trained models: saves models
- Wavelet models → Trained models: saves models
