January 2018
Intermediate to advanced
470 pages
11h 9m
English
The QLAction class specifies the transition from one state to another state. It takes two parameters—that is, from and to. Both of them have their own integer identifiers that need to be greater than 0:
The signature is given as follows:
case class QLAction(from: Int, to: Int) { require(from >= 0, s"QLAction found from: $from required: >=0")require(to >= 0, s"QLAction found to: $to required: >=0")override def toString: String = s"n Action: state $from => state $to"}
The QLState class defines the state in the Q-learning. It takes three parameters:
Read now
Unlock full access