# vittuduarte/master-thesis architecture

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

- Interactive diagram: https://gitdiagram.com/vittuduarte/master-thesis
- Repository: https://github.com/vittuduarte/master-thesis

## Overview

This is a research-reproducibility repository for experiments on time-series classification and meta-learning representations. The clearest executable workflow loads UCR time-series datasets, transforms representations, runs nearest-neighbor classification, and records accuracy. Separate scripts audit class balance and demonstrate CNN training/evaluation. The README identifies thesis experiments, while the two notebooks’ contents were not sampled, so their internal stages and connections cannot be verified.

Main entry points: [`Knn.py`](https://github.com/vittuduarte/master-thesis/blob/main/Knn.py) (1-NN benchmarks), [`BalancedClass.py`](https://github.com/vittuduarte/master-thesis/blob/main/BalancedClass.py) (Class balance audit), [`cnn.py`](https://github.com/vittuduarte/master-thesis/blob/main/cnn.py) (ECG data preparation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_benchmark["Representation benchmarks"]
  node_knn_load["Dataset loading<br/>[Knn.py]"]
  node_representations["Series transforms<br/>[Knn.py]"]
  node_knn_bench["1-NN benchmarks<br/>[Knn.py]"]
  node_knn_results["Accuracy results<br/>[Knn.py]"]
  node_meta_notebook["Meta-classifier experiment"]
  node_selection_notebook["Dynamic selection experiment"]
end

subgraph group_analysis["Dataset analysis"]
  node_balance_load["Dataset loading<br/>[BalancedClass.py]"]
  node_balance_audit["Class balance audit<br/>[BalancedClass.py]"]
  node_balance_report["Balance report<br/>[BalancedClass.py]"]
end

subgraph group_neural["Neural experiments"]
  node_cnn_data["ECG data preparation<br/>[cnn.py]"]
  node_cnn_model["CNN training<br/>[cnn.py]"]
  node_cnn_eval["Model evaluation<br/>[cnn.py]"]
end

node_researcher(("Researcher"))
node_ucr[("UCR datasets")]

node_researcher -->|"runs experiments"| node_knn_bench
node_knn_load -->|"loads splits"| node_ucr
node_knn_bench -->|"loads data"| node_knn_load
node_knn_bench -->|"transforms series"| node_representations
node_knn_bench -->|"records accuracy"| node_knn_results
node_researcher -->|"runs audit"| node_balance_audit
node_balance_load -->|"loads splits"| node_ucr
node_balance_audit -->|"checks datasets"| node_balance_load
node_balance_audit -->|"writes plots"| node_balance_report
node_researcher -->|"runs example"| node_cnn_data
node_cnn_data -->|"provides prepared data"| node_cnn_model
node_cnn_model -->|"evaluates model"| node_cnn_eval

click node_knn_load "https://github.com/vittuduarte/master-thesis/blob/main/Knn.py"
click node_representations "https://github.com/vittuduarte/master-thesis/blob/main/Knn.py"
click node_knn_bench "https://github.com/vittuduarte/master-thesis/blob/main/Knn.py"
click node_knn_results "https://github.com/vittuduarte/master-thesis/blob/main/Knn.py"
click node_meta_notebook "https://github.com/vittuduarte/master-thesis/blob/main/meta-classifier.ipynb"
click node_selection_notebook "https://github.com/vittuduarte/master-thesis/blob/main/model-dynamic-selection.ipynb"
click node_balance_load "https://github.com/vittuduarte/master-thesis/blob/main/BalancedClass.py"
click node_balance_audit "https://github.com/vittuduarte/master-thesis/blob/main/BalancedClass.py"
click node_balance_report "https://github.com/vittuduarte/master-thesis/blob/main/BalancedClass.py"
click node_cnn_data "https://github.com/vittuduarte/master-thesis/blob/main/cnn.py"
click node_cnn_model "https://github.com/vittuduarte/master-thesis/blob/main/cnn.py"
click node_cnn_eval "https://github.com/vittuduarte/master-thesis/blob/main/cnn.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_knn_load,node_representations,node_knn_bench,node_knn_results,node_meta_notebook,node_selection_notebook toneBlue
class node_balance_load,node_balance_audit,node_balance_report,node_ucr toneAmber
class node_cnn_data,node_cnn_model,node_cnn_eval toneMint
class node_researcher toneIndigo
```

## Components

### Representation benchmarks

- [Dataset loading](https://github.com/vittuduarte/master-thesis/blob/main/Knn.py): `Knn.py`
- [Series transforms](https://github.com/vittuduarte/master-thesis/blob/main/Knn.py): `Knn.py`
- [1-NN benchmarks](https://github.com/vittuduarte/master-thesis/blob/main/Knn.py): `Knn.py`
- [Accuracy results](https://github.com/vittuduarte/master-thesis/blob/main/Knn.py): `Knn.py`
- [Meta-classifier experiment](https://github.com/vittuduarte/master-thesis/blob/main/meta-classifier.ipynb): `meta-classifier.ipynb`
- [Dynamic selection experiment](https://github.com/vittuduarte/master-thesis/blob/main/model-dynamic-selection.ipynb): `model-dynamic-selection.ipynb`

### Dataset analysis

- [Dataset loading](https://github.com/vittuduarte/master-thesis/blob/main/BalancedClass.py): `BalancedClass.py`
- [Class balance audit](https://github.com/vittuduarte/master-thesis/blob/main/BalancedClass.py): `BalancedClass.py`
- [Balance report](https://github.com/vittuduarte/master-thesis/blob/main/BalancedClass.py): `BalancedClass.py`

### Neural experiments

- [ECG data preparation](https://github.com/vittuduarte/master-thesis/blob/main/cnn.py): `cnn.py`
- [CNN training](https://github.com/vittuduarte/master-thesis/blob/main/cnn.py): `cnn.py`
- [Model evaluation](https://github.com/vittuduarte/master-thesis/blob/main/cnn.py): `cnn.py`

### Other components

- **Researcher**
- **UCR datasets**

## Connections

- Researcher → 1-NN benchmarks: runs experiments (evidence: `Knn.py`)
- Dataset loading → UCR datasets: loads splits (evidence: `Knn.py`)
- 1-NN benchmarks → Dataset loading: loads data (evidence: `Knn.py`)
- 1-NN benchmarks → Series transforms: transforms series (evidence: `Knn.py`)
- 1-NN benchmarks → Accuracy results: records accuracy (evidence: `Knn.py`)
- Researcher → Class balance audit: runs audit (evidence: `BalancedClass.py`)
- Dataset loading → UCR datasets: loads splits (evidence: `BalancedClass.py`)
- Class balance audit → Dataset loading: checks datasets (evidence: `BalancedClass.py`)
- Class balance audit → Balance report: writes plots (evidence: `BalancedClass.py`)
- Researcher → ECG data preparation: runs example (evidence: `cnn.py`)
- ECG data preparation → CNN training: provides prepared data (evidence: `cnn.py`)
- CNN training → Model evaluation: evaluates model (evidence: `cnn.py`)
