hc99's picture
Add files using upload-large-folder tool
fc0f7bd verified
raw
history blame
1.18 kB
export interface IDatasetSummary {
featureNames?: string[];
classNames?: string[];
categoricalMap?: {[key: number]: string[]};
}
export enum PredictionTypes {
binaryClassification = "binaryClassification",
regression = "regression",
probability = "probability"
}
export type PredictionType =
PredictionTypes.binaryClassification |
PredictionTypes.probability |
PredictionTypes.regression;
export interface IMetricResponse {
global?: number;
bins?: number[];
}
export interface IMetricRequest {
metricKey: string;
binVector: number[];
modelIndex: number;
}
export interface IFairnessProps {
dataSummary: IDatasetSummary;
testData: any[][];
predictionType?: PredictionTypes;
// One array per each model;
predictedY: number[][];
modelNames?: string[]
trueY: number[];
theme?: any;
stringParams?: any;
supportedBinaryClassificationAccuracyKeys: string[];
supportedRegressionAccuracyKeys: string[];
supportedProbabilityAccuracyKeys: string[];
// The request hook
requestMetrics: ( request: IMetricRequest, abortSignal?: AbortSignal) => Promise<IMetricResponse>;
}