Skip to content
Snippets Groups Projects
Commit c01a74c8 authored by Nicola Gatto's avatar Nicola Gatto
Browse files

Always return zero if sample games is zero

parent 7a8c3ae8
Branches
No related tags found
1 merge request!17Shared code, updated for CNNArchLang, etc.
......@@ -177,6 +177,9 @@ class Agent(object):
return states, actions, rewards, next_states, terminals
def evaluate(self, target=None, sample_games=100, verbose=True):
if sample_games <= 0:
return 0
target = self._target_score if target is None else target
if target:
target_achieved = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment