# matmarcio/softx-d-22-00195 architecture

> Architecture diagram of the GitHub repository matmarcio/softx-d-22-00195, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/matmarcio/softx-d-22-00195
- Repository: https://github.com/matmarcio/softx-d-22-00195

## Overview

GPR Algorithm is a small Python classifier that evolves fuzzy genetic-programming rules from labeled samples, predicts class labels, and exposes interpretable rules and feature rankings. The graph focuses on those runtime capabilities rather than packaging or tests. The implementation is concentrated in one source file; several internal details are represented as distinct responsibilities sharing that path. The excerpts omit parts of training and rule rendering, so only directly shown or README-documented relationships are connected.

Main entry points: [`gpr_algorithm/algorithm.py`](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py) (GPR classifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_classifier["Classifier runtime"]
  node_gpr["GPR classifier<br/>[algorithm.py]"]
  node_complement["Sample complement<br/>[algorithm.py]"]
  node_gp_setup["GP configuration<br/>[algorithm.py]"]
  node_fitness["Fitness evaluation<br/>[algorithm.py]"]
  node_evolution["Population evolution<br/>[algorithm.py]"]
  node_predictions["Class prediction<br/>[algorithm.py]"]
end

subgraph group_interpretation["Interpretability"]
  node_rules["Rule rendering<br/>[algorithm.py]"]
  node_terminal_readability["Terminal translation<br/>[algorithm.py]"]
  node_ranking["Feature ranking<br/>[algorithm.py]"]
end

node_user(("Classifier user"))

node_user -->|"fits or predicts"| node_gpr
node_gpr -->|"configures"| node_gp_setup
node_gp_setup -->|"registers"| node_fitness
node_gpr -->|"evolves population"| node_evolution
node_gpr -->|"complements samples"| node_complement
node_gpr -->|"predicts labels"| node_predictions
node_gpr -->|"exposes rules"| node_rules
node_rules -->|"translates terms"| node_terminal_readability
node_gpr -->|"ranks features"| node_ranking

click node_gpr "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_complement "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_gp_setup "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_fitness "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_evolution "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_predictions "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_rules "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_terminal_readability "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py"
click node_ranking "https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.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_gpr,node_complement,node_gp_setup,node_fitness,node_evolution,node_predictions,node_user toneBlue
class node_rules,node_terminal_readability,node_ranking toneAmber
```

## Components

### Classifier runtime

- [GPR classifier](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`
- [Sample complement](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`
- [GP configuration](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`
- [Fitness evaluation](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`
- [Population evolution](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`
- [Class prediction](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`

### Interpretability

- [Rule rendering](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`
- [Terminal translation](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`
- [Feature ranking](https://github.com/matmarcio/softx-d-22-00195/blob/main/gpr_algorithm/algorithm.py): `gpr_algorithm/algorithm.py`

### Other components

- **Classifier user**

## Connections

- Classifier user → GPR classifier: fits or predicts (evidence: `README.rst`)
- GPR classifier → GP configuration: configures (evidence: `gpr_algorithm/algorithm.py`)
- GP configuration → Fitness evaluation: registers (evidence: `gpr_algorithm/algorithm.py`)
- GPR classifier → Population evolution: evolves population (evidence: `gpr_algorithm/algorithm.py`)
- GPR classifier → Sample complement: complements samples (evidence: `gpr_algorithm/algorithm.py`)
- GPR classifier → Class prediction: predicts labels (evidence: `gpr_algorithm/algorithm.py`)
- GPR classifier → Rule rendering: exposes rules (evidence: `gpr_algorithm/algorithm.py`)
- Rule rendering → Terminal translation: translates terms (evidence: `gpr_algorithm/algorithm.py`)
- GPR classifier → Feature ranking: ranks features (evidence: `gpr_algorithm/algorithm.py`)
