You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm currently trying to code algorithms provided in AIMA, but I don't
understand why the Agent class isn't used in chapter 3 and 4, where agent
programs are implemented as functions outside classes, and not as Agent's
methods.
For instance, instead of "def SimpleReflexAgentProgram(rules,
interpret_input):", why not
class SimpleReflexAgent(Agent):
def __init__(self, rules):
...
def simple_reflex_agent_program(percept):
...
Agent.__init__(self, simple_reflex_agent_program)
I guess there's a good reason for that, because previous versions of the code
were actually doing that. Could someone please explain to me ?
Original issue reported on code.google.com by [email protected] on 19 Jul 2012 at 12:23
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 19 Jul 2012 at 12:23The text was updated successfully, but these errors were encountered: