Skip to content

Commit

Permalink
update string when no datapoint selected (#1331)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhb000 authored Apr 9, 2022
1 parent 75aaaa0 commit ba79a75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function describeDataPointChart(dataShape: IInterpretData): void {
it("should show message on sub chart", () => {
const message =
!dataShape.noLocalImportance && !dataShape.noFeatureImportance
? "Select a point to see its local importance"
? "Select a datapoint in the table above to view its local feature importances"
: "Provide local feature importances to see how each feature impacts individual predictions.";
cy.get("#subPlotContainer").should("contain.text", message);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function describeTabularDataView(dataShape: IModelAssessmentData): void {
const message =
!dataShape.featureImportanceData?.noLocalImportance &&
!dataShape.featureImportanceData?.noFeatureImportance
? "Select a point to see its local importance"
? "Select a datapoint in the table above to view its local feature importances"
: "Provide local feature importances to see how each feature impacts individual predictions.";
cy.get("#subPlotContainer").should("contain.text", message);
});
Expand Down
2 changes: 1 addition & 1 deletion libs/localization/src/lib/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@
"dataPointInfo": "Data point info",
"deltaLabel": "Delta",
"disclaimer": "Disclaimer: These are explanations based on many approximations and are not the \"cause\" of predictions. Without strict mathematical robustness of causal inference, we do not advise users to make real-life decisions based on this tool.",
"featureImportanceGetStartedText": "Select a point to see its local importance",
"featureImportanceGetStartedText": "Select a datapoint in the table above to view its local feature importances",
"featureImportanceLackingParameters": "Provide local feature importances to see how each feature impacts individual predictions.",
"featureImportancePlot": "Feature importance plot",
"featureValues": "Feature values",
Expand Down

0 comments on commit ba79a75

Please sign in to comment.