# kanchamramakrishna/auction_ease architecture

> Architecture diagram of the GitHub repository kanchamramakrishna/auction_ease, 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/kanchamramakrishna/auction_ease
- Repository: https://github.com/kanchamramakrishna/auction_ease

## Overview

Auction Ease supports player discovery for IPL auctions through a Streamlit interface and a command-line workflow: load player features, collect role and priority requirements, filter eligible players, rank them, then review or shortlist recommendations. Separate feature-generation and model-training scripts create player features, temporal embeddings, and performance models used by ranking. The README was empty, so capabilities and links here are based on the supplied source excerpts and index; unsampled processing details are not inferred.

Main entry points: [`App.py`](https://github.com/kanchamramakrishna/auction_ease/blob/main/App.py) (Streamlit app), [`main.py`](https://github.com/kanchamramakrishna/auction_ease/blob/main/main.py) (CLI workflow), [`combine_player_features.py`](https://github.com/kanchamramakrishna/auction_ease/blob/main/combine_player_features.py) (Feature assembly), [`rank_players.py`](https://github.com/kanchamramakrishna/auction_ease/blob/main/rank_players.py) (Player ranking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Player discovery"]
  node_streamlit_app["Streamlit app<br/>[App.py]"]
  node_cli_flow["CLI workflow<br/>[main.py]"]
  node_recommendations["Ranked recommendations"]
  node_shortlist["Player shortlist"]
end

subgraph group_ranking["Eligibility and ranking"]
  node_requirements_prompt["Auction requirements"]
  node_eligibility_filter["Role and style filter<br/>[filter_players.py]"]
  node_player_ranker["Player ranking<br/>[rank_players.py]"]
end

subgraph group_features["Player feature preparation"]
  node_feature_dataset[("Player features")]
  node_profiles[("Player profiles")]
  node_match_history[("Player match history<br/>[player_history.csv]")]
  node_temporal_encoder["LSTM encoder training<br/>[lstm_model.py]"]
  node_embeddings[("LSTM embeddings")]
  node_feature_join["Feature assembly"]
end

subgraph group_models["Performance modeling"]
  node_role_labeled_matches[("Role-labelled match data")]
  node_model_training["Performance model training<br/>[train_model.py]"]
  node_model_bundle[("Performance model bundle")]
end

node_auctioneer(("Auction analyst"))

node_auctioneer -->|"sets preferences"| node_streamlit_app
node_streamlit_app -->|"loads features"| node_feature_dataset
node_streamlit_app -->|"filters players"| node_eligibility_filter
node_streamlit_app -->|"ranks eligible"| node_player_ranker
node_streamlit_app -->|"displays results"| node_recommendations
node_streamlit_app -->|"updates shortlist"| node_shortlist
node_auctioneer -->|"provides choices"| node_cli_flow
node_cli_flow -->|"loads features"| node_feature_dataset
node_cli_flow -->|"collects choices"| node_requirements_prompt
node_cli_flow -->|"filters players"| node_eligibility_filter
node_cli_flow -->|"ranks eligible"| node_player_ranker
node_cli_flow -->|"prints results"| node_recommendations
node_feature_join -->|"reads profiles"| node_profiles
node_feature_join -->|"reads embeddings"| node_embeddings
node_feature_join -->|"writes features"| node_feature_dataset
node_temporal_encoder -->|"reads history"| node_match_history
node_temporal_encoder -->|"writes embeddings"| node_embeddings
node_model_training -->|"uses match data"| node_role_labeled_matches
node_model_training -->|"saves models"| node_model_bundle
node_player_ranker -->|"loads models"| node_model_bundle

click node_streamlit_app "https://github.com/kanchamramakrishna/auction_ease/blob/main/App.py"
click node_cli_flow "https://github.com/kanchamramakrishna/auction_ease/blob/main/main.py"
click node_feature_dataset "https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_features.csv"
click node_requirements_prompt "https://github.com/kanchamramakrishna/auction_ease/blob/main/auction_requirements.py"
click node_eligibility_filter "https://github.com/kanchamramakrishna/auction_ease/blob/main/filter_players.py"
click node_player_ranker "https://github.com/kanchamramakrishna/auction_ease/blob/main/rank_players.py"
click node_profiles "https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_profiles.csv"
click node_match_history "https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_history.csv"
click node_temporal_encoder "https://github.com/kanchamramakrishna/auction_ease/blob/main/lstm_model.py"
click node_embeddings "https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/lstm_player_embeddings.csv"
click node_feature_join "https://github.com/kanchamramakrishna/auction_ease/blob/main/combine_player_features.py"
click node_role_labeled_matches "https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_match_final_roles.csv"
click node_model_training "https://github.com/kanchamramakrishna/auction_ease/blob/main/train_model.py"
click node_model_bundle "https://github.com/kanchamramakrishna/auction_ease/tree/main/models"

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_app,node_cli_flow,node_recommendations,node_shortlist toneBlue
class node_requirements_prompt,node_eligibility_filter,node_player_ranker toneAmber
class node_feature_dataset,node_profiles,node_match_history,node_temporal_encoder,node_embeddings,node_feature_join toneMint
class node_role_labeled_matches,node_model_training,node_model_bundle toneRose
class node_auctioneer toneIndigo
```

## Components

### Player discovery

- [Streamlit app](https://github.com/kanchamramakrishna/auction_ease/blob/main/App.py): `App.py`
- [CLI workflow](https://github.com/kanchamramakrishna/auction_ease/blob/main/main.py): `main.py`
- **Ranked recommendations**
- **Player shortlist**

### Eligibility and ranking

- [Auction requirements](https://github.com/kanchamramakrishna/auction_ease/blob/main/auction_requirements.py): `auction_requirements.py`
- [Role and style filter](https://github.com/kanchamramakrishna/auction_ease/blob/main/filter_players.py): `filter_players.py`
- [Player ranking](https://github.com/kanchamramakrishna/auction_ease/blob/main/rank_players.py): `rank_players.py`

### Player feature preparation

- [Player features](https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_features.csv): `data/processed/player_features.csv`
- [Player profiles](https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_profiles.csv): `data/processed/player_profiles.csv`
- [Player match history](https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_history.csv): `data/processed/player_history.csv`
- [LSTM encoder training](https://github.com/kanchamramakrishna/auction_ease/blob/main/lstm_model.py): `lstm_model.py`
- [LSTM embeddings](https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/lstm_player_embeddings.csv): `data/processed/lstm_player_embeddings.csv`
- [Feature assembly](https://github.com/kanchamramakrishna/auction_ease/blob/main/combine_player_features.py): `combine_player_features.py`

### Performance modeling

- [Role-labelled match data](https://github.com/kanchamramakrishna/auction_ease/blob/main/data/processed/player_match_final_roles.csv): `data/processed/player_match_final_roles.csv`
- [Performance model training](https://github.com/kanchamramakrishna/auction_ease/blob/main/train_model.py): `train_model.py`
- [Performance model bundle](https://github.com/kanchamramakrishna/auction_ease/tree/main/models): `models`

### Other components

- **Auction analyst**

## Connections

- Auction analyst → Streamlit app: sets preferences (evidence: `App.py`)
- Streamlit app → Player features: loads features (evidence: `App.py`)
- Streamlit app → Role and style filter: filters players (evidence: `App.py`)
- Streamlit app → Player ranking: ranks eligible (evidence: `App.py`)
- Streamlit app → Ranked recommendations: displays results (evidence: `App.py`)
- Streamlit app → Player shortlist: updates shortlist (evidence: `App.py`)
- Auction analyst → CLI workflow: provides choices (evidence: `main.py`)
- CLI workflow → Player features: loads features (evidence: `main.py`)
- CLI workflow → Auction requirements: collects choices (evidence: `main.py`)
- CLI workflow → Role and style filter: filters players (evidence: `main.py`)
- CLI workflow → Player ranking: ranks eligible (evidence: `main.py`)
- CLI workflow → Ranked recommendations: prints results (evidence: `main.py`)
- Feature assembly → Player profiles: reads profiles (evidence: `combine_player_features.py`)
- Feature assembly → LSTM embeddings: reads embeddings (evidence: `combine_player_features.py`)
- Feature assembly → Player features: writes features (evidence: `combine_player_features.py`)
- LSTM encoder training → Player match history: reads history (evidence: `lstm_model.py`)
- LSTM encoder training → LSTM embeddings: writes embeddings (evidence: `lstm_model.py`)
- Performance model training → Role-labelled match data: uses match data (evidence: `train_model.py`)
- Performance model training → Performance model bundle: saves models (evidence: `train_model.py`)
- Player ranking → Performance model bundle: loads models (evidence: `rank_players.py`)
