# ash7845/course5i architecture

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

- Interactive diagram: https://gitdiagram.com/ash7845/course5i
- Repository: https://github.com/ash7845/course5i

## Overview

This repository is an MLOps demonstration scaffold. Its visible workflow reads a configured CSV source, saves a raw dataset, then splits that dataset into training and test files. The README also describes feature engineering, model training and prediction, and visualization, but those modules are empty stubs in the excerpts, so their runtime connections are not asserted. The graph shows only evidenced calls and file operations; configured paths and external data sources are represented without assuming their actual values.

Main entry points: [`src/load_data.py`](https://github.com/ash7845/course5i/blob/main/src/load_data.py) (Save raw data), [`src/split_data.py`](https://github.com/ash7845/course5i/blob/main/src/split_data.py) (Split dataset), [`src/get_data.py`](https://github.com/ash7845/course5i/blob/main/src/get_data.py) (Read source data), [`params.yaml`](https://github.com/ash7845/course5i/blob/main/params.yaml) (Pipeline config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_config["Pipeline config<br/>[params.yaml]"]
  node_fetch["Read source data<br/>[get_data.py]"]
  node_save_raw["Save raw data<br/>[load_data.py]"]
  node_split["Split dataset<br/>[split_data.py]"]
  node_raw["Raw dataset"]
  node_split_files["Train and test files"]
  node_make_dataset["Dataset processing stub<br/>[make_dataset.py]"]
end

subgraph group_model["Modeling"]
  node_features["Feature engineering<br/>[build_features.py]"]
  node_train["Model training<br/>[train_model.py]"]
  node_predict["Model prediction<br/>[predict_model.py]"]
end

subgraph group_analysis["Visualization"]
  node_visualize["Visualize results<br/>[visualize.py]"]
end

node_user(("Project user"))
node_source[("Configured CSV source")]

node_user -->|"runs"| node_fetch
node_fetch -->|"reads"| node_config
node_fetch -->|"loads CSV"| node_source
node_user -->|"runs"| node_save_raw
node_save_raw -->|"calls"| node_fetch
node_save_raw -->|"reads"| node_config
node_save_raw -->|"writes"| node_raw
node_user -->|"runs"| node_split
node_split -->|"reads"| node_config
node_split -->|"reads"| node_raw
node_split -->|"writes"| node_split_files

click node_config "https://github.com/ash7845/course5i/blob/main/params.yaml"
click node_fetch "https://github.com/ash7845/course5i/blob/main/src/get_data.py"
click node_save_raw "https://github.com/ash7845/course5i/blob/main/src/load_data.py"
click node_split "https://github.com/ash7845/course5i/blob/main/src/split_data.py"
click node_make_dataset "https://github.com/ash7845/course5i/blob/main/src/data/make_dataset.py"
click node_features "https://github.com/ash7845/course5i/blob/main/src/features/build_features.py"
click node_train "https://github.com/ash7845/course5i/blob/main/src/models/train_model.py"
click node_predict "https://github.com/ash7845/course5i/blob/main/src/models/predict_model.py"
click node_visualize "https://github.com/ash7845/course5i/blob/main/src/visualization/visualize.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_config,node_fetch,node_save_raw,node_split,node_raw,node_split_files,node_make_dataset,node_user toneBlue
class node_features,node_train,node_predict,node_source toneAmber
class node_visualize toneMint
```

## Components

### Data preparation

- [Pipeline config](https://github.com/ash7845/course5i/blob/main/params.yaml): `params.yaml`
- [Read source data](https://github.com/ash7845/course5i/blob/main/src/get_data.py): `src/get_data.py`
- [Save raw data](https://github.com/ash7845/course5i/blob/main/src/load_data.py): `src/load_data.py`
- [Split dataset](https://github.com/ash7845/course5i/blob/main/src/split_data.py): `src/split_data.py`
- **Raw dataset**
- **Train and test files**
- [Dataset processing stub](https://github.com/ash7845/course5i/blob/main/src/data/make_dataset.py): `src/data/make_dataset.py`

### Modeling

- [Feature engineering](https://github.com/ash7845/course5i/blob/main/src/features/build_features.py): `src/features/build_features.py`
- [Model training](https://github.com/ash7845/course5i/blob/main/src/models/train_model.py): `src/models/train_model.py`
- [Model prediction](https://github.com/ash7845/course5i/blob/main/src/models/predict_model.py): `src/models/predict_model.py`

### Visualization

- [Visualize results](https://github.com/ash7845/course5i/blob/main/src/visualization/visualize.py): `src/visualization/visualize.py`

### Other components

- **Project user**
- **Configured CSV source**

## Connections

- Project user → Read source data: runs (evidence: `src/get_data.py`)
- Read source data → Pipeline config: reads (evidence: `src/get_data.py`)
- Read source data → Configured CSV source: loads CSV (evidence: `src/get_data.py`)
- Project user → Save raw data: runs (evidence: `src/load_data.py`)
- Save raw data → Read source data: calls (evidence: `src/load_data.py`)
- Save raw data → Pipeline config: reads (evidence: `src/load_data.py`)
- Save raw data → Raw dataset: writes (evidence: `src/load_data.py`)
- Project user → Split dataset: runs (evidence: `src/split_data.py`)
- Split dataset → Pipeline config: reads (evidence: `src/split_data.py`)
- Split dataset → Raw dataset: reads (evidence: `src/split_data.py`)
- Split dataset → Train and test files: writes (evidence: `src/split_data.py`)
