Giter Site home page Giter Site logo

killswitchh / stock-market-prediction Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 1.0 18 KB

A script to find the stock value of a company using semantic analysis and Machine Learning Algorithms

Python 100.00%
linearregression machine-learning sentiment-analysis

stock-market-prediction's Introduction

PREREQUISITES:
-> Working Internet Connection

-> Python 3.6 or above

-> Pip (pip is inbuilt if python 3.6 and above is installed)

-> Beautifulsoup 4-
To install Beautiful soup library , open command prompt and type in "pip install beautifulsoup4"
For further reference check the documentation for beautiful soup here
https://www.crummy.com/software/BeautifulSoup/bs4/doc/#

-> Requests
To install Requests library , open command prompt and type in " pip install requests"
For further reference check the documentation for Requests here
http://docs.python-requests.org/en/v2.7.0/

-> Pandas
To install Pandas , open command prompt and type in " pip install pandas"
For further reference , check the documentations for Pandas here
https://pandas.pydata.org/pandas-docs/stable/whatsnew.html

-> Scikit Learn
To install Scikit Learn , open command prompt and type in " pip install scikit-learn"
For further reference , check the documentations for Scikit-learn here
https://pypi.org/project/scikit-learn/

-> Vader Sentiment Analyzer
To install Vader Sentiment Analyzer, open command prompt and type in " pip install vaderSentiment"
For further reference, check the documentations for Vader Sentiment Analyzer here
https://github.com/cjhutto/vaderSentiment#installation

RUNNING THE CODE:

-> Before running the code the dataset containing the companys previous stock values has to be fed to the code

-> The user can give in any csv file(should contain open and close prices) and name it as company.csv
   and place it in the directory that contains the code

-> One csv file is already loaded into the folder for testing purposes

-> open "Stock Prediction using Linear Regression and Sentiment Analysis.py" and run it using python IDLE

-> Ignore warning messages if displayed

-> The code asks for the user to input the company name which is the search term, enter a search term and the code starts to execute

-> wait for the code execution to complete to get the output


stock-market-prediction's People

Contributors

killswitchh avatar

Stargazers

 avatar

Forkers

jigyasa10

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.