예제 #1
0
def is_valid(parameters):
    return True # yolo
    domains = species.domains()
    covered = set()
    for param in parameters:
        covered.add(param)
        value = parameters[param]
        if value not in domains[param]:
            return False
    return covered == set(domains.keys())
예제 #2
0
def random_individual_parameters():
    parameters = {}
    domains = species.domains()
    for param in domains:
        parameters[param] = random.choice(domains[param])
    return parameters