|
@@ -1,5 +1,6 @@
|
|
|
package org.algorithm.test;
|
|
|
|
|
|
+import org.algorithm.core.neural.DiagnosisPredictExecutor;
|
|
|
import org.algorithm.core.neural.SymptomPredictExecutor;
|
|
|
import org.algorithm.util.Utils;
|
|
|
|
|
@@ -13,9 +14,9 @@ public class TensorflowExcutorTest {
|
|
|
|
|
|
//TODO:change VitalPredictExcutor to test different executors
|
|
|
// VitalPredictExecutor excutor = new VitalPredictExecutor();
|
|
|
- SymptomPredictExecutor excutor = new SymptomPredictExecutor();
|
|
|
+// SymptomPredictExecutor excutor = new SymptomPredictExecutor();
|
|
|
// LisPredictExecutor excutor = new LisPredictExecutor();
|
|
|
-// DiagnosisPredictExecutor excutor = new DiagnosisPredictExecutor();
|
|
|
+ DiagnosisPredictExecutor excutor = new DiagnosisPredictExecutor();
|
|
|
// PacsPredictExecutor excutor = new PacsPredictExecutor();
|
|
|
// DiagnosisToLisExecutor excutor = new DiagnosisToLisExecutor();
|
|
|
// DiagnosisToPacsExecutor excutor = new DiagnosisToPacsExecutor();
|
|
@@ -75,7 +76,7 @@ public class TensorflowExcutorTest {
|
|
|
featureValues.put("age", "34");
|
|
|
featureValues.put("negative", "有");
|
|
|
featureValues.put("sn", "0");
|
|
|
- aMap.put("踝关节疼痛", featureValues);
|
|
|
+ aMap.put("左上腹持续性刀割样疼痛", featureValues);
|
|
|
// aMap.put("心悸", featureValues);
|
|
|
// aMap.put("气急", featureValues);
|
|
|
// aMap.put("头痛", featureValues);
|
|
@@ -87,7 +88,7 @@ public class TensorflowExcutorTest {
|
|
|
// for (Entry<String, Float> entry : result.entrySet()) {
|
|
|
// System.out.println(entry.getKey() + " : " + entry.getValue());
|
|
|
// }
|
|
|
-// System.out.println(result);
|
|
|
+ System.out.println(result);
|
|
|
Utils.top_k(10, result);
|
|
|
|
|
|
}
|