Coder Social home page Coder Social logo

Comments (7)

GISH123 avatar GISH123 commented on June 1, 2024

Add a picture for more helpful messages:

image

from interpret-community.

imatiach-msft avatar imatiach-msft commented on June 1, 2024

@GISH123 the posting is only for what if analysis and ICE plots. It seems that starting the flask server is giving you trouble in the second screenshot:

https://github.com/interpretml/interpret-community/blob/master/python/interpret_community/widget/explanation_dashboard.py#L174

This only happens when with_credentials=True, but I'm not sure you need this set - this is only if cookies are needed for your requests to the VM.

In the first screenshot you don't have this parameter set, but I'm not sure why it is failing. There should be a different error message somewhere. Without a repro and access to the environment it is really difficult to debug these types of issues.

Without with_credentials parameter set, the widget should still show, and WSGIServer would just run on localhost. So I'm not sure what is happening in the first screenshot.

If you like, we can try to have a call and debug together. In particular, I'm interested why in the first case the code is getting stuck, and where it is getting stuck. Cloning the repository and adding a bunch of print debug statements everywhere in the explanation_dashboard.py should reveal at what line the widget is getting stuck.

from interpret-community.

GISH123 avatar GISH123 commented on June 1, 2024

It seems like my global_explanation was not functioning properly, it was producing no outputs, and now currently it is producing a tqdm with shap outputs.
(I pip installed interpret-community and cloned repo on my home directory, now i deleted the cloned repo and running the codes it functioned properly, not sure the cause though)

Now the explanationdashboard is happening, but it seems like i need extra certification from my server. I'm trying to figuring it out on my own, and if I need help i will ask again.
Thank you for your help!

from interpret-community.

GISH123 avatar GISH123 commented on June 1, 2024

By the way,if I do something like this:

global_explanation = explainer.explain_global(x_train[:100])
then
ExplanationDashboard(global_explanation, model, datasetX=x_test[:50])

would it be reasonable to use different data volume?

from interpret-community.

GISH123 avatar GISH123 commented on June 1, 2024

Now the dashboard becomes something like this:
image

It says I have to use an account to get access to the website.
Well I just want to print the dashboard on the jupyter cell.

from interpret-community.

imatiach-msft avatar imatiach-msft commented on June 1, 2024

@GISH123 interesting, I've never seen this before! It seems the javascript can't be served to the jupyter notebook. There seems to be some middleware on your VM causing this error to appear. I'm not quite sure how to fix it though 😕

from interpret-community.

imatiach-msft avatar imatiach-msft commented on June 1, 2024

@GISH123 ah, I just thought of something, can you try setting the use_cdn=False parameter? Maybe it is having issues retrieving the javascript from the CDN - this way you can retrieve it locally.

from interpret-community.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.