# debarghabiswas/ml_practice architecture

> Architecture diagram of the GitHub repository debarghabiswas/ml_practice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/debarghabiswas/ml_practice
- Repository: https://github.com/debarghabiswas/ml_practice

## Overview

##### Main Components
- Central “Machine Learning Course” or “Learning Modules” container – representing the overarching curriculum.
- Individual learning modules, represented as major components:
- Data Preprocessing (shows initial data manipulation and cleaning)
- Association Rule Learning (e.g., Apriori)
- Classification (with subcomponents for Decision Tree, K-NN, Naive Bayes, Support Vector Machines, Kernel SVM, Logistic Regression, Random Forest, etc.)
- Clustering (with Hierarchical and K-Means)
- Regression (with submodules for Simple Linear, Multiple Linear, Polynomial, Decision Tree, Random Forest, Support Vector Regression, and a branch for Regression Model Selection)
- Natural Language Processing (focused on textual data processing)
- Reinforcement Learning (with subcomponents for Thompson Sampling and UCB)

##### Data Flow and Interactions
- Data Preprocessing Component: Capture this as a pre-step that prepares raw data for further analysis. Indicate that outputs (cleaned/processed data) could feed into multiple ML modules.

##### Architectural Patterns and Design Principles
- Modular Design: Emphasize that each learning module is self-contained, demonstrating the principle of separation of concerns. Each module focuses on a specific algorithm or family of algorithms.

##### Technologies and Tools
- Jupyter Notebooks and Python Scripts: Represent these as execution environments/containers for each module.
- Data Files (CSV/TSV): Illustrate these as persistent data sources.
- Underlying Python libraries (implied by ML tasks, though not explicitly listed, one might expect libraries such as scikit-learn, pandas, numpy, etc.) can be mentioned if needed for further clarity.

## Diagram (Mermaid)

```mermaid
flowchart TD
    MLOverview("Machine Learning Course Overview"):::course
    DataSources("Data Sources (CSV/TSV Files)"):::data
    DP("Data Preprocessing Module"):::preproc

    %% Main Flow
    MLOverview -->|"feeds"| DataSources
    DataSources -->|"raw_data"| DP

    %% Modules fed by Data Preprocessing
    DP -->|"processed_data"| Association
    DP -->|"processed_data"| ClassificationContainer
    DP -->|"processed_data"| ClusteringContainer
    DP -->|"processed_data"| RegressionContainer
    DP -->|"processed_data"| NLP
    DP -->|"processed_data"| RLContainer

    %% Association Rule Learning Module
    Association("Association Rule Learning (Apriori)"):::module

    %% Classification Module Container and its techniques
    ClassificationContainer("Classification Module"):::container
    ClassificationContainer -->|"technique"| Classification_DT("Decision Tree"):::module
    ClassificationContainer -->|"technique"| Classification_KNN("K-NN"):::module
    ClassificationContainer -->|"technique"| Classification_KernelSVM("Kernel SVM"):::module
    ClassificationContainer -->|"technique"| Classification_LogisticRegression("Logistic Regression"):::module
    ClassificationContainer -->|"technique"| Classification_NaiveBayes("Naive Bayes"):::module
    ClassificationContainer -->|"technique"| Classification_RandomForest("Random Forest"):::module
    ClassificationContainer -->|"technique"| Classification_SVM("Support Vector Machine (SVM)"):::module

    %% Clustering Module Container and its techniques
    ClusteringContainer("Clustering Module"):::container
    ClusteringContainer -->|"technique"| Clustering_Hierarchical("Hierarchical"):::module
    ClusteringContainer -->|"technique"| Clustering_KMeans("K-Means"):::module

    %% Regression Module Container and its techniques
    RegressionContainer("Regression Module"):::container
    RegressionContainer -->|"technique"| Regression_DT("Decision Tree Regression"):::module
    RegressionContainer -->|"technique"| Regression_MultipleLR("Multiple Linear Regression"):::module
    RegressionContainer -->|"technique"| Regression_PolynomialLR("Polynomial Linear Regression"):::module
    RegressionContainer -->|"technique"| Regression_RandomForest("Random Forest Regression"):::module
    RegressionContainer -->|"technique"| Regression_ModelSelection("Regression Model Selection"):::module
    RegressionContainer -->|"technique"| Regression_SimpleLR("Simple Linear Regression"):::module
    RegressionContainer -->|"technique"| Regression_SVR("Support Vector Regression"):::module

    %% Natural Language Processing Module
    NLP("Natural Language Processing Module"):::module

    %% Reinforcement Learning Module Container and its techniques
    RLContainer("Reinforcement Learning Module"):::container
    RLContainer -->|"technique"| RL_Thompson("Thompson Sampling"):::module
    RLContainer -->|"technique"| RL_UCB("UCB"):::module

    %% Click Events
    click MLOverview "https://github.com/debarghabiswas/ml_practice/blob/main/README.md"
    click DP "https://github.com/debarghabiswas/ml_practice/tree/main/DATA PREPROCESSING/"
    click Association "https://github.com/debarghabiswas/ml_practice/tree/main/ASSOCIATION RULE LEARNING/APRIORI/"
    click ClassificationContainer "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/"
    click Classification_DT "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/DECISION TREE/"
    click Classification_KNN "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/K-NN/"
    click Classification_KernelSVM "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/KERNAL SVM/"
    click Classification_LogisticRegression "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/LOGISTIC REGRESSION/"
    click Classification_NaiveBayes "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/NAIVE-BAYES/"
    click Classification_RandomForest "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/RANDOM FOREST/"
    click Classification_SVM "https://github.com/debarghabiswas/ml_practice/tree/main/CLASSIFICATION/SVM/"
    click ClusteringContainer "https://github.com/debarghabiswas/ml_practice/tree/main/CLUSTERING/"
    click Clustering_Hierarchical "https://github.com/debarghabiswas/ml_practice/tree/main/CLUSTERING/HIERARCHICAL/"
    click Clustering_KMeans "https://github.com/debarghabiswas/ml_practice/tree/main/CLUSTERING/K-MEANS/"
    click RegressionContainer "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/"
    click Regression_DT "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/DECISION TREE REGRESSION/"
    click Regression_MultipleLR "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/MULTIPLE LINEAR REGRESSION/"
    click Regression_PolynomialLR "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/POLYNOMIAL LINEAR REGRESSION/"
    click Regression_RandomForest "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/RANDOM FOREST REGRESSION/"
    click Regression_ModelSelection "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/REGRESSION MODEL SELECTION/"
    click Regression_SimpleLR "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/SIMPLE LINEAER REGRESSION/"
    click Regression_SVR "https://github.com/debarghabiswas/ml_practice/tree/main/REGRESSION/SUPPORT VECTOR REGRESSION/"
    click NLP "https://github.com/debarghabiswas/ml_practice/tree/main/NATURAL LANGUAGE PROCESSING/"
    click RLContainer "https://github.com/debarghabiswas/ml_practice/tree/main/REINFORCEMENT LEARNING/"
    click RL_Thompson "https://github.com/debarghabiswas/ml_practice/tree/main/REINFORCEMENT LEARNING/THOMPSON SAMPLING/"
    click RL_UCB "https://github.com/debarghabiswas/ml_practice/tree/main/REINFORCEMENT LEARNING/UCB/"

    %% Style Definitions
    classDef course fill:#FFD700,stroke:#DAA520,stroke-width:2px;
    classDef data fill:#87CEFA,stroke:#1E90FF,stroke-width:2px;
    classDef preproc fill:#98FB98,stroke:#32CD32,stroke-width:2px;
    classDef container fill:#FFB6C1,stroke:#FF69B4,stroke-width:2px;
    classDef module fill:#D3D3D3,stroke:#696969,stroke-width:2px;
```
