

def _get_data(self, history, searchspace):
    X = []
    Y = []
    V = []
    ignore = []
    for (param_dict, scores, status) in history:
        if (status == 'FAILED'):
            continue
        point = searchspace.point_to_gp(param_dict)
        if (status == 'SUCCEEDED'):
            X.append(point)
            Y.append(np.mean(scores))
            V.append(np.var(scores))
        elif (status == 'PENDING'):
            ignore.append(point)
        else:
            raise RuntimeError(('unrecognized status: %s' % status))
    return (np.array(X).reshape((- 1), self.n_dims), np.array(Y).reshape((- 1), 1), np.array(V).reshape((- 1), 1), np.array(ignore).reshape((- 1), self.n_dims))

dataset/ETHPy150Open msmbuilder/osprey/osprey/strategies.py GP._get_data/original