# goutampatel18/automl-document-analyzer architecture

> Architecture diagram of the GitHub repository goutampatel18/automl-document-analyzer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/goutampatel18/automl-document-analyzer
- Repository: https://github.com/goutampatel18/automl-document-analyzer

## Overview

AutoML Document Analyzer is a Streamlit application that takes an uploaded tabular dataset through exploratory analysis, target/problem selection, preprocessing, model training and evaluation, then presents and exports results. The graph preserves the README’s documented stages and capabilities; sampled app.py excerpts confirm several UI-to-module calls, while some details—especially export wiring—are documented only in the README.

Main entry points: [`app.py`](https://github.com/goutampatel18/automl-document-analyzer/blob/main/app.py) (Streamlit workflow), [`model.py`](https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py) (Evaluation and selection), [`preprocess.py`](https://github.com/goutampatel18/automl-document-analyzer/blob/main/preprocess.py) (Preprocessing pipeline), [`eda.py`](https://github.com/goutampatel18/automl-document-analyzer/blob/main/eda.py) (Exploratory analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_streamlit["Streamlit workflow<br/>[app.py]"]
  node_file_loader["CSV/Excel loader<br/>[app.py]"]
end

subgraph group_analysis["Dataset analysis"]
  node_eda["Exploratory analysis<br/>[eda.py]"]
  node_eda_visuals["EDA visualizations<br/>[eda.py]"]
end

subgraph group_preparation["Data preparation"]
  node_task_detection["Task detection<br/>[preprocess.py]"]
  node_preprocessing["Preprocessing pipeline<br/>[preprocess.py]"]
end

subgraph group_modeling["Modeling and results"]
  node_model_training["Model training<br/>[model.py]"]
  node_evaluation["Evaluation and selection<br/>[model.py]"]
  node_model_visuals["Model visualizations<br/>[model.py]"]
  node_exports["Result exports<br/>[model.py]"]
end

node_user(("Dataset user"))

node_user -->|"uses"| node_streamlit
node_streamlit -->|"accepts upload"| node_file_loader
node_streamlit -->|"presents analysis"| node_eda
node_streamlit -->|"requests plots"| node_eda_visuals
node_streamlit -->|"detects task"| node_task_detection
node_streamlit -->|"runs pipeline"| node_preprocessing
node_streamlit -->|"trains models"| node_model_training
node_streamlit -->|"evaluates models"| node_evaluation
node_streamlit -->|"requests charts"| node_model_visuals
node_streamlit -->|"offers downloads"| node_exports
node_preprocessing -->|"provides splits"| node_model_training
node_model_training -->|"provides fitted models"| node_evaluation
node_evaluation -->|"provides metrics"| node_model_visuals
node_evaluation -->|"provides results"| node_exports

click node_streamlit "https://github.com/goutampatel18/automl-document-analyzer/blob/main/app.py"
click node_file_loader "https://github.com/goutampatel18/automl-document-analyzer/blob/main/app.py"
click node_eda "https://github.com/goutampatel18/automl-document-analyzer/blob/main/eda.py"
click node_eda_visuals "https://github.com/goutampatel18/automl-document-analyzer/blob/main/eda.py"
click node_task_detection "https://github.com/goutampatel18/automl-document-analyzer/blob/main/preprocess.py"
click node_preprocessing "https://github.com/goutampatel18/automl-document-analyzer/blob/main/preprocess.py"
click node_model_training "https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py"
click node_evaluation "https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py"
click node_model_visuals "https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py"
click node_exports "https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.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_streamlit,node_file_loader,node_user toneBlue
class node_eda,node_eda_visuals toneAmber
class node_task_detection,node_preprocessing toneMint
class node_model_training,node_evaluation,node_model_visuals,node_exports toneRose
```

## Components

### User interface

- [Streamlit workflow](https://github.com/goutampatel18/automl-document-analyzer/blob/main/app.py): `app.py`
- [CSV/Excel loader](https://github.com/goutampatel18/automl-document-analyzer/blob/main/app.py): `app.py`

### Dataset analysis

- [Exploratory analysis](https://github.com/goutampatel18/automl-document-analyzer/blob/main/eda.py): `eda.py`
- [EDA visualizations](https://github.com/goutampatel18/automl-document-analyzer/blob/main/eda.py): `eda.py`

### Data preparation

- [Task detection](https://github.com/goutampatel18/automl-document-analyzer/blob/main/preprocess.py): `preprocess.py`
- [Preprocessing pipeline](https://github.com/goutampatel18/automl-document-analyzer/blob/main/preprocess.py): `preprocess.py`

### Modeling and results

- [Model training](https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py): `model.py`
- [Evaluation and selection](https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py): `model.py`
- [Model visualizations](https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py): `model.py`
- [Result exports](https://github.com/goutampatel18/automl-document-analyzer/blob/main/model.py): `model.py`

### Other components

- **Dataset user**

## Connections

- Dataset user → Streamlit workflow: uses (evidence: `README.md`)
- Streamlit workflow → CSV/Excel loader: accepts upload (evidence: `app.py`)
- Streamlit workflow → Exploratory analysis: presents analysis (evidence: `README.md`)
- Streamlit workflow → EDA visualizations: requests plots (evidence: `app.py`)
- Streamlit workflow → Task detection: detects task (evidence: `app.py`)
- Streamlit workflow → Preprocessing pipeline: runs pipeline (evidence: `README.md`)
- Streamlit workflow → Model training: trains models (evidence: `app.py`)
- Streamlit workflow → Evaluation and selection: evaluates models (evidence: `app.py`)
- Streamlit workflow → Model visualizations: requests charts (evidence: `app.py`)
- Streamlit workflow → Result exports: offers downloads (evidence: `README.md`)
- Preprocessing pipeline → Model training: provides splits (evidence: `README.md`)
- Model training → Evaluation and selection: provides fitted models (evidence: `model.py`)
- Evaluation and selection → Model visualizations: provides metrics (evidence: `app.py`)
- Evaluation and selection → Result exports: provides results (evidence: `README.md`)
