# dev-21/oibsip architecture

> Architecture diagram of the GitHub repository dev-21/oibsip, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dev-21/oibsip
- Repository: https://github.com/dev-21/oibsip

## Overview

##### High-Level Architecture Components

- Data Input Layer
- Data Processing Layer
- Model Layer
- Output/Prediction Layer

##### Task-Specific Components

For each of the five tasks, create connected sub-components showing:

a) Iris Flower Classification
- Input: Iris.csv
- Features: Sepal length/width, Petal length/width
- Classification Model
- Output: Species prediction

b) Unemployment Analysis
- Input: Multiple CSV files (Unemployment data)
- Data Analysis Pipeline
- Visualization Components
- Statistical Output

c) Car Price Prediction
- Input: car data.csv
- Feature Engineering
- Regression Model
- Price Prediction Output

d) Email Spam Detection
- Input: spam.csv
- Text Processing Pipeline
- Classification Model
- Spam/Ham Prediction

e) Sales Prediction
- Input: Advertising.csv
- Feature Processing
- Regression Model
- Sales Forecast Output

##### Implementation Details

Technical aspects:
- Python as the primary programming language
- Jupyter Notebooks as the development environment
- Key libraries (Pandas, Scikit-learn, etc.)
- Data preprocessing steps
- Model evaluation metrics

## Diagram (Mermaid)

```mermaid
graph TB
    %% Title
    title["OIBSIP Data Science Tasks - System Architecture"]:::title

    %% Data Input Layer
    subgraph InputLayer["Data Input Layer"]
        iris_data["Iris.csv"]:::input
        unemp_data1["Unemployment in India.csv"]:::input
        unemp_data2["Unemployment_Rate_upto_11_2020.csv"]:::input
        car_data["car data.csv"]:::input
        spam_data["spam.csv"]:::input
        sales_data["Advertising.csv"]:::input
    end

    %% Processing Layer
    subgraph ProcessingLayer["Data Processing Layer"]
        feature_eng["Feature Engineering"]:::process
        text_process["Text Processing"]:::process
        data_analysis["Data Analysis"]:::process
        preprocess["Data Preprocessing"]:::process
    end

    %% Model Layer
    subgraph ModelLayer["Model Layer"]
        iris_model["Iris Classification Model"]:::model
        unemp_analysis["Unemployment Analysis Pipeline"]:::model
        car_price_model["Car Price Regression Model"]:::model
        spam_model["Spam Detection Model"]:::model
        sales_model["Sales Prediction Model"]:::model
    end

    %% Output Layer
    subgraph OutputLayer["Output/Prediction Layer"]
        species_pred["Species Prediction"]:::output
        unemp_stats["Statistical Analysis & Visualization"]:::output
        price_pred["Price Prediction"]:::output
        spam_pred["Spam/Ham Classification"]:::output
        sales_pred["Sales Forecast"]:::output
    end

    %% Connections
    iris_data --> preprocess --> iris_model --> species_pred
    unemp_data1 & unemp_data2 --> data_analysis --> unemp_analysis --> unemp_stats
    car_data --> feature_eng --> car_price_model --> price_pred
    spam_data --> text_process --> spam_model --> spam_pred
    sales_data --> feature_eng --> sales_model --> sales_pred

    %% Click Events
    click iris_data "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_1-Iris_Flower_Classification/Iris.csv"
    click unemp_data1 "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_2-Unemployment_Analysis_With_Python/Unemployment in India.csv"
    click unemp_data2 "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_2-Unemployment_Analysis_With_Python/Unemployment_Rate_upto_11_2020.csv"
    click car_data "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_3-Car_Price_Prediction_With_Machine_Learning/car data.csv"
    click spam_data "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_4-Email_Spam_Detection_With_Machine_Learning/spam.csv"
    click sales_data "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_5-Sales_Prediction_Using_Python/Advertising.csv"
    
    click iris_model "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_1-Iris_Flower_Classification/Iris_Flower_Classification.ipynb"
    click unemp_analysis "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_2-Unemployment_Analysis_With_Python/Unemployment_Analysis_With_Python.ipynb"
    click car_price_model "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_3-Car_Price_Prediction_With_Machine_Learning/Car_Price_Prediction_With_Machine_Learning.ipynb"
    click spam_model "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_4-Email_Spam_Detection_With_Machine_Learning/Email_Spam_Detection_With_Machine_Learning.ipynb"
    click sales_model "https://github.com/DeV-21/OIBSIP/blob/main/OIBSIP_Task_5-Sales_Prediction_Using_Python/Sales_Prediction_Using_Python.ipynb"

    %% Styling
    classDef title fill:#f9f,stroke:#333,stroke-width:4px
    classDef input fill:#LightBlue,stroke:#333
    classDef process fill:#90EE90,stroke:#333
    classDef model fill:#FFD700,stroke:#333
    classDef output fill:#FFB6C1,stroke:#333

    %% Legend
    subgraph Legend
        l1["Input Data"]:::input
        l2["Processing Step"]:::process
        l3["ML Model"]:::model
        l4["Output"]:::output
    end
```
