Giter Site home page Giter Site logo

navinbondade / foretelling-the-stock-price-behavior-with-major-news-headlines Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 48.26 MB

I have created a deep learning model that pre-determines how the stock price of a company will behave by taking into accounts the sentiment of major news headlines of that day.

License: Apache License 2.0

Jupyter Notebook 100.00%
deep-learning convolutional-neural-networks stock-market neural-network data-science natural-language-processing

foretelling-the-stock-price-behavior-with-major-news-headlines's Introduction

Foretelling The Stock Price Behavior Prediction By Top Twenty News Headlines Using Deep Learning & NLP

Fake_And_Real_News_Classification

News headline plays a critical role in determining the stock price behavior that mainly because most of the stockholder makes stock related decisions based on recent news. And that's why the sentiment of the news related to a particular company highly determines whether the stock of that company will grow up, down, or stay the same. To predict this behavior of the stocks I have created a deep learning system that helps to determine how the stock will behave based on the top twenty news headlines.

Libraries Used

  • Tensorflow
  • Keras
  • Numpy
  • Pandas
  • Matplotlib
  • Seaborn
  • Sklearn
  • Spacy
  • BeautifulSoup
  • Wordcloud

Target Class Distribution


Model Details

For the prediction of the stock price behaviors with top twenty news headlines, I have created a deep learning model that is divided into two sections, the first section uses two one dimensional convolutional layers each followed by a max-pooling and dropout layer, and the second section uses three fully connected dense neural network layers. All the layers use RELU as an activation function except the last dense layer that uses the sigmoid activation function to map predicted values to probabilities between 0 and 1.

Model Traning

loss_accuracy

The model has been trained for five epochs. During training, the model uses Adam as an optimizer. The loss function used was mean square error to penalize the model more whenever it makes false predictions.

Model Evaluation on Development Dataset

  • Training Data Accuracy: 98%
  • Training Data Loss: 0.014
  • Test Data Accuracy: 99%
  • Test Data Loss: 0.026

Confusion Matrix

Classification Report on Development Dataset

Conclusion

In this project, I have created a deep learning model that foretells how the stock price of a company will behave by considering major news headlines with an impressive accuracy of 98 percent.

foretelling-the-stock-price-behavior-with-major-news-headlines's People

Contributors

navinbondade avatar

Stargazers

 avatar

Watchers

 avatar  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.