what-if-tool icon indicating copy to clipboard operation
what-if-tool copied to clipboard

Creating a Web page with custom dataset and predictions

Open shlomihod opened this issue 4 years ago • 1 comments

How can I create a Web page, similar to the UCI Census demo, with a custom and predictions (without specifying TF model)?

I've looked into the wit_dashboard, but it is not clear to me what should I modify and how should I specify my data.

shlomihod avatar Apr 14 '20 14:04 shlomihod

Hi shlomihod, Thanks for reaching out. The code for UCI census web demo is here, this and other files in the demo folder can be useful for your goal. For this to work, you need to load your dataset and model and then define some triggers used by WIT ('infer-examples', 'get-eligible-features', 'infer-mutants', 'sort-eligible-features', 'delete-example', 'update-example'). Lines 181-191 show how you can load data from json then set indicesToInfer for all those points and trigger inference.

tolga-b avatar Apr 14 '20 15:04 tolga-b