Commit b834a96a authored by linpeiqin's avatar linpeiqin

修改一些小BUG

parent 382a9994
...@@ -95,11 +95,12 @@ public class ModelEstimateController { ...@@ -95,11 +95,12 @@ public class ModelEstimateController {
ModelEstimate modelEstimate = this.modelEstimateService.getById(taskId); ModelEstimate modelEstimate = this.modelEstimateService.getById(taskId);
ModelVersion modelVersion = this.modelVersionService.getById(modelEstimate.getModelVersionId()); ModelVersion modelVersion = this.modelVersionService.getById(modelEstimate.getModelVersionId());
DatasetVersion datasetVersion = this.datasetVersionService.getById(modelEstimate.getDatasetVersionId()); DatasetVersion datasetVersion = this.datasetVersionService.getById(modelEstimate.getDatasetVersionId());
ModelManage modelManage = this.modelManageService.getById(modelVersion.getModelId());
JSONObject jsonObject = (JSONObject) JSON.parse(modelEstimate.getConfiguration()); JSONObject jsonObject = (JSONObject) JSON.parse(modelEstimate.getConfiguration());
JSONArray datasetVersionNames = new JSONArray();
datasetVersionNames.add(datasetVersion.getVersionName());
JSONArray array = new JSONArray(); JSONArray array = new JSONArray();
array.add("zh"); array.add("zh");
array.add(modelManage.getModelName()); array.add(modelVersion.getVersionName());
array.add(modelVersion.getModelUrl()); array.add(modelVersion.getModelUrl());
array.add(""); array.add("");
array.add(new JSONArray()); array.add(new JSONArray());
...@@ -110,7 +111,7 @@ public class ModelEstimateController { ...@@ -110,7 +111,7 @@ public class ModelEstimateController {
array.add(false); array.add(false);
array.add("none"); array.add("none");
array.add(pythonConfig.getDatasetFileMenu()); array.add(pythonConfig.getDatasetFileMenu());
array.add(datasetVersion.getVersionName()); array.add(datasetVersionNames);
array.add(jsonObject.get("truncationLength")); array.add(jsonObject.get("truncationLength"));
array.add(jsonObject.get("maximumSampleSize")); array.add(jsonObject.get("maximumSampleSize"));
array.add(jsonObject.get("batchSize")); array.add(jsonObject.get("batchSize"));
......
...@@ -130,14 +130,12 @@ public class TuningRunController { ...@@ -130,14 +130,12 @@ public class TuningRunController {
TuningRun tuningRun = this.tuningRunService.getById(runId); TuningRun tuningRun = this.tuningRunService.getById(runId);
ModelVersion modelVersion = this.modelVersionService.getById(tuningRun.getModelVersionId()); ModelVersion modelVersion = this.modelVersionService.getById(tuningRun.getModelVersionId());
DatasetVersion datasetVersion = this.datasetVersionService.getById(tuningRun.getDatasetVersionId()); 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()); JSONObject jsonObject = (JSONObject) JSON.parse(tuningRun.getConfiguration());
JSONArray datasetVersionNames = new JSONArray(); JSONArray datasetVersionNames = new JSONArray();
datasetVersionNames.add(datasetManage.getDatasetName() + "_V" + datasetVersion.getDatasetVersion()); datasetVersionNames.add(datasetVersion.getVersionName());
JSONArray array = new JSONArray(); JSONArray array = new JSONArray();
array.add("zh"); array.add("zh");
array.add(modelManage.getModelName()); array.add(modelVersion.getVersionName());
array.add(modelVersion.getModelUrl()); array.add(modelVersion.getModelUrl());
array.add(tuningRun.getTrainMethod()); array.add(tuningRun.getTrainMethod());
array.add(new JSONArray()); array.add(new JSONArray());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment