tests/unittests/algo/test_evolution_es.py
def rung_4():
    """Create duplicated fake points and objectives for rung 4."""
    points = np.linspace(1, 4, 4)
    return dict(
        n_trials=4,
        resources=1,
        results={
            hashlib.md5(str([point]).encode("utf-8")).hexdigest(): (
                point,
                (1, point // 2, point // 2),
            )
            for point in points
        },
    )
Create duplicated fake points and objectives for rung 4.
Create duplicated fake points and objectives for rung 4.
Create duplicated fake points and objectives for rung 4 .
def rung_4():
    points = np.linspace(1, 4, 4)
    return dict(
        n_trials=4,
        resources=1,
        results={
            hashlib.md5(str([point]).encode("utf-8")).hexdigest(): (
                point,
                (1, point // 2, point // 2),
            )
            for point in points
        },
    )
def rung_4 ( ) : points = np . linspace ( 1 , 4 , 4 ) return dict ( n_trials = 4 , resources = 1 , results = { hashlib . md5 ( str ( [ point ] ) . encode ( "utf-8" ) ) . hexdigest ( ) : ( point , ( 1 , point // 2 , point // 2 ) , ) for point in points } , )
Create duplicated fake points and objectives for rung 4.
Create duplicated fake points and objectives for rung 4 .
"""Create duplicated fake points and objectives for rung 4."""