(self)
| 38 | return Counter([t.split(".", 2)[1] for t in self.tournaments]) |
| 39 | |
| 40 | def __repr__(self): |
| 41 | return f"""Model: {self.name} |
| 42 | - Steps: {self.steps_total} (Total); {self.steps_per_round:.2f} (Per Round); |
| 43 | - Rounds played: {self.rounds_total} |
| 44 | - Failed cmds: {self.cmd_failure_rate:.2%} ({self.failed_commands}/{self.steps_total}) |
| 45 | - Most common failed command types: {Counter(self.failed_command_types).most_common(5)} |
| 46 | - Tournament count: {self.tournament_count.most_common(5)}""" |
| 47 | |
| 48 | |
| 49 | class TrajectoryAnalyzer: |
nothing calls this directly
no outgoing calls
no test coverage detected