if 'iterations' in totals:
        final_stats['average_iterations'] = (
            totals['iterations'] / validation_count