# 15399240803/tsse-bim architecture

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

- Interactive diagram: https://gitdiagram.com/15399240803/tsse-bim
- Repository: https://github.com/15399240803/tsse-bim
- Video tour (about a minute): https://gitdiagram.com/15399240803/tsse-bim/video

## Overview

TSSE-BIM is a Python toolkit for imbalanced binary classification, centered on training and comparing ensemble classifiers. Its benchmark runner loads datasets, selects an algorithm, fits and predicts across folds, then computes classification metrics. The repository also includes alternative ensemble implementations and dataset/statistical-analysis utilities. Edges reflect the runner’s indexed module references and the explicit calls shown in excerpts; several algorithm internals and analysis utilities were not sampled, so their connections are intentionally limited.

Main entry points: [`TSSE-BIM/runEnsemble.py`](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/runEnsemble.py) (Benchmark runner), [`TSSE-BIM/ensemble/equalizationensemble.py`](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/equalizationensemble.py) (EASE), [`TSSE-BIM/tools/imbalancedmetrics.py`](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/imbalancedmetrics.py) (Imbalance metrics), [`TSSE-BIM/ensemble/tsse.py`](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/tsse.py) (TSSE)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Benchmark workflow"]
  node_runner["Benchmark runner<br/>[runEnsemble.py]"]
  node_results["Fold scores<br/>[runEnsemble.py]"]
end

subgraph group_ensembles["Ensemble classifiers"]
  node_tsse["TSSE<br/>[tsse.py]"]
  node_ease["EASE"]
  node_selfpaced["Self-paced ensemble"]
  node_canonical["Canonical ensembles"]
  node_balance["Balance sampling<br/>[BS_AS.py]"]
  node_ecu["ECUBoost RF<br/>[ECUBoost_RF.py]"]
  node_boostobu["Boost OBU<br/>[boost_OBU.py]"]
  node_resampling["Canonical resampling"]
  node_hub["Hub ensemble<br/>[hub_ensemble.py]"]
  node_rbu["RBU ensemble<br/>[rbu.py]"]
end

subgraph group_data["Data utilities"]
  node_loader["Dataset loader<br/>[dataprocess.py]"]
  node_exact["Dataset profiling<br/>[data_exact.py]"]
end

subgraph group_analysis["Evaluation analysis"]
  node_metrics["Imbalance metrics"]
  node_diversity["Diversity measures"]
  node_draw["Result drawing<br/>[draw.py]"]
  node_picture["Plot utilities<br/>[picture.py]"]
  node_fri["Friedman analysis<br/>[fri.py]"]
  node_little_fir["Statistical plots<br/>[little_fir.py]"]
  node_stac["Statistical tests<br/>[__init__.py]"]
end

node_user(("Researcher"))

node_user -->|"selects and runs"| node_runner
node_runner -->|"loads datasets"| node_loader
node_runner -->|"selects algorithm"| node_tsse
node_runner -->|"selects algorithm"| node_ease
node_runner -->|"selects algorithm"| node_selfpaced
node_runner -->|"selects algorithm"| node_canonical
node_runner -->|"selects algorithm"| node_balance
node_runner -->|"scores predictions"| node_metrics
node_runner -->|"records scores"| node_results
node_tsse -->|"uses metrics"| node_metrics
node_ease -->|"uses metrics"| node_metrics
node_ease -->|"references"| node_selfpaced
node_runner -->|"selects algorithm"| node_ecu
node_runner -.->|"selects algorithm"| node_boostobu
node_runner -.->|"selects algorithm"| node_resampling
node_runner -.->|"selects algorithm"| node_hub
node_runner -.->|"selects algorithm"| node_rbu
node_exact -->|"reads datasets"| node_loader
node_fri -->|"runs tests"| node_stac
node_little_fir -->|"runs tests"| node_stac

click node_runner "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/runEnsemble.py"
click node_loader "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/dataprocess.py"
click node_metrics "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/imbalancedmetrics.py"
click node_results "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/runEnsemble.py"
click node_tsse "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/tsse.py"
click node_ease "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/equalizationensemble.py"
click node_selfpaced "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/self_paced_ensemble.py"
click node_canonical "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/canonical_ensemble.py"
click node_balance "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/BS_AS.py"
click node_ecu "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/ECUBoost_RF.py"
click node_boostobu "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/boost_OBU.py"
click node_resampling "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/canonical_resampling.py"
click node_hub "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/hub_ensemble.py"
click node_rbu "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/rbu.py"
click node_diversity "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/diversitymeasure.py"
click node_draw "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/draw.py"
click node_picture "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/picture.py"
click node_exact "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/data_exact.py"
click node_fri "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/fri.py"
click node_little_fir "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/little_fir.py"
click node_stac "https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/stac/__init__.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_runner,node_results toneBlue
class node_tsse,node_ease,node_selfpaced,node_canonical,node_balance,node_ecu,node_boostobu,node_resampling,node_hub,node_rbu toneAmber
class node_loader,node_exact toneMint
class node_metrics,node_diversity,node_draw,node_picture,node_fri,node_little_fir,node_stac toneRose
class node_user toneIndigo
```

## Components

### Benchmark workflow

- [Benchmark runner](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/runEnsemble.py): `TSSE-BIM/runEnsemble.py`
- [Fold scores](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/runEnsemble.py): `TSSE-BIM/runEnsemble.py`

### Ensemble classifiers

- [TSSE](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/tsse.py): `TSSE-BIM/ensemble/tsse.py`
- [EASE](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/equalizationensemble.py): `TSSE-BIM/ensemble/equalizationensemble.py`
- [Self-paced ensemble](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/self_paced_ensemble.py): `TSSE-BIM/ensemble/self_paced_ensemble.py`
- [Canonical ensembles](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/canonical_ensemble.py): `TSSE-BIM/ensemble/canonical_ensemble.py`
- [Balance sampling](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/BS_AS.py): `TSSE-BIM/ensemble/BS_AS.py`
- [ECUBoost RF](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/ECUBoost_RF.py): `TSSE-BIM/ensemble/ECUBoost_RF.py`
- [Boost OBU](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/boost_OBU.py): `TSSE-BIM/ensemble/boost_OBU.py`
- [Canonical resampling](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/canonical_resampling.py): `TSSE-BIM/ensemble/canonical_resampling.py`
- [Hub ensemble](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/hub_ensemble.py): `TSSE-BIM/ensemble/hub_ensemble.py`
- [RBU ensemble](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/ensemble/rbu.py): `TSSE-BIM/ensemble/rbu.py`

### Data utilities

- [Dataset loader](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/dataprocess.py): `TSSE-BIM/tools/dataprocess.py`
- [Dataset profiling](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/data_exact.py): `TSSE-BIM/data_exact.py`

### Evaluation analysis

- [Imbalance metrics](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/imbalancedmetrics.py): `TSSE-BIM/tools/imbalancedmetrics.py`
- [Diversity measures](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/diversitymeasure.py): `TSSE-BIM/tools/diversitymeasure.py`
- [Result drawing](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/draw.py): `TSSE-BIM/tools/draw.py`
- [Plot utilities](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/picture.py): `TSSE-BIM/tools/picture.py`
- [Friedman analysis](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/fri.py): `TSSE-BIM/tools/fri.py`
- [Statistical plots](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/little_fir.py): `TSSE-BIM/tools/little_fir.py`
- [Statistical tests](https://github.com/15399240803/tsse-bim/blob/main/TSSE-BIM/tools/stac/__init__.py): `TSSE-BIM/tools/stac/__init__.py`

### Other components

- **Researcher**

## Connections

- Researcher → Benchmark runner: selects and runs (evidence: `README.md`)
- Benchmark runner → Dataset loader: loads datasets (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → TSSE: selects algorithm (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → EASE: selects algorithm (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → Self-paced ensemble: selects algorithm (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → Canonical ensembles: selects algorithm (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → Balance sampling: selects algorithm (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → Imbalance metrics: scores predictions (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → Fold scores: records scores (evidence: `TSSE-BIM/runEnsemble.py`)
- TSSE → Imbalance metrics: uses metrics (evidence: `TSSE-BIM/ensemble/tsse.py`)
- EASE → Imbalance metrics: uses metrics (evidence: `TSSE-BIM/ensemble/equalizationensemble.py`)
- EASE → Self-paced ensemble: references (evidence: `TSSE-BIM/ensemble/equalizationensemble.py`)
- Benchmark runner → ECUBoost RF: selects algorithm (evidence: `TSSE-BIM/runEnsemble.py`)
- Benchmark runner → Boost OBU: selects algorithm
- Benchmark runner → Canonical resampling: selects algorithm
- Benchmark runner → Hub ensemble: selects algorithm
- Benchmark runner → RBU ensemble: selects algorithm
- Dataset profiling → Dataset loader: reads datasets (evidence: `TSSE-BIM/data_exact.py`)
- Friedman analysis → Statistical tests: runs tests (evidence: `TSSE-BIM/tools/fri.py`)
- Statistical plots → Statistical tests: runs tests (evidence: `TSSE-BIM/tools/little_fir.py`)
