# anuraagpatil007/pokemon-go-analytics architecture

> Architecture diagram of the GitHub repository anuraagpatil007/pokemon-go-analytics, 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/anuraagpatil007/pokemon-go-analytics
- Repository: https://github.com/anuraagpatil007/pokemon-go-analytics

## Overview

This repository is a Pokémon Go ratings analysis project. Its main workflow scrapes historical Android and iOS app-page data, combines ratings by timestamp, explores the resulting data, and fits platform-specific models to predict ratings for 2016-11-01 23:50. A separate image-analysis branch extracts screenshot references and classifies images with TensorFlow. The README also mentions Lasso, but no Lasso implementation appears in the tree. Edges reflect sampled code or documented workflow; the exploration input and image-classifier handoff are not fully wired in the excerpts.

Main entry points: [`data file`](https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/data%20file) (Ratings datasets), [`codes`](https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/codes) (Rating predictions), [`codes/load_html_data.py`](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/load_html_data.py) (Ratings scraper), [`codes/Image_Extraction.py`](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/Image_Extraction.py) (Screenshot extraction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Data collection"]
  node_scraper["Ratings scraper<br/>[load_html_data.py]"]
  node_ratings["Ratings datasets"]
end

subgraph group_images["Image analysis"]
  node_imageextract["Screenshot extraction"]
  node_imagelist["Image references<br/>[image.json]"]
  node_screenshots["App screenshots"]
  node_classifier["TensorFlow classifier"]
  node_classifications["Image predictions"]
end

subgraph group_analysis["Data analysis"]
  node_exploration["Data exploration"]
  node_tabulardata["Tabular analysis input"]
end

subgraph group_prediction["Rating prediction"]
  node_androidlinear["Android linear model"]
  node_androidridge["Android ridge model<br/>[android-ridge.py]"]
  node_ioslinear["iOS linear model"]
  node_iosridge["iOS ridge model<br/>[ios-ridge.py]"]
  node_lasso["Lasso models"]
  node_forecast["Rating predictions"]
end

node_web(("App-page HTML"))

node_web -->|"scrapes"| node_scraper
node_scraper -->|"writes datasets"| node_ratings
node_web -->|"extracts screenshots"| node_imageextract
node_imageextract -->|"writes references"| node_imagelist
node_screenshots -.->|"classifies images"| node_classifier
node_classifier -->|"writes predictions"| node_classifications
node_ratings -.->|"explores data"| node_exploration
node_tabulardata -->|"reads data"| node_exploration
node_ratings -.->|"trains from"| node_androidlinear
node_ratings -.->|"trains from"| node_androidridge
node_ratings -.->|"trains from"| node_ioslinear
node_ratings -.->|"trains from"| node_iosridge
node_androidlinear -->|"predicts Android"| node_forecast
node_androidridge -->|"predicts Android"| node_forecast
node_ioslinear -->|"predicts iOS"| node_forecast
node_iosridge -->|"predicts iOS"| node_forecast
node_lasso -.->|"predicts ratings"| node_forecast

click node_scraper "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/load_html_data.py"
click node_ratings "https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/data%20file"
click node_imageextract "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/Image_Extraction.py"
click node_imagelist "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/data%20file/image.json"
click node_screenshots "https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/tensorflow"
click node_classifier "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/image_classify_by_tensorflow.py"
click node_classifications "https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/tensorflow"
click node_exploration "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/Data_exploration.py"
click node_androidlinear "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/android-LinearRegression.py"
click node_androidridge "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/android-ridge.py"
click node_ioslinear "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/ios-LinearRegression.py"
click node_iosridge "https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/ios-ridge.py"
click node_lasso "https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/codes"
click node_forecast "https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/codes"

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_scraper,node_ratings toneBlue
class node_imageextract,node_imagelist,node_screenshots,node_classifier,node_classifications toneAmber
class node_exploration,node_tabulardata toneMint
class node_androidlinear,node_androidridge,node_ioslinear,node_iosridge,node_lasso,node_forecast toneRose
class node_web toneIndigo
```

## Components

### Data collection

- [Ratings scraper](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/load_html_data.py): `codes/load_html_data.py`
- [Ratings datasets](https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/data%20file): `data file`

### Image analysis

- [Screenshot extraction](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/Image_Extraction.py): `codes/Image_Extraction.py`
- [Image references](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/data%20file/image.json): `data file/image.json`
- [App screenshots](https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/tensorflow): `tensorflow`
- [TensorFlow classifier](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/image_classify_by_tensorflow.py): `codes/image_classify_by_tensorflow.py`
- [Image predictions](https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/tensorflow): `tensorflow`

### Data analysis

- [Data exploration](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/Data_exploration.py): `codes/Data_exploration.py`
- **Tabular analysis input**

### Rating prediction

- [Android linear model](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/android-LinearRegression.py): `codes/android-LinearRegression.py`
- [Android ridge model](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/android-ridge.py): `codes/android-ridge.py`
- [iOS linear model](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/ios-LinearRegression.py): `codes/ios-LinearRegression.py`
- [iOS ridge model](https://github.com/anuraagpatil007/pokemon-go-analytics/blob/master/codes/ios-ridge.py): `codes/ios-ridge.py`
- [Lasso models](https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/codes): `codes`
- [Rating predictions](https://github.com/anuraagpatil007/pokemon-go-analytics/tree/master/codes): `codes`

### Other components

- **App-page HTML**

## Connections

- App-page HTML → Ratings scraper: scrapes (evidence: `README.md`)
- Ratings scraper → Ratings datasets: writes datasets (evidence: `codes/load_html_data.py`)
- App-page HTML → Screenshot extraction: extracts screenshots (evidence: `README.md`)
- Screenshot extraction → Image references: writes references (evidence: `codes/Image_Extraction.py`)
- App screenshots → TensorFlow classifier: classifies images
- TensorFlow classifier → Image predictions: writes predictions (evidence: `codes/image_classify_by_tensorflow.py`)
- Ratings datasets → Data exploration: explores data
- Tabular analysis input → Data exploration: reads data (evidence: `codes/Data_exploration.py`)
- Ratings datasets → Android linear model: trains from
- Ratings datasets → Android ridge model: trains from
- Ratings datasets → iOS linear model: trains from
- Ratings datasets → iOS ridge model: trains from
- Android linear model → Rating predictions: predicts Android (evidence: `codes/android-LinearRegression.py`)
- Android ridge model → Rating predictions: predicts Android (evidence: `codes/android-ridge.py`)
- iOS linear model → Rating predictions: predicts iOS (evidence: `codes/ios-LinearRegression.py`)
- iOS ridge model → Rating predictions: predicts iOS (evidence: `codes/ios-ridge.py`)
- Lasso models → Rating predictions: predicts ratings (evidence: `README.md`)
