-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* model assessment vision * fixups * fixups
- Loading branch information
1 parent
7b10c9d
commit 32297b6
Showing
40 changed files
with
1,109 additions
and
526 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
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 was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
apps/dashboard/src/interpret-vision/__mock_data__/explanation.ts
This file was deleted.
Oops, something went wrong.
115 changes: 0 additions & 115 deletions
115
apps/dashboard/src/interpret-vision/__mock_data__/visionData.ts
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { ITheme } from "@fluentui/react"; | ||
import { HelpMessageDict } from "@responsible-ai/error-analysis"; | ||
import { Language } from "@responsible-ai/localization"; | ||
import { | ||
ModelAssessmentDashboard, | ||
IModelAssessmentDashboardProps, | ||
IModelAssessmentData | ||
} from "@responsible-ai/model-assessment"; | ||
import React from "react"; | ||
|
||
interface IAppProps extends IModelAssessmentData { | ||
theme: ITheme; | ||
language: Language; | ||
version: 1 | 2; | ||
classDimension?: 1 | 2 | 3; | ||
featureFlights?: string[]; | ||
} | ||
|
||
export class App extends React.Component<IAppProps> { | ||
private messages: HelpMessageDict = { | ||
LocalExpAndTestReq: [{ displayText: "LocalExpAndTestReq", format: "text" }], | ||
LocalOrGlobalAndTestReq: [ | ||
{ displayText: "LocalOrGlobalAndTestReq", format: "text" } | ||
], | ||
PredictorReq: [{ displayText: "PredictorReq", format: "text" }], | ||
TestReq: [{ displayText: "TestReq", format: "text" }] | ||
}; | ||
|
||
public render(): React.ReactNode { | ||
if (this.props.modelExplanationData) { | ||
for (const exp of this.props.modelExplanationData) { | ||
exp.modelClass = "blackbox"; | ||
} | ||
} | ||
const modelAssessmentDashboardProps: IModelAssessmentDashboardProps = { | ||
...this.props, | ||
locale: this.props.language, | ||
localUrl: "https://www.bing.com/", | ||
stringParams: { contextualHelp: this.messages }, | ||
theme: this.props.theme | ||
}; | ||
|
||
return <ModelAssessmentDashboard {...modelAssessmentDashboardProps} />; | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.