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
b834a96a
Commit
b834a96a
authored
Dec 07, 2023
by
linpeiqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一些小BUG
parent
382a9994
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
ModelEstimateController.java
...yice/webadmin/app/controller/ModelEstimateController.java
+4
-3
TuningRunController.java
...com/yice/webadmin/app/controller/TuningRunController.java
+2
-4
No files found.
application-webadmin/src/main/java/com/yice/webadmin/app/controller/ModelEstimateController.java
View file @
b834a96a
...
...
@@ -95,11 +95,12 @@ public class ModelEstimateController {
ModelEstimate
modelEstimate
=
this
.
modelEstimateService
.
getById
(
taskId
);
ModelVersion
modelVersion
=
this
.
modelVersionService
.
getById
(
modelEstimate
.
getModelVersionId
());
DatasetVersion
datasetVersion
=
this
.
datasetVersionService
.
getById
(
modelEstimate
.
getDatasetVersionId
());
ModelManage
modelManage
=
this
.
modelManageService
.
getById
(
modelVersion
.
getModelId
());
JSONObject
jsonObject
=
(
JSONObject
)
JSON
.
parse
(
modelEstimate
.
getConfiguration
());
JSONArray
datasetVersionNames
=
new
JSONArray
();
datasetVersionNames
.
add
(
datasetVersion
.
getVersionName
());
JSONArray
array
=
new
JSONArray
();
array
.
add
(
"zh"
);
array
.
add
(
model
Manage
.
getModel
Name
());
array
.
add
(
model
Version
.
getVersion
Name
());
array
.
add
(
modelVersion
.
getModelUrl
());
array
.
add
(
""
);
array
.
add
(
new
JSONArray
());
...
...
@@ -110,7 +111,7 @@ public class ModelEstimateController {
array
.
add
(
false
);
array
.
add
(
"none"
);
array
.
add
(
pythonConfig
.
getDatasetFileMenu
());
array
.
add
(
datasetVersion
.
getVersionName
()
);
array
.
add
(
datasetVersion
Names
);
array
.
add
(
jsonObject
.
get
(
"truncationLength"
));
array
.
add
(
jsonObject
.
get
(
"maximumSampleSize"
));
array
.
add
(
jsonObject
.
get
(
"batchSize"
));
...
...
application-webadmin/src/main/java/com/yice/webadmin/app/controller/TuningRunController.java
View file @
b834a96a
...
...
@@ -130,14 +130,12 @@ public class TuningRunController {
TuningRun
tuningRun
=
this
.
tuningRunService
.
getById
(
runId
);
ModelVersion
modelVersion
=
this
.
modelVersionService
.
getById
(
tuningRun
.
getModelVersionId
());
DatasetVersion
datasetVersion
=
this
.
datasetVersionService
.
getById
(
tuningRun
.
getDatasetVersionId
());
DatasetManage
datasetManage
=
this
.
datasetManageService
.
getById
(
datasetVersion
.
getDatasetId
());
ModelManage
modelManage
=
this
.
modelManageService
.
getById
(
modelVersion
.
getModelId
());
JSONObject
jsonObject
=
(
JSONObject
)
JSON
.
parse
(
tuningRun
.
getConfiguration
());
JSONArray
datasetVersionNames
=
new
JSONArray
();
datasetVersionNames
.
add
(
dataset
Manage
.
getDatasetName
()
+
"_V"
+
datasetVersion
.
getDatasetVersion
());
datasetVersionNames
.
add
(
dataset
Version
.
getVersionName
());
JSONArray
array
=
new
JSONArray
();
array
.
add
(
"zh"
);
array
.
add
(
model
Manage
.
getModel
Name
());
array
.
add
(
model
Version
.
getVersion
Name
());
array
.
add
(
modelVersion
.
getModelUrl
());
array
.
add
(
tuningRun
.
getTrainMethod
());
array
.
add
(
new
JSONArray
());
...
...
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