December 2019
Intermediate to advanced
368 pages
11h 10m
English
The experiment results reported and saved in textual and graphical representations (SVG files). We start by printing general performance statistics as follows:
print("\nBest ever fitness: %f, genome ID: %d" % (best_ever_goal_fitness, best_id)) print("\nTrial elapsed time: %.3f sec" % (elapsed_time)) print("Random seed:", seed)
The first three lines of the preceding code print the best ever fitness score obtained among all the generations of evolution to the console. After that, we print the experiment's elapsed time and the random seed value used.
If we requested to save or show visualizations, the corresponding functions are invoked:
# Visualize the experiment results show_results = not silent if save_results ...
Read now
Unlock full access