ml#forager"><code>Forager</code></a> as it currently is inherits the methods of a PS agent for decision making and learning. However, other learning algorithms can be directly implemented by changing this inheritance. The learning algorithm should contain a method for decision making, called <code>deliberate</code>, which inputs a state; and another one for updating the policy, called <code>learn</code>, which inputs a reward.</p>
<p>We set up the parameters defining the length of the episodes (number of RL