GithubHelp home page GithubHelp logo

Comments (4)

jameswex avatar jameswex commented on August 22, 2024

Thanks for reaching out! It is possible for you to share a jupyter or colab notebook that trains and saves the model, and creates the tf.record file (or share the tf.record file)?

from what-if-tool.

aranAbm avatar aranAbm commented on August 22, 2024

Sure! I can share both, I used the WIT_compas jupyter notebook (https://github.com/PAIR-code/what-if-tool/blob/master/WIT_COMPAS.ipynb) and add some code.
You can find the jupyter notebook and the tfrecord file here https://github.com/aranAbm/aam

Thank you!

from what-if-tool.

jameswex avatar jameswex commented on August 22, 2024

Thanks so much for the quick response.

With your notebook, I was able to train the model, save it as an estimator, and see the results in WIT inside of a notebook with the following cell, without any errors in WIT.

from witwidget.notebook.visualization import WitConfigBuilder
from witwidget.notebook.visualization import WitWidget
config_builder = WitConfigBuilder(examples[0:num_datapoints]).set_inference_address("localhost:8500").set_model_name("saved_model")
WitWidget(config_builder, height=tool_height_in_px)

You should be able to use it in TensorBoard as well, by setting the inference address to localhost:8500 and model name to "saved_model", and point the examples path to the tfrecords file on disk.

What settings are you suing in WIT?

from what-if-tool.

aranAbm avatar aranAbm commented on August 22, 2024

Well, first I run the docker command I mentioned above and then I open TensorBoard using a jupyter notebook, go to WIT and these are the settings I am using:

  • localhost:8500 as inference address
  • saved_model as Model name
  • I've read that the tfrecord file should be placed at the folder where the saved_model is saved, so
    the paht to examples will be the path to the tfrecord file which in my case is:
    C:\Users\arancha.abad\What if\versiones\1586269839\COMPAS_TFR.tfrecord

Here is an screenshot with the set up:
image

And I don't know why but suddenly it is working!

Thank you so much for your time!

from what-if-tool.

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.