Giter VIP home page Giter VIP logo

stock-price-prediction's Introduction

Stock-Price-Prediction

Predicting stock price using historical data of a company, using Neural networks (LSTM).

This project includes python programs to show Keras LSTM can be used to predict future stock prices for a company using it's historical stock price data. You can also find sample programs on how to fine tune Hyperprameters of LSTM (or any Neural Network for that matter).

If you are further interested in the project, checkout my blog on the same here

Here is the final result : (although performance could be further improved to some extent by playing around with the parameters even more)

alt text

alt text

stock-price-prediction's People

Contributors

nayash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stock-price-prediction's Issues

How to run ....

Hello
Thanks for sharing your program,

I want to run "stock_pred_main.py" but It displays the following error:

 can't find '__main__' module 

what should I do?

Regards
ARZ

Error while using the .fit() for the model

Im getting this Value error:
Attempt to convert a value (1.0) with an unsupported type (<class 'numpy.float32'>) to a Tensor.

And then I changed the numpy array to a tensor and that issue was resolved.
But I get this error now:
If your data is in the form of symbolic tensors, you should specify the steps_per_epoch argument (instead of the batch_size argument, because symbolic tensors are expected to produce batches of input data).

Do you have any inputs on this?
Thank you in advance

MinMaxScaler -- not fitting entire min/max values?

In the code

# scale the feature MinMax, build array
x = df_train.loc[:,train_cols].values
min_max_scaler = MinMaxScaler()
x_train = min_max_scaler.fit_transform(x)
x_test = min_max_scaler.transform(df_test.loc[:,train_cols])

You are scaling the min/max from the train values and then fitting the test. What if the maximum value of X is higher in test vs train? How will it work in x_test after the transformation? The value will be more than 1 for the maximum X in test set which was higher than Xmas in train ?

Thanks
Mudit

Forecast

Hi thanks for the brilliant work. I want to know what should ı do for forecasting the future. I tried bunch of things yet I could not achieve it. Thanks already.

How to Run it On Google Colab

Hellow,
I am totaly unaware of python and programs, but interseted in testing such algorthms, Can you please write tutorial how do i can run this program with google colab

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.