|
|
|
@@ -291,9 +291,19 @@ public class ActiveLearnInsServiceImpl implements ActiveLearnInsService { |
|
|
|
return aimUrl + "/metrics?select=" + decode; |
|
|
|
} |
|
|
|
|
|
|
|
public void getTrialList(ActiveLearnIns ins) { |
|
|
|
public void getTrialList(ActiveLearnIns ins) throws IOException { |
|
|
|
String directoryPath = ins.getResultPath(); |
|
|
|
ins.setResultPath(endpoint + "/" + directoryPath + "/final_checkpoint/final_model_weights.pth"); |
|
|
|
switch ((String) JsonUtils.jsonToMap(ins.getParam()).get("framework_type")) { |
|
|
|
case Constant.AL_PYTORCH: { |
|
|
|
ins.setResultPath(endpoint + "/" + directoryPath + "/final_checkpoint/final_model_weights.pth"); |
|
|
|
} |
|
|
|
case Constant.AL_SKLEARN: { |
|
|
|
ins.setResultPath(endpoint + "/" + directoryPath + "/final_checkpoint/final_model.joblib"); |
|
|
|
} |
|
|
|
case Constant.AL_KERAS: { |
|
|
|
ins.setResultPath(endpoint + "/" + directoryPath + "/final_checkpoint/model.h5"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
String bucketName = directoryPath.substring(0, directoryPath.indexOf("/")); |
|
|
|
|