-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1031 from aditya-bhaumik/master
TCS Stock Price Prediction using lstm
- Loading branch information
Showing
9 changed files
with
5,735 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,552 changes: 1,552 additions & 0 deletions
1,552
...l/TCS_Stock_Price_Prediction_using_LSTM,_K_Means_Clustering_And_Logistic_Regression.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |