what-if-tool
what-if-tool copied to clipboard
Creating a Web page with custom dataset and predictions
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.
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.