# seyric/ml-projects architecture

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

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

## Overview

This repository is a portfolio of 50 mostly self-contained machine-learning and AI projects, not one integrated application. The typical user workflow is to choose a project, submit data through its app or interface, and receive a prediction, generated response, or other project-specific result. The tree and README document a broad range of capabilities; sampled prediction code shows preprocessing and model inference in several projects. Internal wiring for most apps is unsampled, so links between portfolio entries and their user interfaces are not asserted.

Main entry points: [`projects/spam-detector`](https://github.com/seyric/ml-projects/tree/main/projects/spam-detector) (Spam detection), [`projects/air-quality-predictor`](https://github.com/seyric/ml-projects/tree/main/projects/air-quality-predictor) (Air quality), [`projects/california-housing-prediction`](https://github.com/seyric/ml-projects/tree/main/projects/california-housing-prediction) (California housing), [`projects/multi-agent-blog`](https://github.com/seyric/ml-projects/tree/main/projects/multi-agent-blog) (Blog generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prediction["Prediction projects"]
  node_airq["Air quality"]
  node_california["California housing"]
  node_crypto["Crypto prices"]
  node_customer["Customer segments"]
  node_diamond["Diamond prices"]
  node_earthquake["Earthquake magnitude"]
  node_heart["Heart disease"]
  node_flight["Flight fares"]
end

subgraph group_language["Language and AI"]
  node_language_translator["Language translation"]
  node_news["News classification"]
  node_spam["Spam detection"]
  node_sentiment["Sentiment analysis"]
end

subgraph group_vision["Vision projects"]
  node_digit["Digit recognition"]
  node_license["Plate recognition"]
  node_drowsy["Drowsiness alert"]
  node_plant["Plant disease"]
end

subgraph group_agents["Agent applications"]
  node_market["Market insight"]
  node_blog["Blog generation"]
  node_doclify["Doclify CLI"]
end

subgraph group_support["Shared prediction internals"]
  node_predictor_util["Prediction utilities<br/>[common.py]"]
  node_spam_state["Prediction state<br/>[state.py]"]
  node_spam_config["Spam configuration<br/>[config.py]"]
  node_spam_email["Email processing<br/>[email_utils.py]"]
end

node_portfolio_user(("Project user"))
node_model_artifacts[("Saved model artifacts")]
node_r2[("Cloudflare R2")]

node_airq -->|"loads objects"| node_predictor_util
node_california -->|"loads objects"| node_predictor_util
node_spam -->|"reads configuration"| node_spam_config
node_spam -->|"cleans and extracts"| node_spam_email
node_spam -->|"updates state"| node_spam_state
node_spam -->|"loads and predicts"| node_model_artifacts
node_blog -->|"reads and writes"| node_r2
node_portfolio_user -.->|"uses project"| node_airq
node_portfolio_user -.->|"uses project"| node_california
node_portfolio_user -.->|"uses project"| node_crypto
node_portfolio_user -.->|"uses project"| node_customer
node_portfolio_user -.->|"uses project"| node_diamond
node_portfolio_user -.->|"uses project"| node_earthquake
node_portfolio_user -.->|"uses project"| node_heart
node_portfolio_user -.->|"uses project"| node_flight
node_portfolio_user -.->|"uses project"| node_language_translator
node_portfolio_user -.->|"uses project"| node_news
node_portfolio_user -.->|"uses project"| node_spam
node_portfolio_user -.->|"uses project"| node_sentiment
node_portfolio_user -.->|"uses project"| node_digit
node_portfolio_user -.->|"uses project"| node_license
node_portfolio_user -.->|"uses project"| node_drowsy
node_portfolio_user -.->|"uses project"| node_plant
node_portfolio_user -.->|"uses project"| node_market
node_portfolio_user -.->|"uses project"| node_blog
node_portfolio_user -.->|"uses project"| node_doclify

click node_airq "https://github.com/seyric/ml-projects/tree/main/projects/air-quality-predictor"
click node_california "https://github.com/seyric/ml-projects/tree/main/projects/california-housing-prediction"
click node_crypto "https://github.com/seyric/ml-projects/tree/main/projects/crypto-price-predictor"
click node_customer "https://github.com/seyric/ml-projects/tree/main/projects/customer-segmentation"
click node_diamond "https://github.com/seyric/ml-projects/tree/main/projects/diamond-price-prediction"
click node_earthquake "https://github.com/seyric/ml-projects/tree/main/projects/earthquake-predictor"
click node_heart "https://github.com/seyric/ml-projects/tree/main/projects/heart-disease-predictor"
click node_flight "https://github.com/seyric/ml-projects/tree/main/projects/flight-fare-prediction"
click node_language_translator "https://github.com/seyric/ml-projects/tree/main/projects/language-translator"
click node_news "https://github.com/seyric/ml-projects/tree/main/projects/news-classifier"
click node_spam "https://github.com/seyric/ml-projects/tree/main/projects/spam-detector"
click node_sentiment "https://github.com/seyric/ml-projects/tree/main/projects/sentiment-analysis"
click node_digit "https://github.com/seyric/ml-projects/tree/main/projects/handwritten-digit-recognizer"
click node_license "https://github.com/seyric/ml-projects/tree/main/projects/license-plate-recognition"
click node_drowsy "https://github.com/seyric/ml-projects/tree/main/projects/driver-drowsiness-alert"
click node_plant "https://github.com/seyric/ml-projects/tree/main/projects/plant-disease-detection"
click node_market "https://github.com/seyric/ml-projects/tree/main/projects/market-insight"
click node_blog "https://github.com/seyric/ml-projects/tree/main/projects/multi-agent-blog"
click node_doclify "https://github.com/seyric/ml-projects/tree/main/projects/doclify"
click node_predictor_util "https://github.com/seyric/ml-projects/blob/main/projects/air-quality-predictor/src/air_quality_predictor/utils/common.py"
click node_spam_state "https://github.com/seyric/ml-projects/blob/main/projects/spam-detector/src/utils/state.py"
click node_spam_config "https://github.com/seyric/ml-projects/blob/main/projects/spam-detector/src/config/config.py"
click node_spam_email "https://github.com/seyric/ml-projects/blob/main/projects/spam-detector/src/utils/email_utils.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_airq,node_california,node_crypto,node_customer,node_diamond,node_earthquake,node_heart,node_flight,node_portfolio_user toneBlue
class node_language_translator,node_news,node_spam,node_sentiment,node_model_artifacts,node_r2 toneAmber
class node_digit,node_license,node_drowsy,node_plant toneMint
class node_market,node_blog,node_doclify toneRose
class node_predictor_util,node_spam_state,node_spam_config,node_spam_email toneIndigo
```

## Components

### Prediction projects

- [Air quality](https://github.com/seyric/ml-projects/tree/main/projects/air-quality-predictor): `projects/air-quality-predictor`
- [California housing](https://github.com/seyric/ml-projects/tree/main/projects/california-housing-prediction): `projects/california-housing-prediction`
- [Crypto prices](https://github.com/seyric/ml-projects/tree/main/projects/crypto-price-predictor): `projects/crypto-price-predictor`
- [Customer segments](https://github.com/seyric/ml-projects/tree/main/projects/customer-segmentation): `projects/customer-segmentation`
- [Diamond prices](https://github.com/seyric/ml-projects/tree/main/projects/diamond-price-prediction): `projects/diamond-price-prediction`
- [Earthquake magnitude](https://github.com/seyric/ml-projects/tree/main/projects/earthquake-predictor): `projects/earthquake-predictor`
- [Heart disease](https://github.com/seyric/ml-projects/tree/main/projects/heart-disease-predictor): `projects/heart-disease-predictor`
- [Flight fares](https://github.com/seyric/ml-projects/tree/main/projects/flight-fare-prediction): `projects/flight-fare-prediction`

### Language and AI

- [Language translation](https://github.com/seyric/ml-projects/tree/main/projects/language-translator): `projects/language-translator`
- [News classification](https://github.com/seyric/ml-projects/tree/main/projects/news-classifier): `projects/news-classifier`
- [Spam detection](https://github.com/seyric/ml-projects/tree/main/projects/spam-detector): `projects/spam-detector`
- [Sentiment analysis](https://github.com/seyric/ml-projects/tree/main/projects/sentiment-analysis): `projects/sentiment-analysis`

### Vision projects

- [Digit recognition](https://github.com/seyric/ml-projects/tree/main/projects/handwritten-digit-recognizer): `projects/handwritten-digit-recognizer`
- [Plate recognition](https://github.com/seyric/ml-projects/tree/main/projects/license-plate-recognition): `projects/license-plate-recognition`
- [Drowsiness alert](https://github.com/seyric/ml-projects/tree/main/projects/driver-drowsiness-alert): `projects/driver-drowsiness-alert`
- [Plant disease](https://github.com/seyric/ml-projects/tree/main/projects/plant-disease-detection): `projects/plant-disease-detection`

### Agent applications

- [Market insight](https://github.com/seyric/ml-projects/tree/main/projects/market-insight): `projects/market-insight`
- [Blog generation](https://github.com/seyric/ml-projects/tree/main/projects/multi-agent-blog): `projects/multi-agent-blog`
- [Doclify CLI](https://github.com/seyric/ml-projects/tree/main/projects/doclify): `projects/doclify`

### Shared prediction internals

- [Prediction utilities](https://github.com/seyric/ml-projects/blob/main/projects/air-quality-predictor/src/air_quality_predictor/utils/common.py): `projects/air-quality-predictor/src/air_quality_predictor/utils/common.py`
- [Prediction state](https://github.com/seyric/ml-projects/blob/main/projects/spam-detector/src/utils/state.py): `projects/spam-detector/src/utils/state.py`
- [Spam configuration](https://github.com/seyric/ml-projects/blob/main/projects/spam-detector/src/config/config.py): `projects/spam-detector/src/config/config.py`
- [Email processing](https://github.com/seyric/ml-projects/blob/main/projects/spam-detector/src/utils/email_utils.py): `projects/spam-detector/src/utils/email_utils.py`

### Other components

- **Project user**
- **Saved model artifacts**
- **Cloudflare R2**

## Connections

- Air quality → Prediction utilities: loads objects (evidence: `projects/air-quality-predictor/src/air_quality_predictor/pipelines/prediction_pipeline.py`)
- California housing → Prediction utilities: loads objects (evidence: `projects/california-housing-prediction/src/california_housing_prediction/pipelines/prediction_pipeline.py`)
- Spam detection → Spam configuration: reads configuration (evidence: `projects/spam-detector/src/pipeline/prediction_pipeline.py`)
- Spam detection → Email processing: cleans and extracts (evidence: `projects/spam-detector/src/pipeline/prediction_pipeline.py`)
- Spam detection → Prediction state: updates state (evidence: `projects/spam-detector/src/pipeline/prediction_pipeline.py`)
- Spam detection → Saved model artifacts: loads and predicts (evidence: `projects/spam-detector/src/pipeline/prediction_pipeline.py`)
- Blog generation → Cloudflare R2: reads and writes (evidence: `projects/multi-agent-blog/blogboard/services/storage.py`)
- Project user → Air quality: uses project
- Project user → California housing: uses project
- Project user → Crypto prices: uses project
- Project user → Customer segments: uses project
- Project user → Diamond prices: uses project
- Project user → Earthquake magnitude: uses project
- Project user → Heart disease: uses project
- Project user → Flight fares: uses project
- Project user → Language translation: uses project
- Project user → News classification: uses project
- Project user → Spam detection: uses project
- Project user → Sentiment analysis: uses project
- Project user → Digit recognition: uses project
- Project user → Plate recognition: uses project
- Project user → Drowsiness alert: uses project
- Project user → Plant disease: uses project
- Project user → Market insight: uses project
- Project user → Blog generation: uses project
- Project user → Doclify CLI: uses project
