Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Modern Scala Projects

You're reading from  Modern Scala Projects

Product type Book
Published in Jul 2018
Publisher Packt
ISBN-13 9781788624114
Pages 334 pages
Edition 1st Edition
Languages
Author (1):
Ilango gurusamy Ilango gurusamy
Profile icon Ilango gurusamy
Toc

Stock price binary classification problem


Stock prices have a tendency to go up and down. We want to Spark ML and a Spark time-series library to explore historical stock price data going back a couple years and come up numbers like the average closing price. We also want our stock price prediction model to forecast what the stock price will be over the timeframe of a few days.

This chapter presents an ML methodology to reduce the complexity associated with stock price prediction. We will obtain a smaller set of optimal financial indicators by feature selection and employ a Random Forest algorithm to build a price prediction pipeline.

We must first download the dataset from the ModernScalaProjects_Code folder.

Stock price prediction dataset at a glance

We will use data from two sources:

  • Reddit worldnews
  • Dow Jones Industrial Average (DJIA

The Getting started section that follows has two clear goals:

  • Moving our development environment into a virtual appliance from a previous local Spark shell-centered...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime