Skip to content

Commit

Permalink
refined labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 committed Nov 20, 2023
1 parent 6424e33 commit bf4636f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class FeatureBalanceMeasuresChart extends React.PureComponent<
options={labelOptions}
selectedKey={this.state.selectedLabelIndex}
onChange={this.setSelectedLabel}
ariaLabel={measuresLocalization.LabelPickerAriaLabel}
ariaLabel={measuresLocalization.LabelPicker}
/>
</Stack.Item>
</Stack>
Expand All @@ -136,7 +136,7 @@ export class FeatureBalanceMeasuresChart extends React.PureComponent<
options={featureOptions}
selectedKey={this.state.selectedFeatureIndex}
onChange={this.setSelectedFeature}
ariaLabel={measuresLocalization.FeaturePickerAriaLabel}
ariaLabel={measuresLocalization.FeaturePicker}
/>
</Stack.Item>
</Stack>
Expand All @@ -155,7 +155,7 @@ export class FeatureBalanceMeasuresChart extends React.PureComponent<
options={measureOptions}
selectedKey={this.state.selectedMeasureIndex}
onChange={this.setSelectedMeasure}
ariaLabel={measuresLocalization.MeasurePickerAriaLabel}
ariaLabel={measuresLocalization.MeasurePicker}
/>
</Stack.Item>
</Stack>
Expand Down
6 changes: 3 additions & 3 deletions libs/fairness/src/lib/Controls/DropdownBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class DropdownBar extends React.PureComponent<IDropdownBarProps> {
disabled={false}
onChange={this.props.parentFeatureChanged}
ariaLabel={
localization.Fairness.DropdownHeaders.sensitiveFeatureAriaLabel
localization.Fairness.DropdownHeaders.sensitiveFeature
}
/>
<Dropdown
Expand All @@ -71,7 +71,7 @@ export class DropdownBar extends React.PureComponent<IDropdownBarProps> {
disabled={false}
onChange={this.props.parentPerformanceChanged}
ariaLabel={
localization.Fairness.DropdownHeaders.performanceMetricAriaLabel
localization.Fairness.DropdownHeaders.performanceMetric
}
/>
<Dropdown
Expand All @@ -85,7 +85,7 @@ export class DropdownBar extends React.PureComponent<IDropdownBarProps> {
disabled={false}
onChange={this.props.parentFairnessChanged}
ariaLabel={
localization.Fairness.DropdownHeaders.fairnessMetricAriaLabel
localization.Fairness.DropdownHeaders.fairnessMetric
}
/>
</Stack>
Expand Down
20 changes: 6 additions & 14 deletions libs/localization/src/lib/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,8 @@
"DropdownHeaders": {
"errorMetric": "Enable error bars",
"fairnessMetric": "Fairness metric",
"fairnessMetricAriaLabel": "Fairness metric dropdown",
"performanceMetric": "Performance metric",
"performanceMetricAriaLabel": "Performance metric dropdown",
"sensitiveFeature": "Sensitive feature",
"sensitiveFeatureAriaLabel": "Sensitive feature dropdown"
},
"ErrorBounds": {
"howToRead": "How to read these error bars",
Expand Down Expand Up @@ -707,7 +704,7 @@
"backToComparisons": "Back to all models",
"backToComparisonsLegacy": "Multimodel view",
"chartChoiceDropdownHeader": "Charts",
"chartChoiceAriaLabel": "Chart selection dropdown",
"chartChoiceAriaLabel": "Chart selection",
"classificationOutcomesHowToRead": "The bar chart shows the selection rate in each group, meaning the fraction of points classified as 1.",
"classificationPerformanceHowToRead1": "The bar chart shows the distribution of errors in each group.",
"classificationPerformanceHowToRead2": "Errors are split into overprediction errors (predicting 1 when the true label is 0), and underprediction errors (predicting 0 when the true label is 1).",
Expand Down Expand Up @@ -998,7 +995,7 @@
"individualDatapoints": "Individual datapoints",
"missingParameters": "This tab requires an evaluation dataset be supplied.",
"noColor": "None",
"datasetCohortDropdown": "Dataset cohort dropdown"
"datasetCohortDropdown": "Dataset cohort"
},
"DependencePlot": {
"_featureImportanceOf.comment": "axis label on chart showing the importance of a selected feature (column)",
Expand Down Expand Up @@ -1450,9 +1447,9 @@
"filter": "Filter",
"indexLabel": "Image ",
"labelTypeDropdown": "Select label type",
"labelTypeAriaLabel": "Label type dropdown",
"labelTypeAriaLabel": "Label type",
"labelVisibilityDropdown": "Select labels to display",
"labelVisibilityAriaLabel": "Label visibility dropdown",
"labelVisibilityAriaLabel": "Label visibility",
"legendFailure": "failure",
"legendSuccess": "success",
"loading": "Computing explanation for image of index",
Expand Down Expand Up @@ -1522,7 +1519,7 @@
"deleteCohort": "Deleting {0}?",
"deleteConfirm": "Are you sure you want to delete this cohort?",
"selectCohort": "Select a cohort",
"selectCohortAriaLabel": "Cohort selection dropdown",
"selectCohortAriaLabel": "Cohort selection",
"shiftCohort": "Switch cohort",
"shiftCohortDescription": "Select a cohort from the cohort list. Apply the cohort to the dashboard."
},
Expand Down Expand Up @@ -1664,11 +1661,8 @@
"Description2": "gaps on all classes of",
"Description3": "for label",
"FeaturePicker": "Feature",
"FeaturePickerAriaLabel": "Feature dropdown",
"LabelPicker": "Positive label",
"LabelPickerAriaLabel": "Positive label dropdown",
"MeasurePicker": "Measure",
"MeasurePickerAriaLabel": "Measure dropdown",
"Measures": {
"JaccardIndex": {
"Description": "gap represents the difference between the Jaccard Index of Class A and Jaccard Index of Class B. Jaccard Index itself is an intersection-over-union measure and therefore has a range of [0, 1], where 0 means that the distributions are completely disjoint and 1 means they are completely identical.",
Expand Down Expand Up @@ -1858,9 +1852,7 @@
"countColumnHeader": "Sample size",
"dataCohortsHeatmapHeader": "Cohorts",
"dataCohortsChartSelectionHeader": "Dataset cohorts",
"dataCohortsChartSelectionAriaLabel": "Dataset cohort dropdown",
"featureBasedCohortsChartSelectionHeader": "Feature cohorts",
"featureCohortsChartSelectionAriaLabel": "Feature cohort dropdown",
"disaggregatedAnalysisHeatmapHeader": "Feature cohorts",
"fairnessMetricsHeatmapHeader": "Fairness metrics",
"featuresDropdown": "Feature(s)",
Expand Down Expand Up @@ -2007,7 +1999,7 @@
"cancel": "Cancel",
"cohortList": "Time series list",
"selectCohort": "Select a time series",
"selectCohortAriaLabel": "Time series selection dropdown",
"selectCohortAriaLabel": "Time series selection",
"shiftCohort": "Switch time series",
"shiftCohortDescription": "Select a time series from the time series list. Apply the time series to the dashboard."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export class ChartConfigurationFlyout extends React.Component<
disabled={!this.state.datasetCohortViewIsNewlySelected}
ariaLabel={
localization.ModelAssessment.ModelOverview
.dataCohortsChartSelectionAriaLabel
.dataCohortsChartSelectionHeader
}
/>
{this.props.featureBasedCohorts.length > 0 && (
Expand All @@ -256,7 +256,7 @@ export class ChartConfigurationFlyout extends React.Component<
disabled={this.state.datasetCohortViewIsNewlySelected}
ariaLabel={
localization.ModelAssessment.ModelOverview
.featureCohortsChartSelectionAriaLabel
.featureBasedCohortsChartSelectionHeader
}
/>
)}
Expand Down

0 comments on commit bf4636f

Please sign in to comment.