{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/probability/issues/356","repository_url":"https://api.github.com/repos/tensorflow/probability","labels_url":"https://api.github.com/repos/tensorflow/probability/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/probability/issues/356/comments","events_url":"https://api.github.com/repos/tensorflow/probability/issues/356/events","html_url":"https://github.com/tensorflow/probability/issues/356","id":430555411,"node_id":"MDU6SXNzdWU0MzA1NTU0MTE=","number":356,"title":"TensorBoard in TFP and TF v2","user":{"login":"janosh","id":30958850,"node_id":"MDQ6VXNlcjMwOTU4ODUw","avatar_url":"https://avatars0.githubusercontent.com/u/30958850?v=4","gravatar_id":"","url":"https://api.github.com/users/janosh","html_url":"https://github.com/janosh","followers_url":"https://api.github.com/users/janosh/followers","following_url":"https://api.github.com/users/janosh/following{/other_user}","gists_url":"https://api.github.com/users/janosh/gists{/gist_id}","starred_url":"https://api.github.com/users/janosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janosh/subscriptions","organizations_url":"https://api.github.com/users/janosh/orgs","repos_url":"https://api.github.com/users/janosh/repos","events_url":"https://api.github.com/users/janosh/events{/privacy}","received_events_url":"https://api.github.com/users/janosh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2019-04-08T16:53:21Z","updated_at":"2019-04-12T15:12:42Z","closed_at":null,"author_association":"NONE","body":"There don't appear to be any docs on how to use TensorBoard with TensorFlow Probability. I'm specifically interested in a guide for the 2.0 release. Is this planned or am I missing something?"},"comment":{"url":"https://api.github.com/repos/tensorflow/probability/issues/comments/482611734","html_url":"https://github.com/tensorflow/probability/issues/356#issuecomment-482611734","issue_url":"https://api.github.com/repos/tensorflow/probability/issues/356","id":482611734,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MjYxMTczNA==","user":{"login":"brianwa84","id":22173987,"node_id":"MDQ6VXNlcjIyMTczOTg3","avatar_url":"https://avatars0.githubusercontent.com/u/22173987?v=4","gravatar_id":"","url":"https://api.github.com/users/brianwa84","html_url":"https://github.com/brianwa84","followers_url":"https://api.github.com/users/brianwa84/followers","following_url":"https://api.github.com/users/brianwa84/following{/other_user}","gists_url":"https://api.github.com/users/brianwa84/gists{/gist_id}","starred_url":"https://api.github.com/users/brianwa84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianwa84/subscriptions","organizations_url":"https://api.github.com/users/brianwa84/orgs","repos_url":"https://api.github.com/users/brianwa84/repos","events_url":"https://api.github.com/users/brianwa84/events{/privacy}","received_events_url":"https://api.github.com/users/brianwa84/received_events","type":"User","site_admin":false},"created_at":"2019-04-12T15:12:42Z","updated_at":"2019-04-12T15:12:42Z","author_association":"COLLABORATOR","body":"Something like that:\r\n```python\r\nstate, kernel_results = tfp.mcmc.sample_chain(\r\n    kernel=adaptive_kernel,\r\n    current_state=current_state,\r\n    num_results=num_results,\r\n    num_steps_between_results=num_steps_between_results,\r\n    trace_fn=partial(trace_fn, summary_freq=5),\r\n)\r\nchain1, (_, kernel_results1) = state, kernel_results\r\n\r\n# Some mid-execution diagnostics\r\nstate, kernel_results = tfp.mcmc.sample_chain(\r\n    kernel=adaptive_kernel,\r\n    current_state=states[-1],  # or tf.[compat.v2.]nest.map_structure(lambda x:x[-1], states)\r\n    previous_kernel_results=kernel_results,   # This line is new.\r\n    num_results=num_results,\r\n    num_steps_between_results=num_steps_between_results,\r\n    trace_fn=partial(trace_fn, summary_freq=5),\r\n)\r\nchain2, (_, kernel_results2) = state, kernel_results\r\n\r\nchain = tf.concat((chain1, chain2), 0)\r\n```"}}
{"actor":{"display_login":"brianwa84"}}