diff --git a/ruoyi-modules/management-platform/pom.xml b/ruoyi-modules/management-platform/pom.xml
index e7c559fd..ba689d0e 100644
--- a/ruoyi-modules/management-platform/pom.xml
+++ b/ruoyi-modules/management-platform/pom.xml
@@ -242,7 +242,6 @@
jedis
3.6.0
-
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/aim/AimController.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/aim/AimController.java
index bc800545..c61fb789 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/aim/AimController.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/aim/AimController.java
@@ -24,15 +24,15 @@ public class AimController extends BaseController {
@GetMapping("/getExpTrainInfos/{experiment_id}")
@ApiOperation("获取当前实验的模型训练指标信息")
@ApiResponse
- public GenericsAjaxResult> getExpTrainInfos(@PathVariable("experiment_id") Integer experimentId, @RequestParam("run_id") String runId) throws Exception {
- return genericsSuccess(aimService.getExpTrainInfos(experimentId, runId));
+ public GenericsAjaxResult> getExpTrainInfos(@PathVariable("experiment_id") Integer experimentId) throws Exception {
+ return genericsSuccess(aimService.getExpTrainInfos(experimentId));
}
@GetMapping("/getExpEvaluateInfos/{experiment_id}")
@ApiOperation("获取当前实验的模型推理指标信息")
@ApiResponse
- public GenericsAjaxResult> getExpEvaluateInfos(@PathVariable("experiment_id") Integer experimentId, @RequestParam("run_id") String runId) throws Exception {
- return genericsSuccess(aimService.getExpEvaluateInfos(experimentId, runId));
+ public GenericsAjaxResult> getExpEvaluateInfos(@PathVariable("experiment_id") Integer experimentId) throws Exception {
+ return genericsSuccess(aimService.getExpEvaluateInfos(experimentId));
}
@PostMapping("/getExpMetrics")
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/AimService.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/AimService.java
index c7f91d8f..9f3868f5 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/AimService.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/AimService.java
@@ -6,9 +6,11 @@ import java.util.List;
public interface AimService {
- List getExpTrainInfos(Integer experimentId, String runId) throws Exception;
+ List getExpTrainInfos(Integer experimentId) throws Exception;
- List getExpEvaluateInfos(Integer experimentId, String runId) throws Exception;
+ List getExpTrainInfos1(boolean isTrain, Integer experimentId, String runId) throws Exception;
+
+ List getExpEvaluateInfos(Integer experimentId) throws Exception;
String getExpMetrics(List runIds) throws Exception;
}
diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/AimServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/AimServiceImpl.java
index 3db73a01..1b754404 100644
--- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/AimServiceImpl.java
+++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/AimServiceImpl.java
@@ -30,13 +30,13 @@ public class AimServiceImpl implements AimService {
private NewHttpUtils httpUtils;
@Override
- public List getExpTrainInfos(Integer experimentId, String runId) throws Exception {
- return getAimRunInfos(true, experimentId, runId);
+ public List getExpTrainInfos(Integer experimentId) throws Exception {
+ return getAimRunInfos(true, experimentId);
}
@Override
- public List getExpEvaluateInfos(Integer experimentId, String runId) throws Exception {
- return getAimRunInfos(false, experimentId, runId);
+ public List getExpEvaluateInfos(Integer experimentId) throws Exception {
+ return getAimRunInfos(false, experimentId);
}
@Override
@@ -45,13 +45,12 @@ public class AimServiceImpl implements AimService {
return aimUrl + "/metrics?select=" + decode;
}
- private List getAimRunInfos(boolean isTrain, Integer experimentId, String runId) throws Exception {
-// String experimentName = "experiment-" + experimentId + "-train";
-// if (!isTrain) {
-// experimentName = "experiment-" + experimentId + "-evaluate";
-// }
-// String encodedUrlString = URLEncoder.encode("run.experiment==\"" + experimentName + "\"", "UTF-8");
- String encodedUrlString = URLEncoder.encode("run.id==\"" + runId + "\"", "UTF-8");
+ private List getAimRunInfos(boolean isTrain, Integer experimentId) throws Exception {
+ String experimentName = "experiment-" + experimentId + "-train";
+ if (!isTrain) {
+ experimentName = "experiment-" + experimentId + "-evaluate";
+ }
+ String encodedUrlString = URLEncoder.encode("run.experiment==\"" + experimentName + "\"", "UTF-8");
String url = aimProxyUrl + "/api/runs/search/run?query=" + encodedUrlString;
String s = httpUtils.sendGet(url, null);
List