Skip to content

logs1:Use easy tf log

Higepon Taro Minowa edited this page Apr 14, 2018 · 1 revision

Use easy-tf-log 2018/4/14

  • mrahtz/easy-tf-log introduced in Lessons Learned Reproducing a Deep Reinforcement Learning Paper.
  • Log 1: what specific output am I working on right now?
    • Hopefully replace complex log of val_loss, loss and reward by this.
  • Log 2: thinking out loud - e.g. hypotheses about the current problem, what to work on next
    • install
    • import
    • log
    • upload to drive
    • see it in tensorboard
    • commit
  • Log 3: record of currently ongoing runs along with a short reminder of what question each run is supposed to answer
    • N/A
  • Log 4: results of runs (TensorBoard graphs, any other significant observations), separated by type of run (e.g. by environment the agent is being trained in)

Install

pip install git+https://github.com/mrahtz/easy-tf-log#egg=easy-tf-log[tf_gpu]

When Import, see this error

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
<ipython-input-3-87a60aa5407f> in <module>()
     23 import shutil
     24 from pathlib import Path
---> 25 from easy_tf_log import tflog
     26 
     27 

Seeing easy-tf-log/easy_tf_log.py at master · mrahtz/easy-tf-log, and realize specifying gpu maybe bad idea. Above didn't work. I think here ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory · Issue #17629 · tensorflow/tensorflow is solution.

!apt-get install cuda-9.0

Failed with tons-of dependencies and error.

After colab VM was destroyed the following worked. Don't use gpu option, that breaks your VM.

!pip install git+https://github.com/mrahtz/easy-tf-log#egg=easy-tf-log[tf]
from easy_tf_log import tflog

tflog(key, value), value is supposed to float. But not tensor or operator.

  • log written, but can't download it.
  • Need to write utility to upload logs with probably zip?
  • from google.colab import files files.download('hoge.txt') doesn't work on Safari, but chrome.
  • log worked.
Clone this wiki locally