# davidit17/ml architecture

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

- Interactive diagram: https://gitdiagram.com/davidit17/ml
- Repository: https://github.com/davidit17/ml

## Overview

##### High-Level Organization
- Divide the projects into two main categories:
a. Classification Projects (Blood Donation, Water Pump, Heart Disease, Insurance Accidents)
b. Regression Projects (Future Sales, Digital Turbine's Auction)

##### Project Components Structure
For each project, create a standardized representation with these elements:

a. Data Input Layer
- Data source/CSV files
- Data preprocessing steps

b. Model Layer
- Algorithms by project
- Rectangles for traditional ML (KNN, LogReg)
- Hexagons for ensemble methods (XGBoost)
- Clouds for neural networks (TensorFlow)

c. Output Layer
- Prediction results
- Model evaluation metrics

##### Specific Implementation Details

Blood Donation Project:
- [Input Data] → [Preprocessing] → [Models]
- KNN
- LogReg
- XGBoost
- TensorFlow

Similar structures for other projects, showing their specific algorithms.

##### Additional Elements
- Version information for major frameworks (TensorFlow 2.0)
- Evaluation metrics placement

##### Technical Details
- Framework versions (TensorFlow 2.0)
- File formats (CSV, notebook files)
- Model output formats

##### Metadata Section
- A small section showing common tools across projects
- Shared libraries and dependencies
- Common evaluation metrics

- Input data sources
- Preprocessing steps
- Model architecture
- Evaluation methods
- Output format

Remember to:
- Use consistent notation throughout
- Provide clear labels for all components
- Relationships between different components clearly

This structure will help other developers understand both the overall organization of the ML projects collection and the specific implementation details of each project.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph ML["ML Projects Collection"]
        subgraph CLS["Classification Projects"]
            subgraph BD["Blood Donation"]
                BD_IN[("Input Data")]
                BD_PRE["Preprocessing"]
                BD_KNN["KNN"]:::traditional
                BD_LOG["LogReg"]:::traditional
                BD_XGB["XGBoost"]:::ensemble
                BD_TF["TensorFlow"]:::deep
                BD_OUT["Predictions"]
                
                BD_IN --> BD_PRE
                BD_PRE --> BD_KNN & BD_LOG & BD_XGB & BD_TF
                BD_KNN & BD_LOG & BD_XGB & BD_TF --> BD_OUT
            end

            subgraph WP["Water Pump Prediction"]
                WP_IN[("Input Data")]
                WP_PRE["Preprocessing"]
                WP_DT["Decision Tree"]:::traditional
                WP_KNN["KNN"]:::traditional
                WP_LOG["LogReg"]:::traditional
                WP_OUT["Predictions"]
                
                WP_IN --> WP_PRE
                WP_PRE --> WP_DT & WP_KNN & WP_LOG
                WP_DT & WP_KNN & WP_LOG --> WP_OUT
            end

            subgraph HD["Heart Disease"]
                HD_IN[("Input Data")]
                HD_PRE["Preprocessing"]
                HD_MOD["ML Models"]:::traditional
                HD_OUT["Predictions"]
                
                HD_IN --> HD_PRE --> HD_MOD --> HD_OUT
            end

            subgraph IA["Insurance Accidents"]
                IA_IN[("Input Data")]
                IA_PRE["Preprocessing"]
                IA_MOD["ML Models"]:::traditional
                IA_OUT["Predictions"]
                
                IA_IN --> IA_PRE --> IA_MOD --> IA_OUT
            end
        end

        subgraph REG["Regression Projects"]
            subgraph FS["Future Sales"]
                FS_IN[("Input Data")]
                FS_PRE["Preprocessing"]
                FS_MOD["ML Models"]:::traditional
                FS_OUT["Predictions"]
                
                FS_IN --> FS_PRE --> FS_MOD --> FS_OUT
            end

            subgraph DT["Digital Turbine's Auction"]
                DT_IN[("Input Data")]
                DT_PRE["Preprocessing"]
                DT_CAT["CatBoost"]:::ensemble
                DT_VAL["Validation Analysis"]
                DT_OUT["Predictions"]
                
                DT_IN --> DT_PRE --> DT_CAT --> DT_VAL --> DT_OUT
            end

            subgraph RS["Rossmann Sales"]
                RS_IN[("Input Data")]
                RS_PRE["Preprocessing"]
                RS_MOD["ML Models"]:::traditional
                RS_OUT["Predictions"]
                
                RS_IN --> RS_PRE --> RS_MOD --> RS_OUT
            end
        end
    end

    classDef traditional fill:#90EE90
    classDef ensemble fill:#FFA500
    classDef deep fill:#DDA0DD
    classDef input fill:#87CEEB

    click BD "https://github.com/davidit17/ML/tree/master/Blood Donation/"
    click BD_KNN "https://github.com/davidit17/ML/blob/master/Blood Donation/blood predict Knn+ logreg.ipynb"
    click BD_LOG "https://github.com/davidit17/ML/blob/master/Blood Donation/LogregCV.csv"
    click BD_XGB "https://github.com/davidit17/ML/blob/master/Blood Donation/_ML-predict blood donations 1.0 xgboost.ipynb"
    click BD_TF "https://github.com/davidit17/ML/blob/master/Blood Donation/blood-Tensorflow-2.0.ipynb"
    click WP "https://github.com/davidit17/ML/tree/master/Water Pump condition prediction/"
    click WP_DT "https://github.com/davidit17/ML/blob/master/Water Pump condition prediction/DecitionTree.csv"
    click WP_KNN "https://github.com/davidit17/ML/blob/master/Water Pump condition prediction/Knn.csv"
    click WP_LOG "https://github.com/davidit17/ML/blob/master/Water Pump condition prediction/Logreg.csv"
    click HD "https://github.com/davidit17/ML/blob/master/heart disease prediction/heart disease.ipynb"
    click IA "https://github.com/davidit17/ML/blob/master/insurance accidents/accidents.ipynb"
    click FS "https://github.com/davidit17/ML/blob/master/future sales/future Sales-2.0.ipynb"
    click DT "https://github.com/davidit17/ML/tree/master/Digital Turbine's Auction Bid Price prediction/"
    click DT_CAT "https://github.com/davidit17/ML/blob/master/Digital Turbine's Auction Bid Price prediction/catboost-on-gpu-baseline.ipynb"
    click DT_VAL "https://github.com/davidit17/ML/blob/master/Digital Turbine's Auction Bid Price prediction/catboost-on-gpu-examine-val-set.ipynb"
    click RS "https://github.com/davidit17/ML/blob/master/Rossmann sales/store.ipynb"
```
