# aastha9111/genai_training architecture

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

- Interactive diagram: https://gitdiagram.com/aastha9111/genai_training
- Repository: https://github.com/aastha9111/genai_training

## Overview

##### Project type and purpose
- This is not a classic web app or microservice suite but a demo/training repository for machine-learning exercises (“GenAI_training”).
- It contains Jupyter notebooks showing classification, regression, clustering; custom model implementations; standalone Python scripts; a small Python package; and a couple of algorithmic snippets in C++/JavaScript.

##### File structure
- Top-level notebooks: IrisClassification_LogicalRegression.ipynb, K_Mean_Clustering.ipynb, LinearRegression.ipynb – these serve as interactive UIs for data exploration and model demos.
- Custom model module: custom_linear_model/lr_model.py – an encapsulated implementation of linear regression.
- Additional model script: ml_lr_model.py – likely a wrapper combining data I/O and model routines.
- Entry-point scripts: main_27.py and main_28.py – possibly CLI demos or versioned training runners.
- module_packages/py_package – a small reusable package (arithmetic operations, etc.) used by other components.
- index.html – a static page (perhaps a landing page or lightweight web UI).
- ques.cpp and ques.js – algorithmic examples or interview questions in other languages.

##### README
- Minimal; confirms “demo purpose” but doesn’t detail architecture or dependencies.

##### Detailed but not overcomplicated
- Break the repo into 6–8 nodes (don’t list every single file).
- Similar files (all .ipynb under a “Notebooks” node; both mains under “CLI Runners”).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Data Layer
    DATA["Data Sources"]:::data

    %% Preprocessing & Wrapper
    PREPROCESS["Preprocessing & Wrapper"]:::mlModule
    MLWRAP["ml_lr_model.py"]:::mlModule

    %% Model Implementation Module
    MODEL["custom_linear_model/lr_model.py"]:::mlModule

    %% Utility Packaging Layer
    UTIL["module_packages/py_package"]:::util

    %% Interfaces
    subgraph "Interactive Notebooks"
        IRIS["Iris Classification Notebook"]:::interface
        KMEAN["K-Means Clustering Notebook"]:::interface
        LINEAR["Linear Regression Notebook"]:::interface
    end
    subgraph "CLI Runners"
        MAIN27["main_27.py"]:::interface
        MAIN28["main_28.py"]:::interface
    end
    STATIC["index.html"]:::interface

    %% Algorithmic Demos
    subgraph "Algorithmic Demos"
        CPP["ques.cpp"]:::algo
        JS["ques.js"]:::algo
    end

    %% Connections
    DATA --> PREPROCESS
    PREPROCESS --> MLWRAP
    MLWRAP --> MODEL
    MODEL --> IRIS
    MODEL --> KMEAN
    MODEL --> LINEAR
    MODEL --> MAIN27
    MODEL --> MAIN28

    IRIS --> UTIL
    KMEAN --> UTIL
    LINEAR --> UTIL
    MAIN27 --> UTIL
    MAIN28 --> UTIL
    PREPROCESS --> UTIL

    STATIC -.-> IRIS
    STATIC -.-> MAIN27

    %% Click Events
    click IRIS "https://github.com/aastha9111/genai_training/blob/main/IrisClassification_LogicalRegression.ipynb"
    click KMEAN "https://github.com/aastha9111/genai_training/blob/main/K_Mean_Clustering.ipynb"
    click LINEAR "https://github.com/aastha9111/genai_training/blob/main/LinearRegression.ipynb"
    click MLWRAP "https://github.com/aastha9111/genai_training/blob/main/ml_lr_model.py"
    click MODEL "https://github.com/aastha9111/genai_training/blob/main/custom_linear_model/lr_model.py"
    click MAIN27 "https://github.com/aastha9111/genai_training/blob/main/main_27.py"
    click MAIN28 "https://github.com/aastha9111/genai_training/blob/main/main_28.py"
    click UTIL "https://github.com/aastha9111/genai_training/tree/main/module_packages/py_package/"
    click CPP "https://github.com/aastha9111/genai_training/blob/main/ques.cpp"
    click JS "https://github.com/aastha9111/genai_training/blob/main/ques.js"
    click STATIC "https://github.com/aastha9111/genai_training/blob/main/index.html"

    %% Styles
    classDef mlModule fill:#add8e6,stroke:#000;
    classDef interface fill:#98fb98,stroke:#000;
    classDef util fill:#d3d3d3,stroke:#000;
    classDef algo fill:#f0f0f0,stroke:#000;
    classDef data fill:#ffeb99,stroke:#000;
```
