O'Reilly logo

Java Deep Learning Projects by Md. Rezaul Karim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Neural networks as a Q-function

Now we know the state and the action to perform. However, the QLearning agent needs to know the search space of the form (states x actions). The next step consists of creating the graph or search space, which is the container responsible for any sequence of states. The QLSpace class defines the search space (states x actions) for the QLearning algorithm, as shown in the following diagram:

State transition matrix with QLData (Q-value, reward, probability)

The end user with a list of states and actions can provide the search space. Alternatively, it is automatically created by providing the number of states, by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required