# vinayr17/playervalue_analysis architecture

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

- Interactive diagram: https://gitdiagram.com/vinayr17/playervalue_analysis
- Repository: https://github.com/vinayr17/playervalue_analysis

## Overview

This is a single-file Streamlit football market-value analysis app. Its main user flow is choosing an analysis in the app, exploring player performance/search results, and viewing market-value estimates and comparisons. The README also documents data preparation and machine-learning comparison capabilities. The source excerpt is partial, so links between app sections and unsampled data/model steps are omitted unless documented in the README.

Main entry points: [`streamlit_finals.py`](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py) (Analysis navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Streamlit app"]
  node_app["Streamlit interface"]
  node_navigation["Analysis navigation"]
  node_search["Player search"]
  node_season["Season statistics"]
end

subgraph group_analysis["Value analysis"]
  node_formula["Rational formula"]
  node_estimator["Market value estimate"]
  node_brand["Brand premium analysis"]
  node_inefficiency["Market inefficiencies"]
end

subgraph group_model["Machine learning"]
  node_dashboard["ML dashboard"]
  node_comparison["Model comparison"]
  node_training["Model training"]
end

subgraph group_data["Player data"]
  node_preprocessing["Data preparation"]
  node_dataset[("Performance records")]
end

node_user(("Analyst"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_navigation
node_navigation -->|"selects"| node_search
node_navigation -->|"selects"| node_dashboard
node_navigation -->|"selects"| node_formula
node_navigation -->|"selects"| node_brand
node_navigation -->|"selects"| node_inefficiency
node_search -->|"aggregates"| node_season
node_dataset -.->|"provides records"| node_preprocessing
node_preprocessing -.->|"prepares features"| node_training
node_training -.->|"evaluates"| node_comparison
node_dashboard -->|"shows results"| node_comparison
node_formula -->|"calculates"| node_estimator
node_brand -.->|"compares against"| node_estimator
node_inefficiency -.->|"identifies gaps"| node_estimator

click node_app "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_navigation "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_search "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_season "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_formula "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_estimator "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_brand "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_inefficiency "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_dashboard "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_comparison "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_training "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py"
click node_preprocessing "https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.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_app,node_navigation,node_search,node_season toneBlue
class node_formula,node_estimator,node_brand,node_inefficiency toneAmber
class node_dashboard,node_comparison,node_training toneMint
class node_preprocessing,node_dataset toneRose
class node_user toneIndigo
```

## Components

### Streamlit app

- [Streamlit interface](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Analysis navigation](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Player search](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Season statistics](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`

### Value analysis

- [Rational formula](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Market value estimate](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Brand premium analysis](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Market inefficiencies](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`

### Machine learning

- [ML dashboard](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Model comparison](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- [Model training](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`

### Player data

- [Data preparation](https://github.com/vinayr17/playervalue_analysis/blob/main/streamlit_finals.py): `streamlit_finals.py`
- **Performance records**

### Other components

- **Analyst**

## Connections

- Analyst → Streamlit interface: uses (evidence: `README.md`)
- Streamlit interface → Analysis navigation: renders (evidence: `streamlit_finals.py`)
- Analysis navigation → Player search: selects (evidence: `streamlit_finals.py`)
- Analysis navigation → ML dashboard: selects (evidence: `README.md`)
- Analysis navigation → Rational formula: selects (evidence: `README.md`)
- Analysis navigation → Brand premium analysis: selects (evidence: `README.md`)
- Analysis navigation → Market inefficiencies: selects (evidence: `README.md`)
- Player search → Season statistics: aggregates (evidence: `streamlit_finals.py`)
- Performance records → Data preparation: provides records (evidence: `README.md`)
- Data preparation → Model training: prepares features (evidence: `README.md`)
- Model training → Model comparison: evaluates (evidence: `README.md`)
- ML dashboard → Model comparison: shows results (evidence: `streamlit_finals.py`)
- Rational formula → Market value estimate: calculates (evidence: `streamlit_finals.py`)
- Brand premium analysis → Market value estimate: compares against (evidence: `README.md`)
- Market inefficiencies → Market value estimate: identifies gaps (evidence: `README.md`)
