File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ def get_moo_stats(individuals, end):
240
240
stdout .flush ()
241
241
242
242
# Generate test fitness on regression problems
243
- if hasattr ( params ['FITNESS_FUNCTION' ], "training_test" ) and end :
243
+ if params ["DATASET_TEST" ] and end :
244
244
245
245
for ind in trackers .best_ever :
246
246
# Iterate over all individuals in the first front.
@@ -249,7 +249,10 @@ def get_moo_stats(individuals, end):
249
249
ind .training_fitness = copy (ind .fitness )
250
250
251
251
# Evaluate test fitness.
252
- ind .test_fitness = params ['FITNESS_FUNCTION' ](ind , dist = 'test' )
252
+ ind .test_fitness = [
253
+ func (ind , dist = "test" )
254
+ for func in params ["FITNESS_FUNCTION" ].fitness_functions
255
+ ]
253
256
254
257
# Set main fitness as training fitness.
255
258
ind .fitness = ind .training_fitness
You can’t perform that action at this time.
0 commit comments