Return trial counts that count_by_state_synced would return if we called refresh() first.
(self, arg)
| 519 | return rval |
| 520 | |
| 521 | def count_by_state_unsynced(self, arg): |
| 522 | """ |
| 523 | Return trial counts that count_by_state_synced would return if we |
| 524 | called refresh() first. |
| 525 | """ |
| 526 | if self._exp_key is not None: |
| 527 | exp_trials = [ |
| 528 | tt for tt in self._dynamic_trials if tt["exp_key"] == self._exp_key |
| 529 | ] |
| 530 | else: |
| 531 | exp_trials = self._dynamic_trials |
| 532 | return self.count_by_state_synced(arg, trials=exp_trials) |
| 533 | |
| 534 | def losses(self, bandit=None): |
| 535 | if bandit is None: |