From 40ca029363f6db67858245d72a23e2f722a848de Mon Sep 17 00:00:00 2001 From: zhaowei Date: Tue, 27 May 2025 14:06:16 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E8=87=AA=E5=8A=A8=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E5=AD=A6=E4=B9=A0=E6=B7=BB=E5=8A=A0mlp=E7=AE=97?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/AutoML/components/CreateForm/ExecuteConfig.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx index 65ad4c8b..fded3102 100644 --- a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx +++ b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx @@ -21,6 +21,7 @@ const classificationAlgorithms = [ 'lda', 'liblinear_svc', 'libsvm_svc', + 'tablenet', 'mlp', 'multinomial_nb', 'passive_aggressive', @@ -30,13 +31,7 @@ const classificationAlgorithms = [ 'LightGBMClassification', 'XGBoostClassification', 'StackingClassification', -].map((name) => { - if (name === 'mlp') { - return { label: 'tablenet', value: name }; - } else { - return { label: name, value: name }; - } -}); +].map((name) => ({ label: name, value: name })); // 回归算法 const regressorAlgorithms = [