# christo08/meta-learning-regularisation-strategies architecture

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

- Interactive diagram: https://gitdiagram.com/christo08/meta-learning-regularisation-strategies
- Repository: https://github.com/christo08/meta-learning-regularisation-strategies

## Overview

This is an interactive research application for learning which neural-network regularisation technique suits a dataset. Users select datasets, optimise a base neural network, generate subsets and evaluated instances, prepare meta-feature datasets, then optimise/train/test meta-learners and inspect statistics. The graph preserves those documented stages and the model-training layer. Some connections are documented by the README or source index rather than complete excerpts; unsampled implementation details are not inferred beyond those references.

Main entry points: [`main.py`](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/main.py) (Experiment menu), [`src/ModelTrainer/nnTrainer.py`](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/ModelTrainer/nnTrainer.py) (Neural network trainer), [`src/ModelTrainer/metaLearnersTrainer.py`](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/ModelTrainer/metaLearnersTrainer.py) (Meta-learner training and testing), [`src/Utils/statsCalculator.py`](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/statsCalculator.py) (Dataset statistics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Dataset workflow"]
  node_cli["Experiment menu<br/>[main.py]"]
  node_settings["Dataset settings"]
  node_datasets["Dataset handling<br/>[datasetHandler.py]"]
  node_instances["Subset instances<br/>[instanceCreator.py]"]
end

subgraph group_models["Model experiments"]
  node_nnopt["NN optimisation<br/>[nnOptimiser.py]"]
  node_nntrain["Neural network trainer<br/>[nnTrainer.py]"]
  node_network["NN architecture<br/>[network.py]"]
end

subgraph group_meta["Meta-learning"]
  node_meta_data["Meta-feature preparation"]
  node_metaopt["Meta-learner optimisation"]
  node_metatrain["Meta-learner training and testing"]
  node_metamodel["Meta-learner models<br/>[metaLearner.py]"]
end

subgraph group_analysis["Statistics and data"]
  node_fileio["File and result handling<br/>[fileHandler.py]"]
  node_stats["Dataset statistics<br/>[statsCalculator.py]"]
  node_metastats["Learner statistics"]
  node_meta_features["Dataset meta-features"]
end

node_user(("Researcher"))

node_user -->|"selects experiments"| node_cli
node_cli -->|"selects datasets"| node_settings
node_cli -->|"optimises NN"| node_nnopt
node_cli -->|"creates instances"| node_instances
node_cli -->|"prepares datasets"| node_meta_data
node_cli -->|"optimises meta-learners"| node_metaopt
node_cli -->|"trains and tests"| node_metatrain
node_cli -->|"calculates statistics"| node_stats
node_settings -->|"loads settings"| node_fileio
node_instances -->|"creates subsets"| node_datasets
node_datasets -->|"calculates features"| node_meta_features
node_instances -->|"evaluates techniques"| node_nntrain
node_nnopt -->|"loads dataset"| node_datasets
node_nnopt -->|"tunes training"| node_nntrain
node_nntrain -->|"uses architecture"| node_network
node_nntrain -->|"records performance"| node_metastats
node_meta_data -.->|"loads feature data"| node_fileio
node_metaopt -.->|"tunes model types"| node_metatrain
node_metatrain -.->|"uses predictor"| node_metamodel
node_metatrain -->|"records results"| node_metastats
node_stats -->|"uses meta-features"| node_meta_data
node_stats -->|"loads and saves"| node_fileio
node_metastats -->|"calculates confusion"| node_stats

click node_cli "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/main.py"
click node_settings "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/datasetSettingHandler.py"
click node_datasets "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/datasetHandler.py"
click node_instances "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/instanceCreator.py"
click node_nnopt "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Optimisers/nnOptimiser.py"
click node_nntrain "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/ModelTrainer/nnTrainer.py"
click node_network "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Models/NN/network.py"
click node_meta_data "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/metaFeatureDatasetHandler.py"
click node_metaopt "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Optimisers/metaLearnersOptimiser.py"
click node_metatrain "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/ModelTrainer/metaLearnersTrainer.py"
click node_metamodel "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Models/metaLearner.py"
click node_fileio "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/fileHandler.py"
click node_stats "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/statsCalculator.py"
click node_metastats "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/metaLearnerStatsCalculator.py"
click node_meta_features "https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/metaFeatureCalculator.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_cli,node_settings,node_datasets,node_instances toneBlue
class node_nnopt,node_nntrain,node_network toneAmber
class node_meta_data,node_metaopt,node_metatrain,node_metamodel toneMint
class node_fileio,node_stats,node_metastats,node_meta_features toneRose
class node_user toneIndigo
```

## Components

### Dataset workflow

- [Experiment menu](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/main.py): `main.py`
- [Dataset settings](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/datasetSettingHandler.py): `src/Utils/datasetSettingHandler.py`
- [Dataset handling](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/datasetHandler.py): `src/Utils/datasetHandler.py`
- [Subset instances](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/instanceCreator.py): `src/Utils/instanceCreator.py`

### Model experiments

- [NN optimisation](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Optimisers/nnOptimiser.py): `src/Optimisers/nnOptimiser.py`
- [Neural network trainer](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/ModelTrainer/nnTrainer.py): `src/ModelTrainer/nnTrainer.py`
- [NN architecture](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Models/NN/network.py): `src/Models/NN/network.py`

### Meta-learning

- [Meta-feature preparation](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/metaFeatureDatasetHandler.py): `src/Utils/metaFeatureDatasetHandler.py`
- [Meta-learner optimisation](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Optimisers/metaLearnersOptimiser.py): `src/Optimisers/metaLearnersOptimiser.py`
- [Meta-learner training and testing](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/ModelTrainer/metaLearnersTrainer.py): `src/ModelTrainer/metaLearnersTrainer.py`
- [Meta-learner models](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Models/metaLearner.py): `src/Models/metaLearner.py`

### Statistics and data

- [File and result handling](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/fileHandler.py): `src/Utils/fileHandler.py`
- [Dataset statistics](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/statsCalculator.py): `src/Utils/statsCalculator.py`
- [Learner statistics](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/metaLearnerStatsCalculator.py): `src/Utils/metaLearnerStatsCalculator.py`
- [Dataset meta-features](https://github.com/christo08/meta-learning-regularisation-strategies/blob/master/src/Utils/metaFeatureCalculator.py): `src/Utils/metaFeatureCalculator.py`

### Other components

- **Researcher**

## Connections

- Researcher → Experiment menu: selects experiments (evidence: `README.md`)
- Experiment menu → Dataset settings: selects datasets (evidence: `main.py`)
- Experiment menu → NN optimisation: optimises NN (evidence: `main.py`)
- Experiment menu → Subset instances: creates instances (evidence: `main.py`)
- Experiment menu → Meta-feature preparation: prepares datasets (evidence: `main.py`)
- Experiment menu → Meta-learner optimisation: optimises meta-learners (evidence: `main.py`)
- Experiment menu → Meta-learner training and testing: trains and tests (evidence: `main.py`)
- Experiment menu → Dataset statistics: calculates statistics (evidence: `main.py`)
- Dataset settings → File and result handling: loads settings (evidence: `src/Utils/datasetSettingHandler.py`)
- Subset instances → Dataset handling: creates subsets (evidence: `README.md`)
- Dataset handling → Dataset meta-features: calculates features (evidence: `src/Utils/datasetHandler.py`)
- Subset instances → Neural network trainer: evaluates techniques (evidence: `src/Utils/instanceCreator.py`)
- NN optimisation → Dataset handling: loads dataset (evidence: `src/Optimisers/nnOptimiser.py`)
- NN optimisation → Neural network trainer: tunes training (evidence: `src/Optimisers/nnOptimiser.py`)
- Neural network trainer → NN architecture: uses architecture (evidence: `src/ModelTrainer/nnTrainer.py`)
- Neural network trainer → Learner statistics: records performance (evidence: `src/ModelTrainer/nnTrainer.py`)
- Meta-feature preparation → File and result handling: loads feature data (evidence: `src/Utils/metaFeatureDatasetHandler.py`)
- Meta-learner optimisation → Meta-learner training and testing: tunes model types (evidence: `src/Optimisers/metaLearnersOptimiser.py`)
- Meta-learner training and testing → Meta-learner models: uses predictor (evidence: `src/ModelTrainer/metaLearnersTrainer.py`)
- Meta-learner training and testing → Learner statistics: records results (evidence: `src/ModelTrainer/metaLearnersTrainer.py`)
- Dataset statistics → Meta-feature preparation: uses meta-features (evidence: `src/Utils/statsCalculator.py`)
- Dataset statistics → File and result handling: loads and saves (evidence: `src/Utils/statsCalculator.py`)
- Learner statistics → Dataset statistics: calculates confusion (evidence: `src/Utils/metaLearnerStatsCalculator.py`)
