Raheel31 commited on
Commit
85927f8
·
verified ·
1 Parent(s): 1c48e99

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -10
README.md CHANGED
@@ -1,12 +1,60 @@
1
  ---
2
  license: mit
3
- language:
4
- - en
5
- metrics:
6
- - accuracy
7
- pipeline_tag: time-series-forecasting
8
- tags:
9
- - finance
10
- - GAN
11
- - PYTORCH
12
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ title: Synthetic Stock Data Generator & Visualizer
4
+ emoji: 🧠
5
+ colorFrom: blue
6
+ colorTo: purple
7
+ sdk: gradio
8
+ sdk_version: 4.0
9
+ app_file: app/app.py
10
+ pinned: false
11
+ ---
12
+ # 🧠 Synthetic Stock Data Generator & Visualizer
13
+
14
+ This project builds a **synthetic stock market data generator** using a combination of **Autoencoders (AE)** and **Generative Adversarial Networks (GANs)**.
15
+ The goal is to create realistic synthetic financial time-series data and compare model performance between **real** and **synthetic** datasets.
16
+
17
+ ---
18
+
19
+ ## 🚀 **Project Overview**
20
+
21
+ ### 🔹 Workflow
22
+ 1. **Autoencoder (AE):**
23
+ - Encodes stock price data into a compressed **latent space**.
24
+ - Captures temporal and feature-based dependencies between Open, High, Low, Close, and Volume.
25
+
26
+ 2. **GAN (Generator + Discriminator):**
27
+ - Learns to generate **synthetic latent vectors** that mimic the AE latent representations.
28
+ - Generator produces fake latent vectors.
29
+ - Discriminator learns to distinguish between real (from AE encoder) and fake (from Generator).
30
+
31
+ 3. **Synthetic Data Reconstruction:**
32
+ - The **synthetic latent vectors** are passed through the **AE Decoder**.
33
+ - This recreates **synthetic stock market data** at the feature level (Open, High, Low, Close, Volume).
34
+
35
+ 4. **Model Evaluation:**
36
+ - A downstream **neural network classifier** is trained on:
37
+ - Real data
38
+ - Synthetic data
39
+ - Performance metrics and comparison charts are saved in the `/charts` folder.
40
+
41
+ ---
42
+
43
+ ## 📊 **Visualization App**
44
+
45
+ The project includes a **Gradio-powered dashboard** to visualize stock time series for real and synthetic data.
46
+
47
+ ### 🖥️ Try it on Hugging Face
48
+ If you’re viewing this on Hugging Face, launch the app directly below 👇
49
+
50
+ [![Hugging Face Space](https://img.shields.io/badge/Gradio_App-Open_in_Space-blue?logo=gradio)](https://huggingface.co/spaces/Raheel31/Synthetic_Stock_Data)
51
+
52
+ ### 🔍 App Features
53
+ - Select any stock ticker and feature (Open, High, Low, Close, Volume)
54
+ - View **5-year time series** comparisons of **original vs synthetic data**
55
+ - Interactive plots rendered with `matplotlib`
56
+
57
+ ---
58
+
59
+ ## 📂 **Repository Structure**
60
+