Beispiel #1
0
def default_points_by_fidelity(size=10):
    points_by_fidelity = {}

    for fidelity in fidelity_combinations():
        points = []
        for _ in range(size):
            params = SWANParams.new_instance()
            params.fid_time = fidelity[0]
            params.fid_space = fidelity[1]

            points.append(params)

        points_by_fidelity[fidelity] = points

    return points_by_fidelity
Beispiel #2
0
def default_initial_pop(size):
    return [SWANParams.new_instance() for _ in range(size)]