Getting started with TensorBoard

Slides:



Advertisements
Similar presentations
CS 330 Programming Languages 10 / 14 / 2008 Instructor: Michael Eckmann.
Advertisements

Midterm Review. The Midterm Everything we have talked about so far Stuff from HW I won’t ask you to do as complicated calculations as the HW Don’t need.
Alice Variables Pepper. Set to Java look Edit / preferences restart.
Slide 1. Slide 2 Administrivia Nate's office hours are Wed, 2-4, in 329 Soda! TA Clint will be handing out a paper survey in class sometime this week.
Low Speed Airfoil Design Joan Puig Project Goals ● Maximize L/D ● Easy to build ● Keep Cm at a value that is not going to make the airplane unstable.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Beginning Fortran Fortran (77) Advanced 29 October 2009 *Black text on white background provided for easy printing.
My Python Programmes NAME:.
Perl Tutorial. Why PERL ??? Practical extraction and report language Similar to shell script but lot easier and more powerful Easy availablity All details.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
How to Solve a Problem in Science sometimes called a "method"
Arrays and Loops. Learning Objectives By the end of this lecture, you should be able to: – Understand what a loop is – Appreciate the need for loops and.
Python Simple file reading Peter Wad Sackett. 2DTU Systems Biology, Technical University of Denmark Simple Pythonic file reading Python has a special.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 10: Files.
Functions. What is a Function?  We have already used a few functions. Can you give some examples?  Some functions take a comma-separated list of arguments.
TENSORFLOW Team 2: Andrey, Daniel, John, Jonas, Ken
Deep Learning Software: TensorFlow
Getting started with TensorBoard
COMPUTATIONAL CONSTRUCTS
Tensorflow Tutorial Homin Yoon.
DeepCount Mark Lenson.
Python 14 Mr. Husch.
Intro to NLP and Deep Learning
CS 224S: TensorFlow Tutorial
Overview of TensorFlow
A VERY Brief Introduction to Convolutional Neural Network using TensorFlow 李 弘
Chapter 16 – Programming your App’s Memory
MATLAB DENC 2533 ECADD LAB 9.
User Defined Functions
Comparison Between Deep Learning Packages
Cookies BIS1523 – Lecture 23.
Here is the graph of a function
To Get Started Paper sheet
Tensorflow in Deep Learning
INF 5860 Machine learning for image classification
Introduction to TensorFlow
Tensorflow in Deep Learning
File Handling Programming Guides.
Introduction to Tensorflow
An open-source software library for Machine Intelligence
MXNet Internals Cyrus M. Vahid, Principal Solutions Architect,
Python Lessons 13 & 14 Mr. Kalmes.
Coding Concepts (Sub- Programs)
Alice Variables Pepper.
Reviewing key concepts
CISC101 Reminders Quiz 1 grading underway Next Quiz, next week.
Chapter 8 Namespaces and Memory Realities
A graphing calculator is required for some problems or parts of problems 2000.
Deep Learning and Mixed Integer Optimization
For this assignment, copy and past the XHTML to a notepad file with the .html extension. Then add the code I ask for to complete the problems.
Debugging Dataflow Graphs using TensorFlow Debugger.
Flowcharts and Pseudo Code
Tensorflow Tutorial Presented By :- Ankur Mali
Using Script Files and Managing Data
CISC101 Reminders Quiz 1 marking underway.
TensorFlow: Biology’s Gateway to Deep Learning?
Introduction to Computer Science
Classes 5/5 May 14, 2019 ICS102: Classes 5/5.
Introduction to TensorFlow
Python Lessons 13 & 14 Mr. Husch.
CISC101 Reminders Assignment 3 due today.
Tips and Tricks for Using Macros to Automate SAS Reporting.
Nate Brunelle Today: Functions again, Scope
Review By Artineer.
Python Simple file reading
Learning Combinational Logic
 A function is a named sequence of statement(s) that performs a computation. It contains  line of code(s) that are executed sequentially from top.
Deep Learning with TensorFlow
Tensorflow in Deep Learning
Machine Learning for Cyber
Presentation transcript:

Getting started with TensorBoard Learn Deep Learning Denver 2017-09-14

Step 1: Tell TensorFlow your var names Step 1 is tell TensorFlow all your Python variable names! For example, instead of a = tf.placeholder(tf.float32) b = tf.placeholder(tf.float32) c = a + b Add names: a = tf.placeholder(tf.float32, name='a') b = tf.placeholder(tf.float32, name='b') c = tf.add(a,b, name='c')

Step 2: Make a log file directory Step 2 is to create a log file directory and point tf.Summary.FileWriter to it, along with your graph, so you can graph it out. You need to create the session first: sess = tf.Session() tf.summary.FileWriter(logdir, sess.graph) Additionally, you need to initialize the FileWriter, for some unknown reason, which you can do with the call to initialize all global variables: sess.run(tf.global_variables_initializer()) Run your program to write the log files for TensorBoard.

Step 3: Run TensorBoard Step 3 is to run TensorBoard with your log file directory, and you should now be able to see a visualization of your computation graph: tensorboard --logdir=...your dir here… TensorBoard should respond with something like: TensorBoard 0.1.6 at http://yourmachine:6006 Put the URL into your favorite browser, and presto!

Step 4: Group your stuff with scopes Step 4 is to group stuff with scopes. The way you do it is with the whacky python “with” keyword: with tf.name_scope(“ScopeName”):

Step 5: Make a scalar graph Step 5 is to make a graph of some scalar value; typically you run many iterations of the graph, such as for training your neural network, and you want to see a graph of some value, such as the cost function, on each iteration. Add summary nodes with tf.summary.scalar, e.g: cost_summary = tf.summary.scalar(cost) You can pass this to add_summary with sess.run(): result = sess.run(cost_summary) summary_writer.add_summary(result, i) # i is iteration variable But, unless you’re graphing only one scalar, this won’t work...

Step 6: Graphing more than one thing Step 6 is to graph more than one thing by making a “merged” node. The way it works is, you create a new summary node that takes all the previous summary nodes as input. Then you ask this node to be calculated by passing it to sess.run(). Fortunately, you don’t have to do any of this merging yourself. All you have to do is call merge_all(): merged = tf.summary.merge_all() result = sess.run(merged) summary_writer.add_summary(result, i) # i is iteration variable

Step 7: Graphing more than one run TensorBoard can graph more than one run. The trick is to point each run to different log directories, then Point TensorBoard at a directory that’s the parent directory of all the subdirectories with all the different runs as the --logdir parameter The different runs will show up in the lower left on TensorBoard