responsible-ai-toolbox icon indicating copy to clipboard operation
responsible-ai-toolbox copied to clipboard

Add feature names to data sent to "requestPredictions" callback

Open gaugup opened this issue 3 years ago • 2 comments

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.

gaugup avatar Sep 14 '22 00:09 gaugup

Codecov Report

Merging #1712 (ff9a59a) into main (5bb3254) will increase coverage by 1.38%. The diff coverage is n/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.

Impacted Files Coverage Δ
...idgets/raiwidgets/responsibleai_dashboard_input.py
raiwidgets/raiwidgets/__version__.py
...ponsibleai/responsibleai/_tools/shared/__init__.py
raiwidgets/raiwidgets/cohort.py
...iwidgets/raiwidgets/explanation_dashboard_input.py
...leai/responsibleai/modelanalysis/model_analysis.py
...iwidgets/raiwidgets/fairness_metric_calculation.py
responsibleai/responsibleai/managers/__init__.py
.../databalanceanalysis/aggregate_balance_measures.py
...tools/counterfactual/dashboard_schemas/__init__.py
... and 56 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov-commenter avatar Sep 14 '22 00:09 codecov-commenter

https://responsibleai.blob.core.windows.net/pullrequest/microsoft/responsible-ai-toolbox/gaugup/AddFeatureNamesRequestPrediction/dashboard/index.html

github-actions[bot] avatar Sep 14 '22 01:09 github-actions[bot]