Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmp
lmp_server
Commits
c847d403
Commit
c847d403
authored
Dec 07, 2023
by
linpeiqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加模型评估的参数
parent
dc26bbfc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
5 deletions
+23
-5
ModelEstimateController.java
...yice/webadmin/app/controller/ModelEstimateController.java
+2
-3
ModelEstimateMapper.xml
.../com/yice/webadmin/app/dao/mapper/ModelEstimateMapper.xml
+5
-2
ModelEstimateDto.java
...main/java/com/yice/webadmin/app/dto/ModelEstimateDto.java
+6
-0
ModelEstimate.java
.../main/java/com/yice/webadmin/app/model/ModelEstimate.java
+4
-0
ModelEstimateVo.java
...c/main/java/com/yice/webadmin/app/vo/ModelEstimateVo.java
+6
-0
No files found.
application-webadmin/src/main/java/com/yice/webadmin/app/controller/ModelEstimateController.java
View file @
c847d403
...
@@ -50,17 +50,16 @@ public class ModelEstimateController {
...
@@ -50,17 +50,16 @@ public class ModelEstimateController {
* 新增模型评估数据,及其关联的从表数据。
* 新增模型评估数据,及其关联的从表数据。
*
*
* @param modelEstimateDto 新增主表对象。
* @param modelEstimateDto 新增主表对象。
* @param modelTaskDto 一对一模型任务从表Dto。
* @return 应答结果对象,包含新增对象主键Id。
* @return 应答结果对象,包含新增对象主键Id。
*/
*/
@ApiOperationSupport
(
ignoreParameters
=
{
"modelEstimateDto.taskId"
,
"modelEstimateDto.searchString"
})
@ApiOperationSupport
(
ignoreParameters
=
{
"modelEstimateDto.taskId"
,
"modelEstimateDto.searchString"
})
@OperationLog
(
type
=
SysOperationLogType
.
ADD
)
@OperationLog
(
type
=
SysOperationLogType
.
ADD
)
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
public
ResponseResult
<
Long
>
add
(
public
ResponseResult
<
Long
>
add
(
@MyRequestBody
ModelEstimateDto
modelEstimateDto
,
@MyRequestBody
ModelEstimateDto
modelEstimateDto
)
{
@MyRequestBody
ModelTaskDto
modelTaskDto
)
{
Long
modelVersionId
=
modelEstimateDto
.
getModelVersionId
();
Long
modelVersionId
=
modelEstimateDto
.
getModelVersionId
();
ModelVersion
modelVersion
=
this
.
modelVersionService
.
getById
(
modelVersionId
);
ModelVersion
modelVersion
=
this
.
modelVersionService
.
getById
(
modelVersionId
);
ModelTaskDto
modelTaskDto
=
new
ModelTaskDto
();
modelTaskDto
.
setVersionId
(
modelVersion
.
getVersionId
());
modelTaskDto
.
setVersionId
(
modelVersion
.
getVersionId
());
modelTaskDto
.
setTaskType
(
1
);
modelTaskDto
.
setTaskType
(
1
);
modelTaskDto
.
setModelId
(
modelVersion
.
getModelId
());
modelTaskDto
.
setModelId
(
modelVersion
.
getModelId
());
...
...
application-webadmin/src/main/java/com/yice/webadmin/app/dao/mapper/ModelEstimateMapper.xml
View file @
c847d403
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<result
column=
"model_version_id"
jdbcType=
"BIGINT"
property=
"modelVersionId"
/>
<result
column=
"model_version_id"
jdbcType=
"BIGINT"
property=
"modelVersionId"
/>
<result
column=
"dataset_version_id"
jdbcType=
"BIGINT"
property=
"datasetVersionId"
/>
<result
column=
"dataset_version_id"
jdbcType=
"BIGINT"
property=
"datasetVersionId"
/>
<result
column=
"scoring_mode"
jdbcType=
"TINYINT"
property=
"scoringMode"
/>
<result
column=
"scoring_mode"
jdbcType=
"TINYINT"
property=
"scoringMode"
/>
<result
column=
"configuration"
jdbcType=
"LONGVARCHAR"
property=
"configuration"
/>
</resultMap>
</resultMap>
<insert
id=
"insertList"
>
<insert
id=
"insertList"
>
...
@@ -25,7 +26,8 @@
...
@@ -25,7 +26,8 @@
task_describe,
task_describe,
model_version_id,
model_version_id,
dataset_version_id,
dataset_version_id,
scoring_mode)
scoring_mode,
configuration)
VALUES
VALUES
<foreach
collection=
"list"
index=
"index"
item=
"item"
separator=
","
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
separator=
","
>
(#{item.taskId},
(#{item.taskId},
...
@@ -37,7 +39,8 @@
...
@@ -37,7 +39,8 @@
#{item.taskDescribe},
#{item.taskDescribe},
#{item.modelVersionId},
#{item.modelVersionId},
#{item.datasetVersionId},
#{item.datasetVersionId},
#{item.scoringMode})
#{item.scoringMode},
#{item.configuration})
</foreach>
</foreach>
</insert>
</insert>
...
...
application-webadmin/src/main/java/com/yice/webadmin/app/dto/ModelEstimateDto.java
View file @
c847d403
...
@@ -54,6 +54,12 @@ public class ModelEstimateDto {
...
@@ -54,6 +54,12 @@ public class ModelEstimateDto {
@ApiModelProperty
(
value
=
"打分模式"
)
@ApiModelProperty
(
value
=
"打分模式"
)
private
Integer
scoringMode
;
private
Integer
scoringMode
;
/**
* 参数配置。
*/
@ApiModelProperty
(
value
=
"参数配置"
)
private
String
configuration
;
/**
/**
* task_name LIKE搜索字符串。
* task_name LIKE搜索字符串。
*/
*/
...
...
application-webadmin/src/main/java/com/yice/webadmin/app/model/ModelEstimate.java
View file @
c847d403
...
@@ -55,6 +55,10 @@ public class ModelEstimate extends BaseModel {
...
@@ -55,6 +55,10 @@ public class ModelEstimate extends BaseModel {
* 打分模式。
* 打分模式。
*/
*/
private
Integer
scoringMode
;
private
Integer
scoringMode
;
/**
* 参数配置。
*/
private
String
configuration
;
/**
/**
* task_name LIKE搜索字符串。
* task_name LIKE搜索字符串。
...
...
application-webadmin/src/main/java/com/yice/webadmin/app/vo/ModelEstimateVo.java
View file @
c847d403
...
@@ -54,6 +54,12 @@ public class ModelEstimateVo extends BaseVo {
...
@@ -54,6 +54,12 @@ public class ModelEstimateVo extends BaseVo {
@ApiModelProperty
(
value
=
"打分模式"
)
@ApiModelProperty
(
value
=
"打分模式"
)
private
Integer
scoringMode
;
private
Integer
scoringMode
;
/**
* 参数配置。
*/
@ApiModelProperty
(
value
=
"参数配置"
)
private
String
configuration
;
/**
/**
* taskId 的一对一关联数据对象,数据对应类型为ModelTaskVo。
* taskId 的一对一关联数据对象,数据对应类型为ModelTaskVo。
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment