<jupyter_start><jupyter_text>Visualizing a TrainingRunFirst simply create a TrainingRun object from the folder containing the training data you want to visualize.<jupyter_code>training_run = index_training_folder("path-to-folder")<jupyter_output><empty_output><jupyter_text>Then specify the generation or use `-1` to get the latest generation with a model file.<jupyter_code>video_file = training_run.visualize(env_seed=None, generation=-1, force=False)<jupyter_output><empty_output><jupyter_text>After the video is recorded (this can take some time in PyBullet) visualize it by creating a Video object and display it.If it cannot be displayed run the recording cell again with `force=True`. Sometimes the OpenAI Gym does not render it properly.<jupyter_code>video = Video.from_file(video_file)
display(video)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07389749702026222, 'fraction_numerical': 0.0023837902264600714, 'mean_word_length': 7.842105263157895, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '273245', 'license': 'MIT', 'n_tokens_mistral': 246, 'n_tokens_neox': 240, 'n_words': 82, 'path': 'evolution-strategies-visualize-simplified.ipynb', 'repo_name': 'spikingevolution/evolution-strategies', 'size': '839'}