Browse Source

feat: 机器学习运行文本分类

pull/207/head
zhaowei 9 months ago
parent
commit
0d4956b90b
5 changed files with 13 additions and 5 deletions
  1. +3
    -1
      react-ui/src/pages/AutoML/Create/index.tsx
  2. +3
    -2
      react-ui/src/pages/AutoML/Instance/index.tsx
  3. +1
    -1
      react-ui/src/pages/AutoML/components/ExperimentList/config.ts
  4. +1
    -0
      react-ui/src/pages/AutoML/types.ts
  5. +5
    -1
      react-ui/src/pages/ModelDeployment/components/ServerLog/index.less

+ 3
- 1
react-ui/src/pages/AutoML/Create/index.tsx View File

@@ -87,6 +87,9 @@ function CreateAutoML() {
// 编辑,复制
if (id && !Number.isNaN(id)) {
getAutoMLInfo(id);
} else {
// 新建,不设置 form 的 type 初始值,是为了编辑和复制的时候,form 跳动
form.setFieldValue('type', AutoMLType.Table);
}
}, [id, form, isCopy]);

@@ -183,7 +186,6 @@ function CreateAutoML() {
autoComplete="off"
scrollToFirstError
initialValues={{
type: AutoMLType.Table,
task_type: AutoMLTaskType.Classification,
shuffle: false,
ensemble_class: AutoMLEnsembleClass.Default,


+ 3
- 2
react-ui/src/pages/AutoML/Instance/index.tsx View File

@@ -48,13 +48,14 @@ function AutoMLInstance() {
const [res] = await to(getExperimentInsReq(instanceId));
if (res && res.data) {
const info = res.data as AutoMLInstanceData;
const { param, node_status, argo_ins_name, argo_ins_ns, status, create_time } = info;
const { param, node_status, argo_ins_name, argo_ins_ns, status, create_time, type } = info;
// 解析配置参数
const paramJson = parseJsonText(param);
if (paramJson) {
setAutoMLInfo({
...paramJson,
...paramJson.data,
create_time,
type,
});
}



+ 1
- 1
react-ui/src/pages/AutoML/components/ExperimentList/config.ts View File

@@ -66,7 +66,7 @@ export const experimentListConfig: Record<ExperimentListType, ExperimentListInfo
pathPrefix: 'automl',
nameProperty: 'name',
descProperty: 'description',
idProperty: 'autoMlId',
idProperty: 'machineLearnId',
},
[ExperimentListType.HyperParameter]: {
getListReq: getRayListReq,


+ 1
- 0
react-ui/src/pages/AutoML/types.ts View File

@@ -89,4 +89,5 @@ export type AutoMLInstanceData = {
update_time: string;
finish_time: string;
nodeStatus?: NodeStatus;
type: string;
};

+ 5
- 1
react-ui/src/pages/ModelDeployment/components/ServerLog/index.less View File

@@ -8,9 +8,13 @@
color: white;
white-space: pre-wrap;
background-color: rgba(0, 0, 0, 0.85);
font-family: 'Roboto Mono', 'Menlo', 'Consolas', 'Monaco', monospace;
display: flex;
flex-direction: column;
align-items: center;

&__more {
padding: 10px 0;
padding: 20px 0;
}
}
}

Loading…
Cancel
Save