Write a method initFeatures in Org which initializes the features array and assigns random values to each feature. Write a method describeFeatures in Org which prints out what the Org's feature values are, and call this method in the method describe . To test this method, you will need to call it in main in the OrgWorld class after initOrgs is called. Implementing Reinforcement Learning in Smarts Download the reinforcement learning version of the Smarts program . They will only behave properly once you have written the three methods described below.
Reinforcement learning is implemented as follows.
HARD, or Cell. Then respond calls selectAction with this state as its argument. As in other universes, selectAction picks a random action with some probability, and otherwise calls selectBestAction . This method, which you also write, adjusts the Q value for the last state and action, using the current reinforcement saved in RLBrain. The last state and action are stored in member variables in RLMemory.