NI
niyatipatel2005/Machine-Learning-based-Financial-Analysis
A financial analysis web app that extracts and visualizes key metrics from company financial data using Python and Flask.
๐ ML Financial Analysis
A web-based platform that provides fundamental analysis of companies using historical financial data, key ratios, and visualizations.
๐ง Features
- Extracts and calculates key metrics like:
- ROE (Return on Equity)
- Sales & Profit growth (3Y, 5Y, 10Y)
- Displays pros and cons from MySQL database
- Clean UI with HTML + CSS
- Metrics fetched from JSON files (per company)
- Built using Python Flask
๐ Project Structure
ML_Financial_Analysis/
โ
โโโ app/ # Flask routes and templates
โโโ static/
โโโ templates/
โโโ assets/ # CSS, images, etc.
โโโ metrics/ # Generated metric JSON files
โโโ raw_data/ # Raw company JSON input files
โโโ scripts/ # Python script for metrics extraction
โโโ insights/ # Visual outputs
โโโ output/ # Optional export/output directory
โโโ .venv/ # Python virtual environment
โโโ main.py # Entry point for the app
โโโ app.py # (optional) if used to launch
โโโ README.md # You are here
๐ Setup Instructions
1. Clone the repo:
git clone https://github.com/niyatipatel2005/Machine-Learning-based-Financial-Analysis.git
cd Machine-Learning-based-Financial-Analysis
2. Create and activate virtual environment (Windows):
python -m venv .venv
.venv\Scripts\activate3. Install required packages:
pip install -r requirements.txt4. Generate metrics:
python scripts/extract_metrics.py5. Run the Flask app:
python app.pyAuthors
- Niyati Patel - https://github.com/niyatipatel2005
License
This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details