-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Databricks Render multiple visualizations #88
Comments
As a followup, is there any function for extracting FeatureValueExplanation directly to dataframes? This would partially solve my issue in Databricks |
Hi @jakedubb, Thanks for reporting this! We are actively looking into this, and will report back once we have some better answers. To answer your follow up question: You won't be able to extract things directly to dataframes, but you can call .data() on any Explanation to extract the underlying data. The Alternatively, you can also directly call explanation.visualize(key=0) to directly produce a graph. Hopefully the Thanks, |
The below error received when executed following code in Azure Databricks. from interpret.blackbox import LimeTabular lime = LimeTabular(predict_fn=blackbox_model.predict_proba, data=X_train, random_state=1) ============================================= |
Was this ever resolved? I am still getting that same Uncaught TypeError: Cannot read property 'RenderApp' of undefined when I try to have multiple visualization in the same databricks notebook. The visualize workaround is hard to use since I have a lot of different variables to visualize. |
@akshararama - I am able to render multiple ExplanationDashboard widgets in the same notebook. DB cluster version - 7.0 ML azureml-sdk[explain,interpret,databricks]
|
I am having the same issues, still getting the error: Uncaught TypeError: Cannot read property 'RenderApp' of undefined I tried to install the same library as shown above and same runtime 7.0 ML. only difference is that I am using AWS not Azure. but I am still only able to render 1 visualization at once by use visualize(key=n). Sometime I will get different error: Error: RangeError: Maximum call stack size exceeded Can you take a look? Much appreciated! |
We've made some improvements in our Databricks support, which should hopefully resolve these issues. We'll leave this issue open for now in case anyone still has problems. -InterpretML |
I am having the same issue trying to render html with displayHTML function in databricks |
I am also running into this same issue with multiple visualizations in Databricks with the most recent interpretml version. |
Hello, has anyone been able to solve the initial issue, of only one show() visualization being rendered in databricks? I have done a good amount of troubleshooting and cannot solve the issue. I have tried many versions of interpret and other packages. Thanks |
Hello! Thanks @paulbkoch and @interpret-ml for opening this ticket back up! I just solved my issue though. For some reason 'InlineProvider' did not know the environment. We just switched to the newer Databricks Architecture (E2) and maybe our security settings messed it up. I have had to specify our environment as 'databricks' for some other packages since switching to E2, so I don't think it was an Interpret issue. Error Message after using the show() function once and trying to use show() again. Hope the following helps if anyone else runs into the same problem. Create an instance of the 'InlineProvider', change the instance's method 'detected_envs' to 'databricks' and then 'set_visualize_provider' with that instance. See below! from interpret import set_visualize_provider |
Thanks @djoconnell34 for the update. I'll leave the issue in our backlog to fix the auto-detection. Good to hear it works with the right settings though. |
@paulbkoch - I work at Databricks on the notebook frontend, and this error came on our radar. Please let us know if you have any questions about getting interpret to work in Databricks. |
When rendering visualizations using show() in databricks I am only able to render 1 visualization at a time. All subsequent attempts display this error:
Uncaught TypeError: Cannot read property 'RenderApp' of undefined
Can we worked around by restarting python using following command:
dbutils.library.restartPython()
and rerunning notebook with a different visualization. But essentially after the first visualization renders all others fail.
The text was updated successfully, but these errors were encountered: