# vatshayan/final-year-machine-learning-stock-price-prediction-project architecture

> Architecture diagram of the GitHub repository vatshayan/final-year-machine-learning-stock-price-prediction-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vatshayan/final-year-machine-learning-stock-price-prediction-project
- Repository: https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project

## Overview

This is a Google stock-price prediction project. The available Python excerpt loads a training CSV, selects its price column, and plots it; the README describes a broader machine-learning workflow from preprocessing through LSTM prediction and result visualization. Those later stages are documented capabilities, but their implementation in the notebook was not inspected, so the graph reflects the README rather than verified notebook calls.

Main entry points: [`stocks_code.py`](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/stocks_code.py) (Load and preprocess), [`Stocks_code.ipynb`](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb) (Feature scaling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data and exploration"]
  node_price_data["Google price data"]
  node_load_prep["Load and preprocess<br/>[stocks_code.py]"]
  node_dataset_viz["Dataset visualization<br/>[stocks_code.py]"]
end

subgraph group_model["Model workflow"]
  node_feature_scale["Feature scaling<br/>[Stocks_code.ipynb]"]
  node_training_data["Training preparation<br/>[Stocks_code.ipynb]"]
  node_lstm_model["LSTM model<br/>[Stocks_code.ipynb]"]
end

subgraph group_results["Prediction results"]
  node_prediction["Output prediction<br/>[Stocks_code.ipynb]"]
  node_result_viz["Result visualization<br/>[Stocks_code.ipynb]"]
end

node_load_prep -->|"reads CSV"| node_price_data
node_load_prep -->|"plots prices"| node_dataset_viz
node_load_prep -->|"prepares data"| node_feature_scale
node_feature_scale -->|"scales features"| node_training_data
node_training_data -->|"trains model"| node_lstm_model
node_lstm_model -->|"predicts output"| node_prediction
node_prediction -->|"visualizes results"| node_result_viz

click node_load_prep "https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/stocks_code.py"
click node_dataset_viz "https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/stocks_code.py"
click node_feature_scale "https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb"
click node_training_data "https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb"
click node_lstm_model "https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb"
click node_prediction "https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb"
click node_result_viz "https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb"

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_price_data,node_load_prep,node_dataset_viz toneBlue
class node_feature_scale,node_training_data,node_lstm_model toneAmber
class node_prediction,node_result_viz toneMint
```

## Components

### Data and exploration

- **Google price data**
- [Load and preprocess](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/stocks_code.py): `stocks_code.py`
- [Dataset visualization](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/stocks_code.py): `stocks_code.py`

### Model workflow

- [Feature scaling](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb): `Stocks_code.ipynb`
- [Training preparation](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb): `Stocks_code.ipynb`
- [LSTM model](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb): `Stocks_code.ipynb`

### Prediction results

- [Output prediction](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb): `Stocks_code.ipynb`
- [Result visualization](https://github.com/vatshayan/final-year-machine-learning-stock-price-prediction-project/blob/main/Stocks_code.ipynb): `Stocks_code.ipynb`

## Connections

- Load and preprocess → Google price data: reads CSV (evidence: `stocks_code.py`)
- Load and preprocess → Dataset visualization: plots prices (evidence: `stocks_code.py`)
- Load and preprocess → Feature scaling: prepares data (evidence: `README.md`)
- Feature scaling → Training preparation: scales features (evidence: `README.md`)
- Training preparation → LSTM model: trains model (evidence: `README.md`)
- LSTM model → Output prediction: predicts output (evidence: `README.md`)
- Output prediction → Result visualization: visualizes results (evidence: `README.md`)
