GithubHelp home page GithubHelp logo

noohshiny / stock_price_predication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmjagtap/stock_price_predication

0.0 0.0 0.0 784 KB

I have implemented Artificial Neural Network (ANN) model to predict the stock prices and compare it with linear regression.

Python 100.00%

stock_price_predication's Introduction

Stock Market Price Predication

AUTHOR:

Screenshot

DESCRIPTION:

  • Dataset:
    The dataset is taken from NSE India's website in CSV format. The dataset consists of Open, High, Low and Closing Prices of Kotak bank Ltd. stocks from 29 March 2016 to 28 March 2018 - total 502 rows It's two year data.

  • Data Pre-processing:
    It is one column data(Closing price). This has been converted into two column time series data, 1st column consisting stock price of time t, and second column of time t+1. All values have been normalized between 0 and 1.

  • Model:

    1. Two sequential LSTM(Long Short Term Memory) layers have been used together and one dense layer is used to build the ANN model using Keras deep learning library. and 'linear' activation has been used as final layer.
    2. Linear Regression Model for predicting price
  • Training and Testing data:
    75% data is used for training. and 25% data used as Testing.

Requirment :

	1) python Pandas version `0.20.3` install using:- ' pip install pandas '
	2) python Matplotlib version `2.1.1` install :-	  ' pip install matploatlib '
	3) python Nupmy version `1.14.2` install using:-  ' pip install numpy '
	4) python Scikit learn lib `3.2.5` install:-      ' pip install sklearn '
	5) python Tensorflow lib  `1.5.0` install :-	  ' pip install tensorflow '
	6) python keras lib version `2.1.5` install:-	  ' pip install keras '

Test :

Normalized Mean square error is used for evaluating the prediction accuracy (NMSE).

Execution :

  ` python3 pricePrediction.py `

Conclusion :

I had used two models for predicting prices. so by comparision we found that both models  
predict near about same prices but ANN model predicts better so It is better for prediction.  

Note:- Do not invest just by this project. do your own analysis.

stock_price_predication's People

Contributors

cmjagtap avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.