# meetpatel-cyber/machine-learning-sem-3 architecture

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

- Interactive diagram: https://gitdiagram.com/meetpatel-cyber/machine-learning-sem-3
- Repository: https://github.com/meetpatel-cyber/machine-learning-sem-3

## Overview

This repository is a collection of standalone Python examples for CSV handling, pandas DataFrames and statistics, plotting, and introductory machine learning—not a single application with one user-to-result pipeline. The clearest connected workflow is the play-tennis example: one script writes a CSV that another reads to train and evaluate a Gaussian Naive Bayes classifier. Other training snippets demonstrate separate modeling approaches and steps; plotting and data-manipulation examples run independently. Relationships are limited to those visible in the supplied excerpts or explicitly shown by the source index.

Main entry points: [`Play_tennis_data_for_GaussianNB.py`](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Play_tennis_data_for_GaussianNB.py) (Write Play-Tennis Data), [`GaussianNB_for_play_tennis_data.py`](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/GaussianNB_for_play_tennis_data.py) (Gaussian NB Example)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["CSV and DataFrames"]
  node_csv_append["Append CSV Row"]
  node_csv_pandas["Create CSV Pandas"]
  node_csv_lib["Create CSV"]
  node_csv_read["Read CSV<br/>[Read CSV File.py]"]
  node_csv_tabs["Comma to Tabs"]
  node_df_book["Book DataFrame<br/>[Book DataFrame.py]"]
  node_df_player["Player DataFrame"]
  node_df_ops["DataFrame Operations"]
  node_missing_delete["Delete Missing Rows"]
  node_missing_replace["Replace Missing Values"]
  node_crosstab["Two-Way Crosstab"]
end

subgraph group_stats["Statistics"]
  node_stats_summary["Summary Statistics"]
  node_stats_mode["Mode<br/>[Mode.py]"]
end

subgraph group_plots["Visualization"]
  node_plot_bar["Bar Chart<br/>[Bar chart.py]"]
  node_plot_box["Box Plot<br/>[Box Plot.py]"]
  node_plot_hist["Histogram<br/>[Histogram.py]"]
  node_plot_line["Line Plot<br/>[Line Plot.py]"]
  node_plot_line_multi["Multi-Point Line"]
  node_plot_scatter["Scatter Plot<br/>[Scatter Plot.py]"]
  node_plot_scatter_day["Day Bill Scatter"]
  node_plot_scatter_week["Weekday Bill Scatter"]
end

subgraph group_ml["Machine Learning"]
  node_ml_load["Load Dataset"]
  node_ml_split["Split Dataset"]
  node_ml_encode["Encode Categories"]
  node_ml_train["Train Logistic Model"]
  node_ml_predict["Predict and Evaluate"]
  node_ml_knn["KNN Classifier"]
  node_ml_forest["Random Forest Example"]
  node_ml_play_data["Write Play-Tennis Data"]
  node_ml_gaussian["Gaussian NB Example"]
end

node_learner(("Learner"))

node_ml_play_data -->|"writes dataset for"| node_ml_gaussian

click node_csv_append "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Add%20new%20row%20to%20csv.py"
click node_csv_pandas "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Create%20CSV%20pandas.py"
click node_csv_lib "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Create%20CSV%20using%20CSV%20lib.py"
click node_csv_read "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Read%20CSV%20File.py"
click node_csv_tabs "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Replace%20comma%20with%20Tab.py"
click node_df_book "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Book%20DataFrame.py"
click node_df_player "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Player%20DataFrame.py"
click node_df_ops "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/dataframe_operations.py"
click node_missing_delete "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Delete%20row%20containg%20missing%20values.py"
click node_missing_replace "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Replace%20missing%20value%20(With%20GPA).py"
click node_crosstab "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Two-way%20cross%20tabulation.py"
click node_stats_summary "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/mean_median_SD_Var.py"
click node_stats_mode "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Mode.py"
click node_plot_bar "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Bar%20chart.py"
click node_plot_box "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Box%20Plot.py"
click node_plot_hist "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Histogram.py"
click node_plot_line "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Line%20Plot.py"
click node_plot_line_multi "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Line%20Plot%20using%20Multiple%20Points.py"
click node_plot_scatter "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Scatter%20Plot.py"
click node_plot_scatter_day "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Scatter%20Plot%20using%20Day%20and%20Total%20Bill.py"
click node_plot_scatter_week "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Scatter%20Plot%20using%20Week%20Day%20and%20Total%20Bill.py"
click node_ml_load "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-1%20Loading%20a%20DataSet.py"
click node_ml_split "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-2%20Splitting%20the%20dataset.py"
click node_ml_encode "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-3%20Handling%20categorical%20data.py"
click node_ml_train "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-4%20Training%20the%20Model.py"
click node_ml_predict "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-5%2C6%20Make%20Prediction%20%26%20Evalute%20Accuracy.py"
click node_ml_knn "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/K-Nearest%20Neighbors%20(KNN)%20Classification.py"
click node_ml_forest "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Full%20Model%20Train%20Program.py"
click node_ml_play_data "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Play_tennis_data_for_GaussianNB.py"
click node_ml_gaussian "https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/GaussianNB_for_play_tennis_data.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_csv_append,node_csv_pandas,node_csv_lib,node_csv_read,node_csv_tabs,node_df_book,node_df_player,node_df_ops,node_missing_delete,node_missing_replace,node_crosstab toneBlue
class node_stats_summary,node_stats_mode toneAmber
class node_plot_bar,node_plot_box,node_plot_hist,node_plot_line,node_plot_line_multi,node_plot_scatter,node_plot_scatter_day,node_plot_scatter_week toneMint
class node_ml_load,node_ml_split,node_ml_encode,node_ml_train,node_ml_predict,node_ml_knn,node_ml_forest,node_ml_play_data,node_ml_gaussian toneRose
class node_learner toneIndigo
```

## Components

### CSV and DataFrames

- [Append CSV Row](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Add%20new%20row%20to%20csv.py): `Add new row to csv.py`
- [Create CSV Pandas](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Create%20CSV%20pandas.py): `Create CSV pandas.py`
- [Create CSV](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Create%20CSV%20using%20CSV%20lib.py): `Create CSV using CSV lib.py`
- [Read CSV](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Read%20CSV%20File.py): `Read CSV File.py`
- [Comma to Tabs](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Replace%20comma%20with%20Tab.py): `Replace comma with Tab.py`
- [Book DataFrame](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Book%20DataFrame.py): `Book DataFrame.py`
- [Player DataFrame](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Player%20DataFrame.py): `Player DataFrame.py`
- [DataFrame Operations](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/dataframe_operations.py): `dataframe_operations.py`
- [Delete Missing Rows](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Delete%20row%20containg%20missing%20values.py): `Delete row containg missing values.py`
- [Replace Missing Values](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Replace%20missing%20value%20(With%20GPA).py): `Replace missing value (With GPA).py`
- [Two-Way Crosstab](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Two-way%20cross%20tabulation.py): `Two-way cross tabulation.py`

### Statistics

- [Summary Statistics](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/mean_median_SD_Var.py): `mean_median_SD_Var.py`
- [Mode](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Mode.py): `Mode.py`

### Visualization

- [Bar Chart](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Bar%20chart.py): `Bar chart.py`
- [Box Plot](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Box%20Plot.py): `Box Plot.py`
- [Histogram](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Histogram.py): `Histogram.py`
- [Line Plot](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Line%20Plot.py): `Line Plot.py`
- [Multi-Point Line](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Line%20Plot%20using%20Multiple%20Points.py): `Line Plot using Multiple Points.py`
- [Scatter Plot](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Scatter%20Plot.py): `Scatter Plot.py`
- [Day Bill Scatter](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Scatter%20Plot%20using%20Day%20and%20Total%20Bill.py): `Scatter Plot using Day and Total Bill.py`
- [Weekday Bill Scatter](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Scatter%20Plot%20using%20Week%20Day%20and%20Total%20Bill.py): `Scatter Plot using Week Day and Total Bill.py`

### Machine Learning

- [Load Dataset](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-1%20Loading%20a%20DataSet.py): `TRAIN MODEL step-1 Loading a DataSet.py`
- [Split Dataset](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-2%20Splitting%20the%20dataset.py): `TRAIN MODEL step-2 Splitting the dataset.py`
- [Encode Categories](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-3%20Handling%20categorical%20data.py): `TRAIN MODEL step-3 Handling categorical data.py`
- [Train Logistic Model](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-4%20Training%20the%20Model.py): `TRAIN MODEL step-4 Training the Model.py`
- [Predict and Evaluate](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/TRAIN%20MODEL%20step-5%2C6%20Make%20Prediction%20%26%20Evalute%20Accuracy.py): `TRAIN MODEL step-5,6 Make Prediction & Evalute Accuracy.py`
- [KNN Classifier](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/K-Nearest%20Neighbors%20(KNN)%20Classification.py): `K-Nearest Neighbors (KNN) Classification.py`
- [Random Forest Example](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Full%20Model%20Train%20Program.py): `Full Model Train Program.py`
- [Write Play-Tennis Data](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/Play_tennis_data_for_GaussianNB.py): `Play_tennis_data_for_GaussianNB.py`
- [Gaussian NB Example](https://github.com/meetpatel-cyber/machine-learning-sem-3/blob/main/GaussianNB_for_play_tennis_data.py): `GaussianNB_for_play_tennis_data.py`

### Other components

- **Learner**

## Connections

- Write Play-Tennis Data → Gaussian NB Example: writes dataset for (evidence: `Play_tennis_data_for_GaussianNB.py`)
