responsible-ai-toolbox
responsible-ai-toolbox copied to clipboard
Add feature names to data sent to "requestPredictions" callback
Description
When doing WhatIf analysis in counterfactual panel, the predict call (via requestPredictions callback) send raw data as plain array. This can be problematic as the order of values between the dashboard and SDK may not be consistent. Adding feature names to the data sent to the requestPredictions can help alleviate this problem.
Checklist
- [ ] I have added screenshots above for all UI changes.
- [ ] I have added e2e tests for all UI changes.
- [ ] Documentation was updated if it was needed.
Codecov Report
Merging #1712 (ff9a59a) into main (5bb3254) will increase coverage by
1.38%. The diff coverage isn/a.
@@ Coverage Diff @@
## main #1712 +/- ##
==========================================
+ Coverage 89.00% 90.39% +1.38%
==========================================
Files 105 39 -66
Lines 5577 1718 -3859
==========================================
- Hits 4964 1553 -3411
+ Misses 613 165 -448
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 90.39% <ø> (+1.38%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
https://responsibleai.blob.core.windows.net/pullrequest/microsoft/responsible-ai-toolbox/gaugup/AddFeatureNamesRequestPrediction/dashboard/index.html