# shaqibrid1/pl-season-predictor architecture

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

- Interactive diagram: https://gitdiagram.com/shaqibrid1/pl-season-predictor
- Repository: https://github.com/shaqibrid1/pl-season-predictor

## Overview

This repository provides a small English football match-data and Poisson-modeling workflow: download season CSVs, load and clean matches, reshape them into team-level rows, and fit a goal model. The data and modeling code are separate modules; no call connecting them is shown. The README is empty, and the notebook was not sampled, so its role and any broader workflow remain uncertain.

Main entry points: [`src/data.py`](https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/data.py) (Season download and match loading), [`src/model.py`](https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/model.py) (Poisson model fitting)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_data_ops["Season download and match loading<br/>[data.py]"]
node_football_data["Football-data CSV source"]
node_csv_cache[("Season CSV cache<br/>[data.py]")]
node_reshape["Team-level reshaping<br/>[model.py]"]
node_poisson_fit["Poisson model fitting<br/>[model.py]"]

node_data_ops -->|"downloads CSVs"| node_football_data
node_data_ops -->|"writes and reads"| node_csv_cache
node_poisson_fit -->|"calls"| node_reshape

click node_data_ops "https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/data.py"
click node_csv_cache "https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/data.py"
click node_reshape "https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/model.py"
click node_poisson_fit "https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/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_user toneBlue
class node_data_ops toneTeal
class node_football_data,node_poisson_fit toneIndigo
class node_csv_cache toneAmber
class node_reshape toneMint
```

## Components

### Other components

- **User**
- [Season download and match loading](https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/data.py): `src/data.py`
- **Football-data CSV source**
- [Season CSV cache](https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/data.py): `src/data.py`
- [Team-level reshaping](https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/model.py): `src/model.py`
- [Poisson model fitting](https://github.com/shaqibrid1/pl-season-predictor/blob/master/src/model.py): `src/model.py`

## Connections

- Season download and match loading → Football-data CSV source: downloads CSVs (evidence: `src/data.py`)
- Season download and match loading → Season CSV cache: writes and reads (evidence: `src/data.py`)
- Poisson model fitting → Team-level reshaping: calls (evidence: `src/model.py`)
