src/orion/algo/tpe.py
def compute_max_ei_point(points, below_likelis, above_likelis):
    """Compute ei among points based on their log likelihood and return the point with max ei.

    :param points: list of point with real values.
    :param below_likelis: list of log likelihood for each point in the good GMM.
    :param above_likelis: list of log likelihood for each point in the bad GMM.
    """
    max_ei = -numpy.inf
    point_index = 0
    for i, (lik_b, lik_a) in enumerate(zip(below_likelis, above_likelis)):
        ei = lik_b - lik_a
        if ei > max_ei:
            max_ei = ei
            point_index = i
    return points[point_index]
Compute ei among points based on their log likelihood and return the point with max ei.

    :param points: list of point with real values.
    :param below_likelis: list of log likelihood for each point in the good GMM.
    :param above_likelis: list of log likelihood for each point in the bad GMM.
    
Compute ei among points based on their log likelihood and return the point with max ei.
Compute ei among points based on their log likelihood and return the point with max ei .
def compute_max_ei_point(points, below_likelis, above_likelis):
    max_ei = -numpy.inf
    point_index = 0
    for i, (lik_b, lik_a) in enumerate(zip(below_likelis, above_likelis)):
        ei = lik_b - lik_a
        if ei > max_ei:
            max_ei = ei
            point_index = i
    return points[point_index]
def compute_max_ei_point ( points , below_likelis , above_likelis ) : max_ei = - numpy . inf point_index = 0 for i , ( lik_b , lik_a ) in enumerate ( zip ( below_likelis , above_likelis ) ) : ei = lik_b - lik_a if ei > max_ei : max_ei = ei point_index = i return points [ point_index ]
Compute ei among points based on their log likelihood and return the point with max ei.
Compute ei among points based on their log likelihood and return the point with max ei .
"""Compute ei among points based on their log likelihood and return the point with max ei.

    :param points: list of point with real values.
    :param below_likelis: list of log likelihood for each point in the good GMM.
    :param above_likelis: list of log likelihood for each point in the bad GMM.
    """
points
list of point with real values.
list of point with real values .
below_likelis
list of log likelihood for each point in the good GMM.
list of log likelihood for each point in the good GMM .
above_likelis
list of log likelihood for each point in the bad GMM.
list of log likelihood for each point in the bad GMM .