From 34e2b8bb05c5b8e4e85ac1d6c1811e3214df0099 Mon Sep 17 00:00:00 2001 From: zhaowei Date: Fri, 23 May 2025 08:43:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20mlp=20=E6=98=BE=E7=A4=BA=E6=88=90tab?= =?UTF-8?q?lenet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/AutoML/components/CreateForm/ExecuteConfig.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx index a1a34c21..61df6099 100644 --- a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx +++ b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx @@ -30,7 +30,13 @@ const classificationAlgorithms = [ 'LightGBMClassification', 'XGBoostClassification', 'StackingClassification', -].map((name) => ({ label: name, value: name })); +].map((name) => { + if (name === 'mlp') { + return { label: 'tablenet', value: name }; + } else { + return { label: name, value: name }; + } +}); // 回归算法 const regressorAlgorithms = [ From 65c588ac8a51dc9942bcfbf86ee3edb961307517 Mon Sep 17 00:00:00 2001 From: zhaowei Date: Fri, 23 May 2025 09:02:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E9=9B=86=E6=88=90=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=95=B0=E9=87=8F>=3D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx index 61df6099..65ad4c8b 100644 --- a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx +++ b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx @@ -286,9 +286,9 @@ function ExecuteConfig() { - + From f3f9846dff108abb00a6caa6961a06b0657b5b05 Mon Sep 17 00:00:00 2001 From: zhaowei Date: Fri, 23 May 2025 09:42:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E6=A8=A1=E5=9E=8B=E6=8C=87=E6=A0=87?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E5=9B=BE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Model/components/MetricsChart/index.tsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/react-ui/src/pages/Model/components/MetricsChart/index.tsx b/react-ui/src/pages/Model/components/MetricsChart/index.tsx index 1a8ec631..6529fa97 100644 --- a/react-ui/src/pages/Model/components/MetricsChart/index.tsx +++ b/react-ui/src/pages/Model/components/MetricsChart/index.tsx @@ -65,14 +65,18 @@ export type MetricsChartProps = { function MetricsChart({ name, chartData }: MetricsChartProps) { const chartRef = useRef(null); const xAxisData = chartData[0]?.iters; - const seriesData = chartData.map((item) => { - return { - name: item.version, - type: 'line' as const, - smooth: true, - data: item.values, - }; - }); + const seriesData = useMemo( + () => + chartData.map((item) => { + return { + name: item.version, + type: 'line' as const, + smooth: true, + data: item.values, + }; + }), + [chartData], + ); const options: echarts.EChartsOption = useMemo( () => ({ @@ -158,7 +162,7 @@ function MetricsChart({ name, chartData }: MetricsChartProps) { // 组件卸载 return () => { - // myChart.dispose() 销毁实例 + // 销毁实例 chart.dispose(); }; }, [options]);