From 3358b9c62c298cdd3d536b0975facc8825b73ccf Mon Sep 17 00:00:00 2001 From: zhb000 Date: Fri, 8 Apr 2022 16:04:20 -0700 Subject: [PATCH] update string when no datapoint selected --- .../individualFeatureImportance/describeDataPointChart.ts | 2 +- .../individualFeatureImportance/describeTabularDataView.ts | 2 +- libs/localization/src/lib/en.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard-e2e/src/describer/interpret/individualFeatureImportance/describeDataPointChart.ts b/apps/dashboard-e2e/src/describer/interpret/individualFeatureImportance/describeDataPointChart.ts index d2d1a12bff..edec704d20 100644 --- a/apps/dashboard-e2e/src/describer/interpret/individualFeatureImportance/describeDataPointChart.ts +++ b/apps/dashboard-e2e/src/describer/interpret/individualFeatureImportance/describeDataPointChart.ts @@ -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); }); diff --git a/apps/widget-e2e/src/describer/modelAssessment/featureImportances/individualFeatureImportance/describeTabularDataView.ts b/apps/widget-e2e/src/describer/modelAssessment/featureImportances/individualFeatureImportance/describeTabularDataView.ts index 70f723dada..2d39aedb8d 100644 --- a/apps/widget-e2e/src/describer/modelAssessment/featureImportances/individualFeatureImportance/describeTabularDataView.ts +++ b/apps/widget-e2e/src/describer/modelAssessment/featureImportances/individualFeatureImportance/describeTabularDataView.ts @@ -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); }); diff --git a/libs/localization/src/lib/en.json b/libs/localization/src/lib/en.json index d7a358c7e2..8af934dba8 100644 --- a/libs/localization/src/lib/en.json +++ b/libs/localization/src/lib/en.json @@ -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",