Closed davideasaf closed 5 years ago
FYI this code is still incorrect (as of July 2024). The evaluation function should be defined as follows:
_n = len(state)
_t = np.ceil(self.t_pct * _n)
# Calculate head and tail values
head_0 = self.head(0, state)
tail_0 = self.tail(0, state)
head_1 = self.head(1, state)
tail_1 = self.tail(1, state)
# Calculate max(tail(0, x), head(1, x))
_max_score = max(tail_0, head_1)
# Calculate R(x, T)
_r = _n if tail_0 > _t and head_1 > _t or tail_1 > _t and head_0 > _t else 0
# Evaluate function
return _max_score + _r
Addressing Issue #41
The resulting graph is now: