From d84a0eb0dcd758d45e0b3f1bec97aab4298c6b7f Mon Sep 17 00:00:00 2001 From: James Wexler Date: Mon, 19 Mar 2018 19:38:11 +0100 Subject: [PATCH 1/9] Add flags to TBContext --- tensorboard/plugins/base_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tensorboard/plugins/base_plugin.py b/tensorboard/plugins/base_plugin.py index 2792a5a337..2e16bc7cd5 100644 --- a/tensorboard/plugins/base_plugin.py +++ b/tensorboard/plugins/base_plugin.py @@ -87,6 +87,7 @@ def __init__( db_connection_provider=None, db_module=None, db_uri=None, + flags=None, logdir=None, multiplexer=None, plugin_name_to_instance=None, @@ -115,6 +116,8 @@ def __init__( not in SQL mode and multiplexer should be used instead. db_uri: The string db URI TensorBoard was started with. If this is set, the logdir should be None. + flags: A dict of the runtime flags provided to TensorBoard to their + values. logdir: The string logging directory TensorBoard was started with. If this is set, the db_uri should be None. multiplexer: An EventMultiplexer with underlying TB data. Plugins should @@ -131,6 +134,7 @@ def __init__( self.db_connection_provider = db_connection_provider self.db_module = db_module self.db_uri = db_uri + self.flags = flags self.logdir = logdir self.multiplexer = multiplexer self.plugin_name_to_instance = plugin_name_to_instance From ab0e9cfa87eb52d096b9c605f6d48b4c4d3c9bd4 Mon Sep 17 00:00:00 2001 From: James Wexler Date: Mon, 19 Mar 2018 19:41:30 +0100 Subject: [PATCH 2/9] Add flags to TBContext in application --- tensorboard/backend/application.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tensorboard/backend/application.py b/tensorboard/backend/application.py index fa470a2b5c..ef8ddd1fdc 100644 --- a/tensorboard/backend/application.py +++ b/tensorboard/backend/application.py @@ -79,7 +79,8 @@ def standard_tensorboard_wsgi( db_uri="", assets_zip_provider=None, path_prefix="", - window_title=""): + window_title="", + flags=None): """Construct a TensorBoardWSGIApp with standard plugins and multiplexer. Args: @@ -96,7 +97,7 @@ def standard_tensorboard_wsgi( the `tensorboard.default` module to use the default. This behavior might be removed in the future. window_title: A string specifying the the window title. - + flags: A dict of the runtime flags provided to the application, or None. Returns: The new TensorBoard WSGI application. """ @@ -116,6 +117,7 @@ def standard_tensorboard_wsgi( db_module=db_module, db_connection_provider=db_connection_provider, db_uri=db_uri, + flags=flags, logdir=logdir, multiplexer=multiplexer, assets_zip_provider=assets_zip_provider, From e72cbcf37adca9a3e30e5cf4af20010187bf1939 Mon Sep 17 00:00:00 2001 From: James Wexler Date: Mon, 19 Mar 2018 19:54:43 +0100 Subject: [PATCH 3/9] Add flags to tbcontext --- tensorboard/program.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensorboard/program.py b/tensorboard/program.py index aade1e3114..3acedcc193 100644 --- a/tensorboard/program.py +++ b/tensorboard/program.py @@ -197,7 +197,8 @@ def create_tb_app(plugins, assets_zip_provider=None): reload_interval=FLAGS.reload_interval, plugins=plugins, path_prefix=FLAGS.path_prefix, - window_title=FLAGS.window_title) + window_title=FLAGS.window_title, + flags=FLAGS) def make_simple_server(tb_app, host=None, port=None, path_prefix=None): From 3803ab7c3c16455bd114c49ae78ae142c9160a3a Mon Sep 17 00:00:00 2001 From: James Wexler Date: Wed, 11 Apr 2018 11:42:46 -0400 Subject: [PATCH 4/9] gitignore changes --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 70436598bc..a11f9dc0e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ /bazel-* /.idea *.pyc -*.egg-info/ \ No newline at end of file +*.egg-info/ +.vscode/ +tensorboard/tf From 1ed76e466eabf7d0bceb835d2bf5bb917abe5776 Mon Sep 17 00:00:00 2001 From: James Wexler Date: Wed, 30 Jan 2019 10:47:12 -0500 Subject: [PATCH 5/9] hide images, fix bug --- .../tf-interactive-inference-dashboard.html | 28 +++++++++++++++---- .../witwidget/notebook/colab/wit.py | 2 +- .../witwidget/notebook/jupyter/js/lib/wit.js | 1 + .../witwidget/version.py | 2 +- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/tensorboard/plugins/interactive_inference/tf_interactive_inference_dashboard/tf-interactive-inference-dashboard.html b/tensorboard/plugins/interactive_inference/tf_interactive_inference_dashboard/tf-interactive-inference-dashboard.html index 3f1c5384a7..0524f0bc73 100644 --- a/tensorboard/plugins/interactive_inference/tf_interactive_inference_dashboard/tf-interactive-inference-dashboard.html +++ b/tensorboard/plugins/interactive_inference/tf_interactive_inference_dashboard/tf-interactive-inference-dashboard.html @@ -1099,28 +1099,36 @@

Create a distance feature

all the features and values associated with that example. Some of the things you can do in the datapoint editor are:
- +
Test inference on edited values
Edit features and run inference to see how your model performs
- +
Compute distances from a selected datapoint
Have the selected example be an anchor and create a new distance feature for all loaded examples
- +
Find closest counterfactuals
See the closest example with a different classification
- +
Partial Dependence Plots
Explore plots for every feature that show the change in inference results across different valid values for that feature
@@ -1314,7 +1322,7 @@

Create a distance feature