[tune] tf.summary.FileWriter extensibility for custom TensorBoard metrics
See original GitHub issueSystem information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
- Ray installed from (source or binary): source
- Ray version: 0.6.6
- Python version: 3.6.7
- Exact command to reproduce: NA
Context: I rely on tune
and tensorboard
for visualizing training while using callbacks to define custom metrics in the dictionary results then passed to TFLogger.
Problem: ray saves scalars only, and all of them are saved under the same tab ‘ray’ in tensorboard. Having tens of metrics under the same tab does not help readability, in particular if the end user is adding custom metrics. It would be a great feature to let users access TFLogger._file_writer so that they can add custom metrics (not just scalars) in custom tabs. Note that creating a second tf.summary.FileWriter
is not an option as two FileWriter
sharing the same logdir are not supported at this time. Question: what’s the recommended way to achieve that?
Attempts: using a custom Logger
instance is not an option as the trainer is never passed to (only results) and this limits the access to possible custom metrics of interest. Using the callback on_train_result
does pass the ‘trainer’ (info[‘trainer’]) but from there I don’t see how it possible to access TFLogger._file_writer
to save custom metrics in tensorboard.
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (15 by maintainers)
Top GitHub Comments
I’m happy to give it a try when you give me the ok.
Has this been implemented already? If so, what changes are required to see the graph in tensorboard?