Running the Scala Play web app

To run the application, just follow these steps:

  1. Download the historical Bitcoin data from https://www.kaggle.com/mczielinski/bitcoin-historical-data. Then unzip and extract the .csv file.
  2. Open your preferred IDE (for example, Eclipse/IntelliJ) and create the Maven or SBT project.

 

  1. Run the Preprocess.scala script to convert the historical data into a time series. This script should generate two .csv files (that is, scala_test_x.csv and scala_test_y.csv).
  2. Then train the GradientBoostedTree model (use TrainGBT.scala script) using the previously generated files.
  3. Save the best (i.e. cross-validated) Pipeline model containing all the pipelines' steps.
  4. Then download the Scala Play app and all the files (that is,  ...

Get Scala Machine Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.