Giter VIP home page Giter VIP logo

stock-price-prediction's Introduction

Predicting Stock Price using Machine Learning

Problem Overview

Initially I was given two datasets namely Train_dataset_ - Train_Aug10.csv and Test_dataset - Put-Call_TS.csv.

Train_dataset_ - Train_Aug10.csv

This dataset contains various stock's fractors (features) and the respective stock price. The Problem is to make an Machine Learning Regression Model that first learns on the training dataset and then predicts the value for the test dataset. The predicted .csv file is saved as file_01.csv

Algorithm used : Random Forest Regressor

Test_dataset - Put-Call_TS.csv

This dataset contains a single stock's PutCall Ratio parameter, but on 5 different consecutive days. The Problem is to make an efficient Machine Learning Time Series Model that first learns on the training dataset and then predicts the value on test dataset. The predicted .csv file is saved as file_02.csv

Algorithm used : VAR : Vector Auto Regressor


How to use our Notebooks

You can also avoid all the below steps and instead load the notebooks on Google Colab appropriately with the datasets.

1. Install the requirements.txt

pip install -r requirements.txt #Preferable to install on a Virtual Environment 

If OSx / Linux use pip3 instead of pip

2. Running the Notebooks

Problem 01 :

There are 2 Notebooks names problem_01.ipynb and test_dataprep.ipynb.

problem_01.ipynb is the actual problem notebook.

test_dataprep.ipynb is to clean the test Dataset. Which is then exported to be used by the main Notebook.

This all could have avoided and made into a single Notebook but it was clumsy. So for better readability, we had to make two different Notebook.

Problem 02 :

Run the problem_02.ipynb and the solution will be outputted. And respective csv file is save in Answer_files directory as file_02.csv.

3. Answer Folder

After the execution of both the notebooks the .csv file solutions wil be exported.

These .csv files (solutions) are present into the Answer_files.

stock-price-prediction's People

Contributors

annish-mudakavi 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.