Current Progress: After final design presentation
This commit is contained in:
20
configs/aggregations.py
Normal file
20
configs/aggregations.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from neat.genome.aggregations import *
|
||||
|
||||
AGG_TOTAL_LIST = [sum_agg, product_agg, max_agg, min_agg, maxabs_agg, median_agg, mean_agg]
|
||||
|
||||
agg_name2key = {
|
||||
'sum': 0,
|
||||
'product': 1,
|
||||
'max': 2,
|
||||
'min': 3,
|
||||
'maxabs': 4,
|
||||
'median': 5,
|
||||
'mean': 6,
|
||||
}
|
||||
|
||||
|
||||
def refactor_agg(config):
|
||||
config['aggregation_default'] = agg_name2key[config['aggregation_default']]
|
||||
config['aggregation_options'] = [
|
||||
agg_name2key[act_name] for act_name in config['aggregation_options']
|
||||
]
|
||||
Reference in New Issue
Block a user