-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add e2e UI notebook tests to covid19 event multilabel text classifica…
…tion notebook
- Loading branch information
1 parent
998097f
commit 0df57ef
Showing
8 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...aidashboardCovid19EventMultilabelTextClassificationModelDebugging/datasetExplorer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { | ||
describeDatasetExplorer, | ||
modelAssessmentDatasets | ||
} from "@responsible-ai/e2e"; | ||
const datasetShape = | ||
modelAssessmentDatasets.CovidTextClassificationModelDebugging; | ||
describeDatasetExplorer(datasetShape, "CovidTextClassificationModelDebugging"); |
11 changes: 11 additions & 0 deletions
11
...leaidashboardCovid19EventMultilabelTextClassificationModelDebugging/errorAnalysis.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { | ||
describeErrorAnalysis, | ||
modelAssessmentDatasets | ||
} from "@responsible-ai/e2e"; | ||
|
||
const datasetShape = | ||
modelAssessmentDatasets.CovidTextClassificationModelDebugging; | ||
describeErrorAnalysis(datasetShape, "CovidTextClassificationModelDebugging"); |
10 changes: 10 additions & 0 deletions
10
...leaidashboardCovid19EventMultilabelTextClassificationModelDebugging/modelOverview.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { | ||
describeModelOverview, | ||
modelAssessmentDatasets | ||
} from "@responsible-ai/e2e"; | ||
const datasetShape = | ||
modelAssessmentDatasets.CovidTextClassificationModelDebugging; | ||
describeModelOverview(datasetShape, "CovidTextClassificationModelDebugging"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
libs/e2e/src/lib/describer/modelAssessment/datasets/CovidTextClassificationModelDebugging.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
export const CovidTextClassificationModelDebugging = { | ||
causalAnalysisData: { | ||
hasCausalAnalysisComponent: false | ||
}, | ||
checkDupCohort: true, | ||
cohortDefaultName: "All data", | ||
dataBalanceData: { | ||
aggregateBalanceMeasuresComputed: false, | ||
distributionBalanceMeasuresComputed: false, | ||
featureBalanceMeasuresComputed: false | ||
}, | ||
errorAnalysisData: { | ||
hasErrorAnalysisComponent: true | ||
}, | ||
featureImportanceData: { | ||
hasFeatureImportanceComponent: false | ||
}, | ||
featureNames: ["text"], | ||
isTextClassification: true, | ||
modelOverviewData: { | ||
featureCohortView: { | ||
firstFeatureToSelect: "positive_words", | ||
multiFeatureCohorts: 3, | ||
secondFeatureToSelect: "negative_words", | ||
singleFeatureCohorts: 3 | ||
}, | ||
hasModelOverviewComponent: true, | ||
initialCohorts: [ | ||
{ | ||
metrics: { | ||
accuracy: "0.95", | ||
precision: "0.944", | ||
recall: "1" | ||
}, | ||
name: "All data", | ||
sampleSize: "20" | ||
} | ||
], | ||
newCohort: { | ||
metrics: { | ||
accuracy: "0.947", | ||
precision: "0.941", | ||
recall: "1" | ||
}, | ||
name: "CohortCreateE2E-text-classification", | ||
sampleSize: "19" | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters