Skip to content

Commit

Permalink
allow rai text insights to work with RAI dashboard (#1269)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Mar 14, 2022
1 parent db34d5b commit 67209e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions raiwidgets/raiwidgets/responsibleai_dashboard_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from erroranalysis._internal.constants import ModelTask, display_name_to_metric
from responsibleai import RAIInsights
from responsibleai._input_processing import _convert_to_list
from responsibleai._internal.constants import ManagerNames
from responsibleai.exceptions import UserConfigValidationException

from .cohort import Cohort
Expand Down Expand Up @@ -48,8 +49,8 @@ def __init__(
self.dashboard_input.cohortData = []

self._feature_length = len(self.dashboard_input.dataset.feature_names)
self._row_length = len(self.dashboard_input.dataset.features)
self._error_analyzer = analysis.error_analysis._analyzer
if hasattr(analysis, ManagerNames.ERROR_ANALYSIS):
self._error_analyzer = analysis.error_analysis._analyzer

def _validate_cohort_list(self, cohort_list=None):
if cohort_list is None:
Expand Down

0 comments on commit 67209e5

Please sign in to comment.