모델 종류 이름 변경
This commit is contained in:
@@ -51,9 +51,16 @@ public class ModelTrainMngApiController {
|
||||
schema = @Schema(allowableValues = {"", "IN_PROGRESS", "COMPLETED"}))
|
||||
@RequestParam(required = false)
|
||||
String status,
|
||||
@Parameter(
|
||||
description = "모델",
|
||||
example = "G1",
|
||||
schema = @Schema(allowableValues = {"G1", "G2", "G3"}))
|
||||
@RequestParam(required = false)
|
||||
String modelNo,
|
||||
@Parameter(description = "페이지 번호") @RequestParam(defaultValue = "0") int page,
|
||||
@Parameter(description = "페이지 크기") @RequestParam(defaultValue = "20") int size) {
|
||||
ModelTrainMngDto.SearchReq searchReq = new ModelTrainMngDto.SearchReq(status, page, size);
|
||||
ModelTrainMngDto.SearchReq searchReq =
|
||||
new ModelTrainMngDto.SearchReq(status, modelNo, page, size);
|
||||
return ApiResponseDto.ok(modelTrainMngService.getModelList(searchReq));
|
||||
}
|
||||
|
||||
|
||||
@@ -107,6 +107,7 @@ public class ModelTrainMngDto {
|
||||
public static class SearchReq {
|
||||
|
||||
private String status;
|
||||
private String modelNo;
|
||||
// 페이징 파라미터
|
||||
private int page = 0;
|
||||
private int size = 20;
|
||||
@@ -124,7 +125,7 @@ public class ModelTrainMngDto {
|
||||
public static class AddReq {
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "모델 종류 M1, M2, M3", example = "M1")
|
||||
@Schema(description = "모델 종류 G1, G2, G3", example = "G1")
|
||||
private String modelNo;
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -53,7 +53,6 @@ public class ModelTrainMngService {
|
||||
HyperParam hyperParam = req.getHyperParam();
|
||||
HyperParamDto.Basic hyper = new HyperParamDto.Basic();
|
||||
|
||||
/** OPTIMIZED(최적화 파라미터), EXISTING(기존 파라미터), NEW(신규 파라미터) * */
|
||||
if (HyperParamSelectType.NEW.getId().equals(req.getHyperParamType())) {
|
||||
// 하이퍼파라미터 등록
|
||||
hyper = hyperParamCoreService.createHyperParam(hyperParam);
|
||||
|
||||
Reference in New Issue
Block a user