forked from microsoft/responsible-ai-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 1
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 DBPedia text classification notebook (mi…
- Loading branch information
1 parent
b06768f
commit e5af558
Showing
13 changed files
with
176 additions
and
36 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
13 changes: 13 additions & 0 deletions
13
...sment/responsibleaitoolboxDBPediaTextClassificationModelDebugging/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,13 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { | ||
describeDatasetExplorer, | ||
modelAssessmentDatasets | ||
} from "@responsible-ai/e2e"; | ||
const datasetShape = | ||
modelAssessmentDatasets.DBPediaTextClassificationModelDebugging; | ||
describeDatasetExplorer( | ||
datasetShape, | ||
"DBPediaTextClassificationModelDebugging" | ||
); |
11 changes: 11 additions & 0 deletions
11
...essment/responsibleaitoolboxDBPediaTextClassificationModelDebugging/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.DBPediaTextClassificationModelDebugging; | ||
describeErrorAnalysis(datasetShape, "DBPediaTextClassificationModelDebugging"); |
10 changes: 10 additions & 0 deletions
10
...essment/responsibleaitoolboxDBPediaTextClassificationModelDebugging/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.DBPediaTextClassificationModelDebugging; | ||
describeModelOverview(datasetShape, "DBPediaTextClassificationModelDebugging"); |
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
54 changes: 54 additions & 0 deletions
54
...e2e/src/lib/describer/modelAssessment/datasets/DBPediaTextClassificationModelDebugging.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,54 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
export const DBPediaTextClassificationModelDebugging = { | ||
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: 7, | ||
secondFeatureToSelect: "negative_words", | ||
singleFeatureCohorts: 3 | ||
}, | ||
hasModelOverviewComponent: true, | ||
initialCohorts: [ | ||
{ | ||
metrics: { | ||
accuracy: "0.6", | ||
macroF1: "0.649", | ||
macroPrecision: "0.625", | ||
macroRecall: "0.675" | ||
}, | ||
name: "All data", | ||
sampleSize: "134" | ||
} | ||
], | ||
newCohort: { | ||
metrics: { | ||
accuracy: "0.9", | ||
macroF1: "0.9", | ||
macroPrecision: "0.9", | ||
macroRecall: "0.9" | ||
}, | ||
name: "CohortCreateE2E-text-classification", | ||
sampleSize: "5" | ||
} | ||
} | ||
}; |
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
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
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
Oops, something went wrong.