diff --git a/react-ui/src/pages/ActiveLearn/components/ActiveLearnBasic/index.tsx b/react-ui/src/pages/ActiveLearn/components/ActiveLearnBasic/index.tsx index 2ea0cb8f..e8e597e9 100644 --- a/react-ui/src/pages/ActiveLearn/components/ActiveLearnBasic/index.tsx +++ b/react-ui/src/pages/ActiveLearn/components/ActiveLearnBasic/index.tsx @@ -89,9 +89,17 @@ function BasicInfo({ info, className, runStatus, isInstance = false }: BasicInfo label: 'epochs', value: info.epochs, }, + { + label: 'batch_size', + value: info.batch_size, + }, ]; const lossInfo = [ + { + label: '学习率', + value: info.lr, + }, { label: 'loss文件路径', value: info.loss_py, @@ -100,10 +108,6 @@ function BasicInfo({ info, className, runStatus, isInstance = false }: BasicInfo label: 'loss类名', value: info.loss_class_name, }, - { - label: '学习率', - value: info.lr, - }, ]; const algorithmInfo = [ @@ -130,12 +134,6 @@ function BasicInfo({ info, className, runStatus, isInstance = false }: BasicInfo value: info.task_type, format: formatEnum(autoMLTaskTypeOptions), }, - { - label: '框架类型', - value: info.framework_type, - format: formatEnum(frameworkTypeOptions), - }, - ...diffInfo, { label: '代码配置', value: info.code_config, @@ -164,6 +162,12 @@ function BasicInfo({ info, className, runStatus, isInstance = false }: BasicInfo value: info.computing_resource_id, format: getResourceDescription, }, + { + label: '框架类型', + value: info.framework_type, + format: formatEnum(frameworkTypeOptions), + }, + ...diffInfo, { label: '是否打乱', value: info.shuffle, @@ -198,10 +202,6 @@ function BasicInfo({ info, className, runStatus, isInstance = false }: BasicInfo label: '检查点轮数', value: info.checkpoint_num, }, - { - label: 'batch_size', - value: info.batch_size, - }, ]; }, [info, getResourceDescription]); diff --git a/react-ui/src/pages/ActiveLearn/components/CreateForm/ExecuteConfig.tsx b/react-ui/src/pages/ActiveLearn/components/CreateForm/ExecuteConfig.tsx index b3dd6285..bedbe0f2 100644 --- a/react-ui/src/pages/ActiveLearn/components/CreateForm/ExecuteConfig.tsx +++ b/react-ui/src/pages/ActiveLearn/components/CreateForm/ExecuteConfig.tsx @@ -40,6 +40,120 @@ function ExecuteConfig() { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {frameworkType === FrameworkType.Pytorch ? ( <> + + + + + + + - - - - - - - ) : null} @@ -255,75 +385,8 @@ function ExecuteConfig() { - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -345,53 +408,6 @@ function ExecuteConfig() { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); } diff --git a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx index 689deb1b..3f85f5c5 100644 --- a/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx +++ b/react-ui/src/pages/AutoML/components/CreateForm/ExecuteConfig.tsx @@ -305,7 +305,7 @@ function ExecuteConfig() { name="max_models_on_disc" tooltip="定义在磁盘中保存的模型的最大数量。额外的模型数量将被永久删除,它设置了一个集成可以使用多少个模型的上限。必须是大于等于1的整数,默认50" > - + diff --git a/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx b/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx index 61a814d4..da0a0869 100644 --- a/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx +++ b/react-ui/src/pages/AutoML/components/ExperimentList/index.tsx @@ -357,7 +357,7 @@ function ExperimentList({ type }: ExperimentListProps) { return (
- +
开始时间
操作
- {tableData?.map((item) => ( -
-
- + {Array.isArray(tableData) && tableData.length > 0 ? ( + tableData.map((item) => ( +
+
+ +
+
+ {elapsedTime(item.create_time, item.finish_time)} +
+
{formatDate(item.create_time)}
+
+ +
-
- {elapsedTime(item.create_time, item.finish_time)} -
-
{formatDate(item.create_time)}
-
- -
-
- ))} + )) + ) : ( + + )}
); } diff --git a/react-ui/src/utils/downloadfile.ts b/react-ui/src/utils/downloadfile.ts index 2ee843ab..81692b7d 100644 --- a/react-ui/src/utils/downloadfile.ts +++ b/react-ui/src/utils/downloadfile.ts @@ -91,10 +91,3 @@ export function downloadCommonFile(url: string, type: string, fileName: string = resolveBlob(res, type, fileName); }); } - -/** - * @deprecated 无效 - */ -export function download(fileName: string) { - window.location.href = `/api/common/download?fileName=${encodeURI(fileName)}&delete=${true}`; -}