def forget_all(self): ''' Forgets all facts in knowledge and the present policy ''' self.knowledge = [] self.policy = Policy() self.log("forgot all")
def __init__(self): ''' Intellect initializer. ''' # initialize list to hold learned objects self.knowledge = [] # initialize the hold the combined sum of the policy files # as a single policy. self.policy = Policy()