From 672c5809642e0f54a457d31d679c2430232f290f Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Wed, 11 Dec 2024 08:52:59 +0000 Subject: [PATCH] support more than 1 bandit methodology --- .../components/channelManagement/TestMethodologyEditor.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/components/channelManagement/TestMethodologyEditor.tsx b/public/src/components/channelManagement/TestMethodologyEditor.tsx index 15874303..23c97511 100644 --- a/public/src/components/channelManagement/TestMethodologyEditor.tsx +++ b/public/src/components/channelManagement/TestMethodologyEditor.tsx @@ -16,6 +16,8 @@ import AddIcon from '@mui/icons-material/Add'; import Alert from '@mui/lab/Alert'; import { addMethodologyToTestName } from './helpers/methodology'; +const isBandit = (methodology: Methodology): boolean => methodology.name === 'EpsilonGreedyBandit'; + const useStyles = makeStyles(({ spacing, palette }: Theme) => ({ container: { '& > * + *': { @@ -122,9 +124,9 @@ const TestMethodology: React.FC = ({ }} /> - )} + {isBandit(methodology) && }
{methodology.testName &&
{methodology.testName}
}