Git Product home page Git Product logo

spredictor-stock-price-recommender's Introduction

Spredictor-Stock-price-recommender

A web application that analyses real-time data such as news, twitter tweets regarding particular stocks alongside it’s previous history to produce a consolidated prediction with impressive accuracy.

I. Input Manager

The system's Input management module is responsible for providing correct and compatible input feature sets to machine learning models in order to generate predictions. It consists of two sub-modules:

  1. Data Filter Unit
  2. The data filter is responsible for filtering out unnecessary attributes from the input dataset and narrowing down the input dataset to the required attribute sets for further preprocessing activities.

  3. Data Processing Unit
  4. The data processing unit is responsible for various preprocessing activities such as data cleaning, normalization, data reshaping suitable for models, processing text data to sentiment values for sentiment-based models, and other necessary data processing.

II. Historical Data Model

The historical data model is the one making use of LSTM networks and takes in the feature set with one feature "Closing price" of the shape (1,60,1), which is an array of closing price values of the past 60 days. The feature set is fed to the model, and it generates the prediction for the next day.

III. Sentiment Based Model

The sentiment-based model employs LSTM networks and includes two features: "Closing price and sentiments" of the shape (1,3,2), which is an array of closing price and sentiment values from the previous three days. The sentiment values must be generated by utilising the Vader-Sentiment analyzer to process tweets and news feeds over the previous three days. The model is fed the feature set, and it forecasts the next day's closing price.

IV. Output

The output comprises predictions from historical data and sentiment-based models. The output predictions generated from historical data are based on statistical forecasts based on the previous closing prices, whereas the output predictions of the sentiment-based model incorporate drastic changes which might occur based on public sentiments.

Project Files Installation:

  1. Recommend creating a virtual environment with python 3.8.10 using the command:
    virtualenv -p <my_env_name>

  2. Activate the virtualenv:
    source <my_env_name>/bin/activate

  3. Use pip/pip3 and requirements.txt to install required packages:
    pip install -r requirements.txt

  4. Manually install other missing packages using pip command:
    pip install

Project Directory after successful installation(Virtual environment name = env):


  1. Edit app.py and update news-api credentials(api-key)(generate at https://newsapi.org/)

  2. Run the streamlit webserver using the commmand:
    streamlit run app.py

Project Dashboard Preview:

Click for Preview

(Download if unable to render code block)

spredictor-stock-price-recommender's People

Contributors

luvsurve avatar

Watchers

 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.