Package statechum.analysis.learning

Examples of statechum.analysis.learning.PairScore


 
  @Test
  public void testSplitSetOfPairsIntoRightAndWrong6()
  {
    Collection<PairScore> correctPairs = new LinkedList<PairScore>(), wrongPairs = new LinkedList<PairScore>();
    PairScore pairA = new PairScore(tentativeGraph.findVertex("C1"), tentativeGraph.findVertex("A2"),0,0),pairB=new PairScore(tentativeGraph.findVertex("A1"), tentativeGraph.findVertex("C2"),0,0),
        pairC=new PairScore(tentativeGraph.findVertex("A1"), tentativeGraph.findVertex("B2"),0,0);
   
    int outcome = PairQualityLearner.SplitSetOfPairsIntoRightAndWrong(tentativeGraph, correctGraph, Arrays.asList(new PairScore[]{
        pairC,pairB,pairB,pairA
    }), correctPairs, wrongPairs);
    Assert.assertEquals(JUConstants.intUNKNOWN, outcome);
View Full Code Here


 
  @Test
  public void testBuildSetsForComparators2()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("A1")),1,0);
    List<PairScore> pairs = Arrays.asList(new PairScore[]{
        pairA
    });
    classifier.buildSetsForComparatorsThatDoNotDependOnFiltering(pairs, tentativeGraph);
View Full Code Here

 
  @Test
  public void testBuildSetsForComparators3()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0)
        ;
    List<PairScore> pairs = Arrays.asList(new PairScore[]{
        pairA
    });
    classifier.buildSetsForComparatorsThatDoNotDependOnFiltering(pairs, tentativeGraph);
View Full Code Here

 
  @Test
  public void testBuildSetsForComparators4()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairB = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A2")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0)
        ;
    List<PairScore> pairs = Arrays.asList(new PairScore[]{
        pairA,pairB
    });
    classifier.buildSetsForComparatorsThatDoNotDependOnFiltering(pairs, tentativeGraph);
View Full Code Here

 
  @Test
  public void testBuildSetsForComparators5()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairB = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A2")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairC = new PairScore(tentativeGraph.findVertex(VertexID.parseID("C1")),tentativeGraph.findVertex(VertexID.parseID("C2")),2,0) // the score of 2 ensures it will be at the end of the keySet
        ;
    List<PairScore> pairs = Arrays.asList(new PairScore[]{
        pairA,pairB,pairC
    });
    classifier.buildSetsForComparatorsThatDoNotDependOnFiltering(pairs, tentativeGraph);
View Full Code Here

 
  @Test
  public void testBuildSetsForComparators6()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairB = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A2")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairC = new PairScore(tentativeGraph.findVertex(VertexID.parseID("C1")),tentativeGraph.findVertex(VertexID.parseID("C2")),2,0) // the score of 2 ensures it will be at the end of the keySet
        ;
    List<PairScore> pairs = Arrays.asList(new PairScore[]{
        pairA,pairB,pairC,pairC,pairC,pairC // we add the same pair a few times and it then seems to buildSetsForComparators that it has a few alternatives
    });
    classifier.buildSetsForComparatorsThatDoNotDependOnFiltering(pairs, tentativeGraph);
View Full Code Here

 
  /** Adjacency in Blue rather than in Red should not be considered */
  public void testBuildSetsForComparators7()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairB = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B2")),2,0) // the score of 2 ensures it will be at the end of the keySet
        ;
    List<PairScore> pairs = Arrays.asList(new PairScore[]{
        pairA,pairB
    });
    classifier.buildSetsForComparatorsThatDoNotDependOnFiltering(pairs, tentativeGraph);
View Full Code Here

 
  @Test
  public void testComputeAverageAndSD0()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0);
    List<PairRank> assessors = new ArrayList<PairRank>(20);
    assessors.add(classifier.new PairRank("conventional score")
    {
      @Override
      public long getValue(PairScore pair) {
View Full Code Here

 
  @Test
  public void testComputeAverageAndSD1()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairB = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A2")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairC = new PairScore(tentativeGraph.findVertex(VertexID.parseID("C1")),tentativeGraph.findVertex(VertexID.parseID("C2")),2,0) // the score of 2 ensures it will be at the end of the keySet
        ;
    List<PairRank> assessors = new ArrayList<PairRank>(20);
    assessors.add(classifier.new PairRank("conventional score")
    {
      @Override
View Full Code Here

  @Test
  public void testComputeAverageAndSD1_absolute()
  {
    WekaDataCollector classifier = new WekaDataCollector();
    PairScore pairA = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A1")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairB = new PairScore(tentativeGraph.findVertex(VertexID.parseID("A2")),tentativeGraph.findVertex(VertexID.parseID("B1")),1,0),
        pairC = new PairScore(tentativeGraph.findVertex(VertexID.parseID("C1")),tentativeGraph.findVertex(VertexID.parseID("C2")),2,0) // the score of 2 ensures it will be at the end of the keySet
        ;
    List<PairRank> assessors = new ArrayList<PairRank>(20);
    assessors.add(classifier.new PairRank("conventional score")
    {
      @Override
View Full Code Here

TOP

Related Classes of statechum.analysis.learning.PairScore

Copyright © 2018 www.massapicom. 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.