Skip to content

Commit 3f6f46c

Browse files
authored
Merge pull request #101 from NGO-Algorithm-Audit/JFP_edits
Jfp edits
2 parents de2ecf2 + 5112d9b commit 3f6f46c

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/assets/bias-detection-python-code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def run():
242242
X_train = train_df.drop(columns=[bias_score])
243243
244244
scaleY = 1
245-
if higherIsBetter == 1:
245+
if higherIsBetter == 0:
246246
scaleY = -1;
247247
248248

src/components/composed-components/ClusterCategoriesDistributionAccordeonContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ const ClusterCategoriesDistributionAccordeonContent = ({
7171
}
7272
);
7373
return (
74-
<Fragment key={index}>
74+
<Fragment
75+
key={`ClusterCategoriesDistributionAccordeonContent-${index}`}
76+
>
7577
<>
7678
{categorieFilter === chart.selectFilterGroup ||
7779
(!categorieFilter &&

src/components/composed-components/ClusterNumericalVariableDistributionAccordeonContent.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ const ClusterNumericalVariableDistributionAccordeonContent = ({
6262
);
6363

6464
return (
65-
<ErrorBoundary key={chartIndex}>
65+
<ErrorBoundary
66+
key={`ClusterNumericalVariableDistributionAccordeonContent-${chartIndex}`}
67+
>
6668
<>
6769
{categorieFilter === chart.selectFilterGroup ||
6870
(!categorieFilter &&
@@ -82,7 +84,7 @@ const ClusterNumericalVariableDistributionAccordeonContent = ({
8284
: '-'}
8385
</h5>
8486
<SingleBarChart
85-
key={chartIndex}
87+
key={`SingleBarChart-${chartIndex}`}
8688
data={barchartData}
8789
title={chart.title ?? ''}
8890
meanValue={chart.meanValue}
@@ -91,7 +93,7 @@ const ClusterNumericalVariableDistributionAccordeonContent = ({
9193
) : null}
9294
<div className="hidden showonprint">
9395
<h5
94-
key={chartIndex}
96+
key={`SingleBarChart-print-${chartIndex}`}
9597
className="text-gray-800 font-semibold"
9698
>
9799
{chart.headingKey

0 commit comments

Comments
 (0)