# hugokoopmans/dataminer architecture

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

- Interactive diagram: https://gitdiagram.com/hugokoopmans/dataminer
- Repository: https://github.com/hugokoopmans/dataminer

## Overview

dataMineR is an R-based workflow for supervised data mining, organized around CRISP-DM and report generation. A user supplies a dataset and works through data understanding, preparation, model development, evaluation, and deployment; the README specifically says the project automates the middle four phases and aims to deliver a scoring model. The numbered stage scripts anchor those capabilities. The supplied source excerpts only show report-page JavaScript, so stage-to-stage links reflect README documentation, not inspected R calls; deployment details are especially limited.

Main entry points: [`0-datamineR-introduction/datamineR-introduction.Rmd`](https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/datamineR-introduction.Rmd) (Business understanding), [`1-data-understanding`](https://github.com/hugokoopmans/dataminer/tree/master/1-data-understanding) (Data understanding), [`2-data-preperation`](https://github.com/hugokoopmans/dataminer/tree/master/2-data-preperation) (Data preparation), [`3-model-development`](https://github.com/hugokoopmans/dataminer/tree/master/3-model-development) (Model development)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["CRISP-DM workflow"]
  node_dataset[("Input data")]
  node_business["Business understanding"]
  node_understanding["Data understanding"]
  node_preparation["Data preparation"]
  node_modeling["Model development"]
  node_evaluation["Model evaluation"]
  node_deployment["Model deployment<br/>[model-deployment.R]"]
  node_scoring["Scoring model<br/>[model-deployment.R]"]
end

subgraph group_reporting["Report presentation"]
  node_page_custom["Report navigation<br/>[custom.js]"]
  node_lightbox["Plot lightbox<br/>[slimbox2.js]"]
  node_tabs["Report tabs<br/>[tabs.js]"]
end

node_analyst(("Data analyst"))

node_analyst -->|"provides data"| node_dataset
node_analyst -->|"runs workflow"| node_business
node_business -->|"starts cycle"| node_understanding
node_understanding -->|"next phase"| node_preparation
node_preparation -->|"next phase"| node_modeling
node_modeling -->|"next phase"| node_evaluation
node_evaluation -->|"next phase"| node_deployment
node_deployment -->|"delivers model"| node_scoring
node_page_custom -->|"activates plots"| node_lightbox

click node_dataset "https://github.com/hugokoopmans/dataminer/tree/master/data"
click node_business "https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/datamineR-introduction.Rmd"
click node_understanding "https://github.com/hugokoopmans/dataminer/tree/master/1-data-understanding"
click node_preparation "https://github.com/hugokoopmans/dataminer/tree/master/2-data-preperation"
click node_modeling "https://github.com/hugokoopmans/dataminer/tree/master/3-model-development"
click node_evaluation "https://github.com/hugokoopmans/dataminer/tree/master/4-model-evaluation"
click node_deployment "https://github.com/hugokoopmans/dataminer/blob/master/5-model-deployment/model-deployment.R"
click node_scoring "https://github.com/hugokoopmans/dataminer/blob/master/5-model-deployment/model-deployment.R"
click node_page_custom "https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/javascripts/custom.js"
click node_lightbox "https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/javascripts/slimbox2.js"
click node_tabs "https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/javascripts/tabs.js"

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_dataset,node_business,node_understanding,node_preparation,node_modeling,node_evaluation,node_deployment,node_scoring toneBlue
class node_page_custom,node_lightbox,node_tabs toneAmber
class node_analyst toneIndigo
```

## Components

### CRISP-DM workflow

- [Input data](https://github.com/hugokoopmans/dataminer/tree/master/data): `data`
- [Business understanding](https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/datamineR-introduction.Rmd): `0-datamineR-introduction/datamineR-introduction.Rmd`
- [Data understanding](https://github.com/hugokoopmans/dataminer/tree/master/1-data-understanding): `1-data-understanding`
- [Data preparation](https://github.com/hugokoopmans/dataminer/tree/master/2-data-preperation): `2-data-preperation`
- [Model development](https://github.com/hugokoopmans/dataminer/tree/master/3-model-development): `3-model-development`
- [Model evaluation](https://github.com/hugokoopmans/dataminer/tree/master/4-model-evaluation): `4-model-evaluation`
- [Model deployment](https://github.com/hugokoopmans/dataminer/blob/master/5-model-deployment/model-deployment.R): `5-model-deployment/model-deployment.R`
- [Scoring model](https://github.com/hugokoopmans/dataminer/blob/master/5-model-deployment/model-deployment.R): `5-model-deployment/model-deployment.R`

### Report presentation

- [Report navigation](https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/javascripts/custom.js): `0-datamineR-introduction/javascripts/custom.js`
- [Plot lightbox](https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/javascripts/slimbox2.js): `0-datamineR-introduction/javascripts/slimbox2.js`
- [Report tabs](https://github.com/hugokoopmans/dataminer/blob/master/0-datamineR-introduction/javascripts/tabs.js): `0-datamineR-introduction/javascripts/tabs.js`

### Other components

- **Data analyst**

## Connections

- Data analyst → Input data: provides data (evidence: `README.md`)
- Data analyst → Business understanding: runs workflow (evidence: `README.md`)
- Business understanding → Data understanding: starts cycle (evidence: `README.md`)
- Data understanding → Data preparation: next phase (evidence: `README.md`)
- Data preparation → Model development: next phase (evidence: `README.md`)
- Model development → Model evaluation: next phase (evidence: `README.md`)
- Model evaluation → Model deployment: next phase (evidence: `README.md`)
- Model deployment → Scoring model: delivers model (evidence: `README.md`)
- Report navigation → Plot lightbox: activates plots (evidence: `0-datamineR-introduction/javascripts/custom.js`)
