Skip to content

Commit

Permalink
Merge pull request #1031 from aditya-bhaumik/master
Browse files Browse the repository at this point in the history
TCS Stock Price Prediction using lstm
  • Loading branch information
Niketkumardheeryan authored Aug 2, 2024
2 parents f11fcec + cc1fc2f commit efb6249
Show file tree
Hide file tree
Showing 9 changed files with 5,735 additions and 0 deletions.
4,140 changes: 4,140 additions & 0 deletions TCS Stock Analysis/Dataset/TCS.csv

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TCS Stock Analysis/Images/TCS Stock Price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions TCS Stock Analysis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# TCS Stock Price Prediction using LSTM, K-Means Clustering, and Logistic Regression

## Overview

This project aims to predict the stock prices of Tata Consultancy Services (TCS) using a combination of Long Short-Term Memory (LSTM) networks, K-Means Clustering, and Logistic Regression. The system integrates these techniques to analyze historical stock price data and forecast future trends, enabling better investment decisions.

## Objectives

- Data Processing: Clean and preprocess historical stock price data of TCS.
- Model Development: Develop and train LSTM, K-Means Clustering, and Logistic Regression models for stock price prediction.
- Evaluation: Assess model performance and prediction accuracy.
- Optimization: Recommend optimal trading strategies based on model predictions.

## Technologies Used

- Python: Programming language for development.
- TensorFlow/Keras: Deep learning frameworks for building and training the LSTM model.
- Pandas: Data manipulation and analysis.
- NumPy: Numerical computing.
- Scikit-Learn: Machine learning tools for K-Means Clustering and Logistic Regression.
- Matplotlib/Seaborn: Data visualization.

## Models

### Long Short-Term Memory (LSTM)
- *Purpose*: Predict future stock prices by capturing temporal dependencies in historical data.
- *Architecture*: LSTM layers to handle sequential data, followed by dense layers for output prediction.

### K-Means Clustering
- *Purpose*: Segment historical stock data into clusters to identify patterns and trends.
- *Architecture*: K-Means algorithm to cluster data points based on similarities, aiding in feature extraction for predictive modeling.

### Logistic Regression
- *Purpose*: Classify stock price movements (e.g., up or down) based on extracted features.
- *Architecture*: Logistic regression model to predict binary outcomes, using features derived from historical data and clustering results.
8 changes: 8 additions & 0 deletions TCS Stock Analysis/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**Requirements For Project :-**

1. NumPy: Fundamental package for numerical computing.
2. pandas: Data analysis and manipulation library.
3. scikit-learn: Machine learning library for classification, regression, and clustering.
4. Matplotlib: Plotting library for creating visualizations.
5. Keras: High-level neural networks API, typically used with TensorFlow backend.
6. seaborn: Statistical data visualization library based on Matplotlib.

0 comments on commit efb6249

Please sign in to comment.