def serialize_result(self, result: Dict):
    '\n        Converts experiments results to\n        https://app.sigopt.com/docs/objects/metric_evaluation\n        '
    missing_scores = [metric for metric in self._metric if (metric not in result)]
    if missing_scores:
        raise ValueError(f'Some metrics specified during initialization are missing. Missing metrics: {missing_scores}, provided result {result}')
    values = []
    for metric in self._metric:
        value = dict(name=metric, value=result[metric])
        values.append(value)
    return values
Converts experiments results to
https://app.sigopt.com/docs/objects/metric_evaluation
def serialize_result(self, result: Dict):
    '\n        Converts experiments results to\n        https://app.sigopt.com/docs/objects/metric_evaluation\n        '
    missing_scores = [metric for metric in self._metric if (metric not in result)]
    if missing_scores:
        raise ValueError(f'Some metrics specified during initialization are missing. Missing metrics: {missing_scores}, provided result {result}')
    values = []
    for metric in self._metric:
        value = dict(name=metric, value=result[metric])
        values.append(value)
    return values