# maganpreet-singh/decision-tree-machine-learning architecture

> Architecture diagram of the GitHub repository maganpreet-singh/decision-tree-machine-learning, 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/maganpreet-singh/decision-tree-machine-learning
- Repository: https://github.com/maganpreet-singh/decision-tree-machine-learning

## Overview

This repository is a hands-on decision-tree learning project, not a packaged runtime application. Its two notebooks cover classification and regression; the README describes a learning progression from decision-tree foundations through preprocessing, training, prediction, evaluation, visualization, pruning, tuning, cross-validation, and feature importance. The CSV is present, but the available README excerpt and source material do not establish which notebook uses it. Notebook internals and data-flow links therefore remain unspecified.

Main entry points: [`Classification Trees.ipynb`](https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Classification%20Trees.ipynb) (Classification notebook), [`Regression Trees.ipynb`](https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Regression%20Trees.ipynb) (Regression notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_classification["Classification learning"]
  node_classification_notebook["Classification notebook"]
end

subgraph group_regression["Regression learning"]
  node_regression_notebook["Regression notebook"]
end

subgraph group_data["Dataset"]
  node_ads_data["Ads dataset"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_classification_notebook
node_learner -->|"studies"| node_regression_notebook

click node_classification_notebook "https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Classification%20Trees.ipynb"
click node_regression_notebook "https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Regression%20Trees.ipynb"
click node_ads_data "https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Social_Network_Ads.csv"

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_classification_notebook toneBlue
class node_regression_notebook toneAmber
class node_ads_data toneMint
class node_learner toneIndigo
```

## Components

### Classification learning

- [Classification notebook](https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Classification%20Trees.ipynb): `Classification Trees.ipynb`

### Regression learning

- [Regression notebook](https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Regression%20Trees.ipynb): `Regression Trees.ipynb`

### Dataset

- [Ads dataset](https://github.com/maganpreet-singh/decision-tree-machine-learning/blob/main/Social_Network_Ads.csv): `Social_Network_Ads.csv`

### Other components

- **Learner**

## Connections

- Learner → Classification notebook: studies (evidence: `README.md`)
- Learner → Regression notebook: studies (evidence: `README.md`)
