Examples of BCR()


Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

    },mainConfiguration,converter), from, to);
    Assert.assertEquals(2./3.,matrix.getPrecision(),Configuration.fpAccuracy);
    Assert.assertEquals(1,matrix.getRecall(),Configuration.fpAccuracy);
    Assert.assertEquals(0.8,matrix.fMeasure(),Configuration.fpAccuracy);
    Assert.assertEquals(0.5,matrix.getSpecificity(),Configuration.fpAccuracy);
    Assert.assertEquals(0.75,matrix.BCR(),Configuration.fpAccuracy);
  }
 
}
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

          RPNIBlueFringe learner = new RPNIBlueFringe(learnerConfig,choice);
            final LearnerGraph actualAutomaton = learner.learn(collectionOfTraces.get(UAVAllSeeds).tracesForUAVandFrame.get(UAVAllSeeds).get(frame),true);
            long tmFinished = new Date().getTime();
            System.out.println("Learning complete, "+((tmFinished-tmStarted)/1000)+" sec");tmStarted = tmFinished;
            ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference, actualAutomaton);
            System.out.println("BCR for frame : "+frame+" = "+matrix.BCR()+", precision: "+matrix.getPrecision()+", recall: "+matrix.getRecall()+", specificity: "+matrix.getSpecificity()+", matrix: "+matrix+", log of choices: "+learner.logOfChoiceNumber);
            //Visualiser.updateFrame(actualAutomaton, graphReference);
            /*
            boolean foundSame = false;
            for(LearnerGraph g:graphs)
              if (WMethod.checkM(g, actualAutomaton) != null)
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

        gd.computeGD(graphReference, actualAutomaton, ExperimentRunner.getCpuNumber(),counter,learnerConfig);
       
        int referenceEdges = graphReference.pathroutines.countEdges(), actualEdges = actualAutomaton.pathroutines.countEdges();
        System.out.println(counter.getRemoved()+","+counter.getAdded()+", difference is "+(((double)referenceEdges-counter.getRemoved())/referenceEdges+((double)actualEdges-counter.getAdded())/actualEdges)/2);
       
        uas_S.add(frame,matrix.BCR());
        //uas_S.drawInteractive(gr);
       }
       
        int count=0;
        for(LearnerGraph g:graphs)
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

            public void run() {
              for(int choice:SelectionChoices)
              {
                ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference,
                    new RPNIBlueFringe(learnerConfig,choice).learn(collectionOfTraces.get(UAVAllSeeds).tracesForUAVandFrame.get(UAVAllSeeds).get(frame),true));
                uas_outcome.add(new Pair<Integer,String>(frame,"S"),matrix.BCR());
                uas_S.add(frame,matrix.BCR());
              }
            }
           
          };
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

              for(int choice:SelectionChoices)
              {
                ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference,
                    new RPNIBlueFringe(learnerConfig,choice).learn(collectionOfTraces.get(UAVAllSeeds).tracesForUAVandFrame.get(UAVAllSeeds).get(frame),true));
                uas_outcome.add(new Pair<Integer,String>(frame,"S"),matrix.BCR());
                uas_S.add(frame,matrix.BCR());
              }
            }
           
          };
          if (threadNumber > 1) outcomes.add(executorService.submit(interactiveRunner));else interactiveRunner.run();
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

               
                for(int choice:SelectionChoices)
                {
                  ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference,
                      new RPNIBlueFringe(learnerConfig,choice).learn(tracesForThisSeed.tracesForUAVandFrame.get(UAVAll).get(frame),true));
                  uas_outcome.add(new Pair<Integer,String>(frame,"A"),matrix.BCR());
                  uas_A.add(frame,matrix.BCR());
                }
              }
             
            };
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

                for(int choice:SelectionChoices)
                {
                  ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference,
                      new RPNIBlueFringe(learnerConfig,choice).learn(tracesForThisSeed.tracesForUAVandFrame.get(UAVAll).get(frame),true));
                  uas_outcome.add(new Pair<Integer,String>(frame,"A"),matrix.BCR());
                  uas_A.add(frame,matrix.BCR());
                }
              }
             
            };
            if (threadNumber > 1) outcomes.add(executorService.submit(interactiveRunner));else interactiveRunner.run();
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

                  public void run() {
                    for(int choice:SelectionChoices)
                    {
                      ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference,
                          new RPNIBlueFringe(learnerConfig,choice).learn(collectionOfTraces.get(seed).tracesForUAVandFrame.get(UAV).get(frame),true));
                      uas_outcome.add(new Pair<Integer,String>(frame,"U"),matrix.BCR());
                      uas_U.add(frame,matrix.BCR());
                    }
                  }
                 
                };
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

                    for(int choice:SelectionChoices)
                    {
                      ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference,
                          new RPNIBlueFringe(learnerConfig,choice).learn(collectionOfTraces.get(seed).tracesForUAVandFrame.get(UAV).get(frame),true));
                      uas_outcome.add(new Pair<Integer,String>(frame,"U"),matrix.BCR());
                      uas_U.add(frame,matrix.BCR());
                    }
                  }
                 
                };
                if (threadNumber > 1) outcomes.add(executorService.submit(interactiveRunner));else interactiveRunner.run();
View Full Code Here

Examples of statechum.analysis.learning.PrecisionRecall.ConfusionMatrix.BCR()

          public void run() {
            for(int choice:SelectionChoices)
            {
              Configuration tmpConf = learnerConfig.copy();tmpConf.setGeneralisationThreshold(arg);
              ConfusionMatrix matrix = DiffExperiments.classify(wMethod, graphReference,new RPNIBlueFringe(tmpConf,choice).learn(collectionOfTraces.get(UAVAllSeeds).tracesForUAVandFrame.get(UAVAllSeeds).get(maxFrameNumber),false));
              uas_threshold.add(arg, matrix.BCR());
            }
          }
         
        };
        if (threadNumber > 1)
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.