Source code for pyrltr.agents.Teacher

import numpy as np


[docs]class Teacher(): def __init__(self, world): # zeta = 1 may take too long to explore a "good" action self.world = world
[docs] def isBetter(self, oldState, newState): oldQuality = self.world.getStateQuality(oldState) newQuality = self.world.getStateQuality(newState) return newQuality >= oldQuality