<jupyter_start><jupyter_text>Colab script for cartpole-tf repository<jupyter_code>!pip install gitpython > /dev/null 2>&1
import git
import sys
import os
import shutil
import tensorflow as tf
use_branch = 'master'
github_url = 'https://github.com/ultronify/cartpole-tf-dqn.git'
repo_dir = os.path.join('./resource', 'repository')
if os.path.exists(repo_dir):
  shutil.rmtree(repo_dir)
repo = git.Repo.clone_from(github_url, repo_dir, branch=use_branch)
if repo_dir not in sys.path:
  sys.path.insert(0, repo_dir)
from train import train_model
train_model(
  verbose='progress',
  visualizer_type='none',
)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12125984251968504, 'fraction_numerical': 0.004724409448818898, 'mean_word_length': 6.395348837209302, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '251966', 'license': 'MIT', 'n_tokens_mistral': 237, 'n_tokens_neox': 229, 'n_words': 50, 'path': 'colab_script.ipynb', 'repo_name': 'ultronify/cartpole-tf', 'size': '635'}