# himpat202/predicting-product-prices-using-the-amazon-reviews-dataset architecture

> Architecture diagram of the GitHub repository himpat202/predicting-product-prices-using-the-amazon-reviews-dataset, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset
- Repository: https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset

## Overview

This repository is a notebook-based product-price prediction and comparison project. Its documented workflow loads Amazon product metadata, filters and cleans items into prompts, trains and runs price predictors, then compares estimates with human estimations and visualizes results. The loader-to-item dependency is visible in source; notebook orchestration and model details are documented only at a high level, so those links are marked unverified. The README lists GPT and regression as approaches, but their implementations are not shown in the sampled source.

Main entry points: [`predicting product prices.ipynb`](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/predicting%20product%20prices.ipynb) (Price notebook), [`loaders.py`](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/loaders.py) (Item loader), [`testing.py`](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/testing.py) (Prediction tester), [`items.py`](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/items.py) (Item cleaning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data_prep["Data preparation"]
  node_item_loader["Item loader<br/>[loaders.py]"]
  node_item_cleaner["Item cleaning<br/>[items.py]"]
end

subgraph group_prediction["Prediction workflow"]
  node_notebook["Price notebook"]
  node_price_models["Price predictors"]
end

subgraph group_evaluation["Evaluation and comparison"]
  node_human_estimates["Human estimates<br/>[human_input.csv]"]
  node_human_results["Human predictions<br/>[human_output.csv]"]
  node_tester["Prediction tester<br/>[testing.py]"]
  node_visualizations["Visual results"]
end

node_amazon_data[("Amazon reviews")]

node_item_loader -->|"loads dataset"| node_amazon_data
node_item_loader -->|"creates items"| node_item_cleaner
node_notebook -.->|"uses loader"| node_item_loader
node_notebook -.->|"trains and predicts"| node_price_models
node_notebook -.->|"compares estimates"| node_human_estimates
node_notebook -.->|"compares predictions"| node_human_results
node_tester -.->|"evaluates predictor"| node_price_models
node_notebook -.->|"evaluates predictions"| node_tester
node_notebook -.->|"visualizes results"| node_visualizations

click node_item_loader "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/loaders.py"
click node_item_cleaner "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/items.py"
click node_notebook "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/predicting%20product%20prices.ipynb"
click node_price_models "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/predicting%20product%20prices.ipynb"
click node_human_estimates "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/human_input.csv"
click node_human_results "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/human_output.csv"
click node_tester "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/testing.py"
click node_visualizations "https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/tree/main/output"

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_item_loader,node_item_cleaner toneBlue
class node_notebook,node_price_models,node_amazon_data toneAmber
class node_human_estimates,node_human_results,node_tester,node_visualizations toneMint
```

## Components

### Data preparation

- [Item loader](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/loaders.py): `loaders.py`
- [Item cleaning](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/items.py): `items.py`

### Prediction workflow

- [Price notebook](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/predicting%20product%20prices.ipynb): `predicting product prices.ipynb`
- [Price predictors](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/predicting%20product%20prices.ipynb): `predicting product prices.ipynb`

### Evaluation and comparison

- [Human estimates](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/human_input.csv): `human_input.csv`
- [Human predictions](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/human_output.csv): `human_output.csv`
- [Prediction tester](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/blob/main/testing.py): `testing.py`
- [Visual results](https://github.com/himpat202/predicting-product-prices-using-the-amazon-reviews-dataset/tree/main/output): `output`

### Other components

- **Amazon reviews**

## Connections

- Item loader → Amazon reviews: loads dataset (evidence: `loaders.py`)
- Item loader → Item cleaning: creates items (evidence: `loaders.py`)
- Price notebook → Item loader: uses loader
- Price notebook → Price predictors: trains and predicts (evidence: `README.md`)
- Price notebook → Human estimates: compares estimates (evidence: `README.md`)
- Price notebook → Human predictions: compares predictions (evidence: `README.md`)
- Prediction tester → Price predictors: evaluates predictor
- Price notebook → Prediction tester: evaluates predictions
- Price notebook → Visual results: visualizes results (evidence: `README.md`)
