Skip to content

Instantly share code, notes, and snippets.

View syuntoku14's full-sized avatar

Toshinori Kitamura syuntoku14

  • The University of Tokyo
View GitHub Profile
@hysts
hysts / extract_scalars.py
Last active November 6, 2020 13:51
Extract scalars from Tensorboard log
#!/usr/bin/env python
import argparse
import json
import pathlib
from tensorboard.backend.event_processing import event_accumulator
def main():
parser = argparse.ArgumentParser()
@iandanforth
iandanforth / continuous_cartpole.py
Last active March 19, 2024 14:53
Continuous Cartpole for OpenAI Gym
"""
Classic cart-pole system implemented by Rich Sutton et al.
Copied from http://incompleteideas.net/sutton/book/code/pole.c
permalink: https://perma.cc/C9ZM-652R
Continuous version by Ian Danforth
"""
import math
import gym