Skip to content

Commit

Permalink
Fix some trusty issues (#3371)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewballantyne authored Nov 6, 2024
1 parent 9b98188 commit 8305246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/trustyai/rawTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type BaseMetric = {
protectedAttribute: string;
outcomeName: string;
modelId: string;
requestName: string;
requestName?: string;
thresholdDelta?: number;
batchSize?: number;
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/concepts/trustyai/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const formatListResponse = (x: BaseMetricListResponse): BiasMetricConfig[
id: m.id,
metricType: m.request.metricName,
modelId: m.request.modelId,
name: m.request.requestName,
name: m.request.requestName ?? `${m.request.metricName}-${m.request.modelId}`,
outcomeName: m.request.outcomeName,
privilegedAttribute: m.request.privilegedAttribute.value,
protectedAttribute: m.request.protectedAttribute,
Expand Down

0 comments on commit 8305246

Please sign in to comment.