@property
    def best_trial(self):
        candidates = [t for t in self.trials
                      if t['result']['status'] == STATUS_OK]
        losses = [float(t['result']['loss']) for t in candidates]
        assert not np.any(np.isnan(losses))
        best = np.argmin(losses)
        return candidates[best]
Trial with lowest loss and status=STATUS_OK
dataset/ETHPy150Open hyperopt/hyperopt/hyperopt/base.py/Trials.best_trial