错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Financial Fortunes: A Stock Price Prediction Using LSTM

  • M. S. Supriya,
  • R. Nithin Rao,
  • Bobburi Anusreeja,
  • H. R. Anmol,
  • P. R. Tejas,
  • Akhilesh Rawoor

摘要

This paper uses a variety of libraries and tools to present a comprehensive stock price prediction and sentiment analysis tool. Initialization is the first step, after which data preprocessing and library imports are completed. Tensor Flow and Keras are used in the construction of the LSTM model, while the Adam optimizer and mean squared error are used in training. The script reads the actual stock prices, scales it for prediction and then makes out predictions using testing data. Also, it uses Matplotlib to visualize real and predicted stock prices as well as computing R-squared accuracy score. The script also applies Long Short-Term Memory (LSTM) neural networks along with social media sentiment analysis from a designated subreddit in developing a stock price prediction model that appears quite promising with 94.1% accuracy.