From 0bba011e51d4dde83ec03ac75fd9520a7a1b54fc Mon Sep 17 00:00:00 2001 From: Interpret ML Date: Mon, 23 Sep 2019 23:26:26 -0700 Subject: [PATCH] Fixed inline render call with extra args. Removed most console logs for inline. --- python/interpret-core/interpret/provider/visualize.py | 2 +- python/interpret-core/interpret/visual/inline.py | 1 - python/interpret-core/js/src/index.js | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/python/interpret-core/interpret/provider/visualize.py b/python/interpret-core/interpret/provider/visualize.py index 2e34cf836..a1486537d 100644 --- a/python/interpret-core/interpret/provider/visualize.py +++ b/python/interpret-core/interpret/provider/visualize.py @@ -174,4 +174,4 @@ def __init__(self, detected_envs=None): def render(self, explanation, key=-1, **kwargs): from ..visual.inline import render - render(explanation, default_key=key, detected_envs=self.detected_envs, **kwargs) + render(explanation, default_key=key, detected_envs=self.detected_envs) diff --git a/python/interpret-core/interpret/visual/inline.py b/python/interpret-core/interpret/visual/inline.py index 05c6ac451..307401b2a 100644 --- a/python/interpret-core/interpret/visual/inline.py +++ b/python/interpret-core/interpret/visual/inline.py @@ -150,7 +150,6 @@ def _build_javascript(viz_obj, id_str=None, default_key=-1): callback(root['interpret-inline']); }} }})(this, function(interpretInline) {{ - console.log(interpretInline); interpretInline.RenderApp("{0}", {1}, {2}); }}); diff --git a/python/interpret-core/js/src/index.js b/python/interpret-core/js/src/index.js index e1d40823d..332245350 100644 --- a/python/interpret-core/js/src/index.js +++ b/python/interpret-core/js/src/index.js @@ -48,7 +48,7 @@ const App = props => { return options; }; - console.log("Building options"); + // console.log("Building options"); const options = buildOptions(props.explanations.selector); const select = (