Hi eveyone, Glad to tell that I was lucky enough to be accepted second time as gsoc student for the same org :). And this time I would be working to come up with a
Visualization tool for mlpack. This time my mentors would be
Ryan Birmingham know by github handle as
@brim and Toshal Agarwal known by github handle as
During the community Bonding period we had several meetings to discuss about the high level desgin for the tool and we cam up with the following :
The initial proposal is intended for enabling users to visualize Mlpack data using the TensorFlow's TensorBoard. The plan of this summer is to develop a logging tool for users to log data in the format that the TensorBoard can render in browsers. Thereby leavraging the power of tensorbaord's frontend and just focusing on the logging part. The typical workflow is as follows :
Asynchronized logger : The logger would be implemented asynchronously so that training of model or any other operation doesn't get effected.
High Level Design :
We plan to add most of the data types that are aldeardy supported in tensorboard :
Summary : This class would be responsible to hold the data such as scaler summary or image summary and convert it to event and then push it the queue through the filewrite class.
FileWriter : This class is reponsible for writing events into the file through the logger thread.
SharebaleQueue : This class is responsible to maintain a queue which could be thread safe and shared among the main thread (summary class) and logger thread (filewrite class)
The way whole workflow works is
- The user creates a
FileWriterobject instance by providing the constructor with a path representing the location where data is going to be logged. For example:
fw = FileWriter(logdir="./logs")
- Then a user can call the corresponding
summaryAPI to push the data to be logged into the event queue. For example, `summary.add_scaler('test',1,13, fw)
. The arguments could be any depending upon the type of scaler along with the filewrite object. This filewriter internally pushes the event into shared queue.
ParallelywriteEvent()` which is a logger thread access the shared queue and pops out element and then logs it into event file
Acknowledgements and References :
Special thanks to
@RustingSword, author of
RustingSword/tensorboard_logger, who provided insightful ideas and hours of discussion to help me understand the backened thoroghly. Also some of the refrences are taken from the following repos. We would like to thank them for their good work :)
All of the above repos helped us to come up with design and also made it possible to understand how to log exactly independent of TensorFlow. And also gave us enough insights about the internal of tensorboard and tensorflow logging class.
Generated by 1.8.13