tests/unittests/algo/test_evolution_es.py
def rung_2(rung_1):
    """Create fake points and objectives for rung 2."""
    values = map(
        lambda v: (v[0], (9, v[0])), list(sorted(rung_1["results"].values()))[:1]
    )
    return dict(
        n_trials=1,
        resources=9,
        results={
            hashlib.md5(str([value[0]]).encode("utf-8")).hexdigest(): value
            for value in values
        },
    )
Create fake points and objectives for rung 2.
Create fake points and objectives for rung 2.
Create fake points and objectives for rung 2 .
def rung_2(rung_1):
    values = map(
        lambda v: (v[0], (9, v[0])), list(sorted(rung_1["results"].values()))[:1]
    )
    return dict(
        n_trials=1,
        resources=9,
        results={
            hashlib.md5(str([value[0]]).encode("utf-8")).hexdigest(): value
            for value in values
        },
    )
def rung_2 ( rung_1 ) : values = map ( lambda v : ( v [ 0 ] , ( 9 , v [ 0 ] ) ) , list ( sorted ( rung_1 [ "results" ] . values ( ) ) ) [ : 1 ] ) return dict ( n_trials = 1 , resources = 9 , results = { hashlib . md5 ( str ( [ value [ 0 ] ] ) . encode ( "utf-8" ) ) . hexdigest ( ) : value for value in values } , )
Create fake points and objectives for rung 2.
Create fake points and objectives for rung 2 .
"""Create fake points and objectives for rung 2."""
rung_1