# phungngocbao/data-mining architecture

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

- Interactive diagram: https://gitdiagram.com/phungngocbao/data-mining
- Repository: https://github.com/phungngocbao/data-mining

## Overview

This repository is a collection of data-mining coursework exercises, not one integrated application. Its principal workflows run independently: load or define data, prepare it, apply an algorithm or compute statistics, then print or plot results. The graph preserves the sampled association-rule, decision-tree, clustering, Naive Bayes, and descriptive-statistics work. Edges reflect visible calls and data references; unsampled assignments and documents are not treated as runtime components.

Main entry points: [`Bài tập/Bài tập chương 2/WekaPro.java`](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/WekaPro.java) (Weka Runner), [`Bài tập/Bài tập chương 2/MyKnowledgeModel.java`](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyKnowledgeModel.java) (Dataset Preparation), [`Bài tập/Bài tập chương 2/MyAprioriModel.java`](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyAprioriModel.java) (Apriori Mining), [`Bài tập/Bài tập chương 2/MyFPGrowthModel.java`](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyFPGrowthModel.java) (FP-Growth Mining)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_association["Association Mining"]
  node_weka_runner["Weka Runner<br/>[WekaPro.java]"]
  node_knowledge_model["Dataset Preparation"]
  node_apriori["Apriori Mining"]
  node_fpgrowth["FP-Growth Mining"]
  node_transactions["ARFF Transactions<br/>[baiTap&#35;1.arff]"]
end

subgraph group_classification["Classification Labs"]
  node_decision_tree["Game Outcome Models"]
  node_nba_games["NBA Game Data<br/>[nbaData.csv]"]
  node_nba_standings["NBA Standings<br/>[nbsStanding.csv]"]
  node_naive_bayes["Gaussian Naive Bayes"]
end

subgraph group_clustering["Clustering Lab"]
  node_kmeans["Customer Clustering"]
  node_mall_data["Mall Customers<br/>[Mall_Customers.csv]"]
end

subgraph group_statistics["Data Statistics"]
  node_stats_exercises["Summary Statistics<br/>[Bài tập 2.1.py]"]
  node_quantile_plots["Quantile and Boxplots<br/>[Bài tập 2.2.py]"]
  node_grouped_median["Grouped Median<br/>[Bài tập 2.3.py]"]
  node_age_fat_analysis["Age Fat Analysis<br/>[Bài tập 2.4.py]"]
  node_illustration_plots["Illustration Plots<br/>[plotsMinhHoa.py]"]
end

node_student(("Student"))

node_student -->|"runs"| node_weka_runner
node_weka_runner -->|"invokes"| node_apriori
node_weka_runner -->|"invokes"| node_fpgrowth
node_weka_runner -->|"loads"| node_transactions
node_apriori -->|"extends"| node_knowledge_model
node_fpgrowth -->|"extends"| node_knowledge_model
node_apriori -->|"converts data"| node_knowledge_model
node_fpgrowth -->|"converts data"| node_knowledge_model
node_student -->|"runs"| node_decision_tree
node_decision_tree -->|"reads"| node_nba_games
node_decision_tree -->|"reads"| node_nba_standings
node_student -->|"runs"| node_naive_bayes
node_student -->|"runs"| node_kmeans
node_kmeans -->|"reads"| node_mall_data
node_student -->|"runs"| node_stats_exercises
node_student -->|"runs"| node_quantile_plots
node_student -->|"runs"| node_grouped_median
node_student -->|"runs"| node_age_fat_analysis

click node_weka_runner "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/WekaPro.java"
click node_knowledge_model "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyKnowledgeModel.java"
click node_apriori "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyAprioriModel.java"
click node_fpgrowth "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyFPGrowthModel.java"
click node_transactions "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/baiTap%231.arff"
click node_decision_tree "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2302%20-%20Th%E1%BB%B1c%20h%C3%A0nh%20C%C3%A2y%20quy%E1%BA%BFt%20%C4%91%E1%BB%8Bnh%20s%E1%BB%AD%20d%E1%BB%A5ng%20Python/decisionTreeWithPython.py"
click node_nba_games "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2302%20-%20Th%E1%BB%B1c%20h%C3%A0nh%20C%C3%A2y%20quy%E1%BA%BFt%20%C4%91%E1%BB%8Bnh%20s%E1%BB%AD%20d%E1%BB%A5ng%20Python/nbaData.csv"
click node_nba_standings "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2302%20-%20Th%E1%BB%B1c%20h%C3%A0nh%20C%C3%A2y%20quy%E1%BA%BFt%20%C4%91%E1%BB%8Bnh%20s%E1%BB%AD%20d%E1%BB%A5ng%20Python/nbsStanding.csv"
click node_naive_bayes "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Ph%C6%B0%C6%A1ng%20ph%C3%A1p%20Naive%20Bayes/naiveBayesWithPython.py"
click node_kmeans "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2303%20-%20Clustering%20with%20K-Mean%20using%20Python/kMeansWithPython.py"
click node_mall_data "https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2303%20-%20Clustering%20with%20K-Mean%20using%20Python/Mall_Customers.csv"
click node_stats_exercises "https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.1.py"
click node_quantile_plots "https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.2.py"
click node_grouped_median "https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.3.py"
click node_age_fat_analysis "https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.4.py"
click node_illustration_plots "https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/plotsMinhHoa.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_weka_runner,node_knowledge_model,node_apriori,node_fpgrowth,node_transactions toneBlue
class node_decision_tree,node_nba_games,node_nba_standings,node_naive_bayes toneAmber
class node_kmeans,node_mall_data toneMint
class node_stats_exercises,node_quantile_plots,node_grouped_median,node_age_fat_analysis,node_illustration_plots toneRose
class node_student toneIndigo
```

## Components

### Association Mining

- [Weka Runner](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/WekaPro.java): `Bài tập/Bài tập chương 2/WekaPro.java`
- [Dataset Preparation](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyKnowledgeModel.java): `Bài tập/Bài tập chương 2/MyKnowledgeModel.java`
- [Apriori Mining](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyAprioriModel.java): `Bài tập/Bài tập chương 2/MyAprioriModel.java`
- [FP-Growth Mining](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/MyFPGrowthModel.java): `Bài tập/Bài tập chương 2/MyFPGrowthModel.java`
- [ARFF Transactions](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/B%C3%A0i%20t%E1%BA%ADp%20ch%C6%B0%C6%A1ng%202/baiTap%231.arff): `Bài tập/Bài tập chương 2/baiTap#1.arff`

### Classification Labs

- [Game Outcome Models](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2302%20-%20Th%E1%BB%B1c%20h%C3%A0nh%20C%C3%A2y%20quy%E1%BA%BFt%20%C4%91%E1%BB%8Bnh%20s%E1%BB%AD%20d%E1%BB%A5ng%20Python/decisionTreeWithPython.py): `Bài tập/Lab#02 - Thực hành Cây quyết định sử dụng Python/decisionTreeWithPython.py`
- [NBA Game Data](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2302%20-%20Th%E1%BB%B1c%20h%C3%A0nh%20C%C3%A2y%20quy%E1%BA%BFt%20%C4%91%E1%BB%8Bnh%20s%E1%BB%AD%20d%E1%BB%A5ng%20Python/nbaData.csv): `Bài tập/Lab#02 - Thực hành Cây quyết định sử dụng Python/nbaData.csv`
- [NBA Standings](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2302%20-%20Th%E1%BB%B1c%20h%C3%A0nh%20C%C3%A2y%20quy%E1%BA%BFt%20%C4%91%E1%BB%8Bnh%20s%E1%BB%AD%20d%E1%BB%A5ng%20Python/nbsStanding.csv): `Bài tập/Lab#02 - Thực hành Cây quyết định sử dụng Python/nbsStanding.csv`
- [Gaussian Naive Bayes](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Ph%C6%B0%C6%A1ng%20ph%C3%A1p%20Naive%20Bayes/naiveBayesWithPython.py): `Bài tập/Phương pháp Naive Bayes/naiveBayesWithPython.py`

### Clustering Lab

- [Customer Clustering](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2303%20-%20Clustering%20with%20K-Mean%20using%20Python/kMeansWithPython.py): `Bài tập/Lab#03 - Clustering with K-Mean using Python/kMeansWithPython.py`
- [Mall Customers](https://github.com/phungngocbao/data-mining/blob/main/B%C3%A0i%20t%E1%BA%ADp/Lab%2303%20-%20Clustering%20with%20K-Mean%20using%20Python/Mall_Customers.csv): `Bài tập/Lab#03 - Clustering with K-Mean using Python/Mall_Customers.csv`

### Data Statistics

- [Summary Statistics](https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.1.py): `finalProject/Code/Bài tập 2.1.py`
- [Quantile and Boxplots](https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.2.py): `finalProject/Code/Bài tập 2.2.py`
- [Grouped Median](https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.3.py): `finalProject/Code/Bài tập 2.3.py`
- [Age Fat Analysis](https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/B%C3%A0i%20t%E1%BA%ADp%202.4.py): `finalProject/Code/Bài tập 2.4.py`
- [Illustration Plots](https://github.com/phungngocbao/data-mining/blob/main/finalProject/Code/plotsMinhHoa.py): `finalProject/Code/plotsMinhHoa.py`

### Other components

- **Student**

## Connections

- Student → Weka Runner: runs
- Weka Runner → Apriori Mining: invokes (evidence: `Bài tập/Bài tập chương 2/WekaPro.java`)
- Weka Runner → FP-Growth Mining: invokes (evidence: `Bài tập/Bài tập chương 2/WekaPro.java`)
- Weka Runner → ARFF Transactions: loads (evidence: `Bài tập/Bài tập chương 2/WekaPro.java`)
- Apriori Mining → Dataset Preparation: extends (evidence: `Bài tập/Bài tập chương 2/MyAprioriModel.java`)
- FP-Growth Mining → Dataset Preparation: extends (evidence: `Bài tập/Bài tập chương 2/MyFPGrowthModel.java`)
- Apriori Mining → Dataset Preparation: converts data (evidence: `Bài tập/Bài tập chương 2/MyAprioriModel.java`)
- FP-Growth Mining → Dataset Preparation: converts data (evidence: `Bài tập/Bài tập chương 2/MyFPGrowthModel.java`)
- Student → Game Outcome Models: runs
- Game Outcome Models → NBA Game Data: reads (evidence: `Bài tập/Lab#02 - Thực hành Cây quyết định sử dụng Python/decisionTreeWithPython.py`)
- Game Outcome Models → NBA Standings: reads (evidence: `Bài tập/Lab#02 - Thực hành Cây quyết định sử dụng Python/decisionTreeWithPython.py`)
- Student → Gaussian Naive Bayes: runs
- Student → Customer Clustering: runs
- Customer Clustering → Mall Customers: reads (evidence: `Bài tập/Lab#03 - Clustering with K-Mean using Python/kMeansWithPython.py`)
- Student → Summary Statistics: runs
- Student → Quantile and Boxplots: runs
- Student → Grouped Median: runs
- Student → Age Fat Analysis: runs
