The frontend

The app consists of two main parts: the API endpoint, built with the play framework, and the frontend single-page application, built with Angular.js. The frontend app sends the data to the API to get computed and then shows the results using chart.js. Here are the steps that we need for this:

  • Initialize the form
  • Communicate with the API
  • Populate the view with coverage data and charts

The algorithm's JSON output should be as follows:

  • All the config parameters are returned
  • GOAL_STATE_INDEX, the maximum Profit Index
  • COVERAGE, the ratio of training trials or epochs that reach a predefined goal state
  • COVERAGE_STATES, the size of the quantized option values
  • COVERAGE_TRANSITIONS, the number of states squared
  • Q_VALUE, the q-value ...

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.