This repository contains the code implementation for creating and analyzing a Graph Neural Network (GNN) based dataset of the luxury watch market. The dataset itself is hosted on Hugging Face.
Contains the core implementation of the Graph Neural Network:
-
watch_gnn.py
: Primary GNN implementation including:- Data preprocessing
- Feature engineering
- Network construction
- Embedding generation
- Graph structure creation
This is an overview of what functionality has been in the
watch_gnn.py
:
Contains analysis and visualization scripts:
watch_analysis.py
: Implements various visualizations including:- UMAP embeddings
- t-SNE analysis
- PCA visualization
- Force-directed graph
- Starburst visualization
- Brand distribution analysis
- Correlation studies
Contains visualization outputs:
- Brand distribution treemap
- Feature correlation matrix
- UMAP visualization
- t-SNE analysis
- PCA visualization
- Force-directed graph
- Starburst graph
- Network architecture diagram
requirements.txt
: Lists all Python dependenciesWatches.csv
: Original dataset file.gitignore
: Specifies files and directories to be ignored by Git
- Clone the repository:
git clone https://github.com/calicartels/watch-market-gnn-code.git
cd watch-market-gnn-code
- Create and activate a virtual environment:
python -m venv .env
source .env/bin/activate # On Windows: .env\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- For GNN model implementation:
python code/watch_gnn.py
- For visualization and analysis:
python visualization/watch_analysis.py
The complete dataset is available on Hugging Face: TMVishnu/watch-market-gnn
This project is licensed under the Apache License 2.0
This complete code took me close to 6 hours to run without a GPU on a Macbook Air M3 with 16GB RAM. Wait for the complete code to finish running.