Examples of UDB2SDB


Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

  public void test_DMP(){
    System.out.println("test_DMP");
    long time = System.nanoTime();
   
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB()
    uToS.convert(pn);
    long time1 = (System.nanoTime()- time);
    System.out.println("Time for converting from unbbayes to cps:  " + (System.nanoTime()- time) + "  nano sec");
   
     
    long time2 = System.nanoTime();
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

  public void run() {  
    for (IInferenceAlgorithmListener listener : this.getInferenceAlgorithmListeners()) {
      listener.onBeforeRun(this);
    }
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB();
    SDB2UDB sToU = new SDB2UDB();
   
    ProbabilisticNetwork pn = (ProbabilisticNetwork)this.getNetwork();
   
    //save network to see queried result
    //saveNetworkFile(new File(pn.getName()+".xml"), pn);
   
    uToS.convert(pn);
    //EDB.This().get("ROOT").print("");
    CPSCompilerMain.This().compile("run(DMP);")
    ProbabilisticNetwork newNet = sToU.convert(EDB.This().get("ROOT.ENGINES.DMP.NODES"));
    this.setNetwork(newNet);
    iteration_size = EDB.This().get("ROOT.ENGINES.DMP.ITERATION_SIZE").getDataByDouble();
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

    }
    //this.run();
    SingleEntityNetwork newPn = (SingleEntityNetwork)getNetwork();
   
    // insert evidence 
    UDB2SDB uToS = new UDB2SDB();
    SDB2UDB sToU = new SDB2UDB();
    uToS.setEvidences(newPn)
    
    CPSCompilerMain.This().compile("run(DMP);");
    sToU.update(EDB.This().get("ROOT.ENGINES.DMP.NODES"), (ProbabilisticNetwork)this.getNetwork());
   
    iteration_size = EDB.This().get("ROOT.ENGINES.DMP.ITERATION_SIZE").getDataByDouble();
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

    }
  }
 
  public void test_DMP(){ 
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB()
    uToS.convert(pn);
    CPSCompilerMain.This().compile("run(DMP);");
    // isShipOfInterest_ship1:
        //  BEL.[ True ][ False ][ 0.9499952504365194 ]
        //  BEL.[ True ][ 0.05000474956348062 ]
   }
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

        //  BEL.[ True ][ 0.05000474956348062 ]
   }
    
  public void test_DMP_SOI(){ 
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB()
    uToS.convert(pn);
    CPSCompilerMain.This().compile(
                     "defineEvidence( hasResponsiveAIS_ship1, False );"+
                     "defineEvidence( hasWeaponVisible_ship1, True );"+
                     "defineEvidence( isJettisoningCargo_ship1, False );"+
                     "defineEvidence( hasResponsiveRadio_ship1, False );"+
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

        //   BEL.[ True ][ 0.9999041429752016 ]
   }
 
  public void test_DMP_NOT_SOI(){ 
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB()
    uToS.convert(pn);
    CPSCompilerMain.This().compile(
                     "defineEvidence( hasResponsiveAIS_ship1, True );"+
                     "defineEvidence( hasWeaponVisible_ship1, False );"+
                     "defineEvidence( isJettisoningCargo_ship1, True );"+
                     "defineEvidence( hasResponsiveRadio_ship1, True );"+
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

  long time_dmp = 0;
  public void test_DMP(){
    System.out.println("*** DMP ***");
    long time = System.nanoTime();
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB()
    uToS.convert(pn)
    CPSCompilerMain.This().compile(//"defineEvidence( isShipOfInterest__ship3, true );"+
                    //"defineEvidence( Z, 3 );"+
                    //"defineEvidence( A, a1 );"+
                     "defineEvidence(hasWeaponVisible_ship1, True);"+
                     "defineEvidence(isJettisoningCargo_ship1, True);"+
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.converter.UDB2SDB

  public void test_DMP(Map<String, String> mapEvindeces){
    System.out.println("*** DMP ***");
    long time = System.nanoTime();
   
    CPSCompilerMain.This().InitCompiler();
    UDB2SDB uToS = new UDB2SDB()
    uToS.convert(continuousNet);
       
    String ev = "";
    for (String key : mapEvindeces.keySet()){
      String e = mapEvindeces.get(key);
      ev += "defineEvidence("+key+", " + e +");  ";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.