Examples of cross()


Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

 
  @Test
  public final void test_sequenceSet4_1() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a","b","c"}
    })));
    vertifyPTA(en, 1, new String[][] {
        new String[] {"a","b","c"}
    });
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

      {
        return !rejectAllStates.booleanValue();
      }
    });
    SequenceSet initSeq = allSequences.new SequenceSet();initSeq.setIdentity();
    initSeq.cross(plusStrings);statesAccept.getAndSet(false);initSeq.cross(minusStrings);
   
    return allSequences;
  }

  /** Checks if a PTA constructed is consistent with provided sequences. */
 
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

      {
        return !rejectAllStates.booleanValue();
      }
    });
    SequenceSet initSeq = allSequences.new SequenceSet();initSeq.setIdentity();
    initSeq.cross(plusStrings);statesAccept.getAndSet(false);initSeq.cross(minusStrings);
   
    return allSequences;
  }

  /** Checks if a PTA constructed is consistent with provided sequences. */
 
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

            }
           
          });
        }
      };
      SequenceSet minusInit = sOrigMinus.new SequenceSet();minusInit.setIdentity();minusInit.cross(minusTrainingSet);
      int totalLenOrig = 0, origNumber=0;
      for(List<String> seq:minusTrainingSet)
      {
        assert seq.size() > 1;
        assert graph.getVertex(seq) == null;// the seq is negative indeed
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

      learned = learn(l,sMinus);
      //learned = new LearnerGraph(config);
     
      PTASequenceEngine testSetEngine = new PTA_FSMStructure(graph);
      SequenceSet ptaTestSet = testSetEngine.new SequenceSet();ptaTestSet.setIdentity();
      ptaTestSet.cross(graph.wmethod.getFullTestSet(1));

      PTA_computePrecisionRecall precRec = new PTA_computePrecisionRecall(learned);
     
      PosNegPrecisionRecall ptaPR = precRec.crossWith(sMinus);
      PosNegPrecisionRecall prNeg = precRec.crossWith(testSetEngine);
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

    LearnerGraph learned = new LearnerGraph(learningOutcome,config);
    PTA_computePrecisionRecall precRec = new PTA_computePrecisionRecall(learned);
    PTASequenceEngine engine = new PTA_FSMStructure(graph);
    precRec.crossWith(sMinus);
    SequenceSet ptaTestSet = engine.new SequenceSet();ptaTestSet.setIdentity();
    ptaTestSet = ptaTestSet.cross(graph.wmethod.getFullTestSet(1));
    PosNegPrecisionRecall prNeg = precRec.crossWith(engine);
    System.out.println("pre: "+prNeg.getPrecision()+" rec: "+prNeg.getRecall());
    /*
    LearnerGraph.testMode=true;
    StatePair p = new StatePair(graph.findVertex("P1062"),graph.findVertex("P1153"));
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

      LearnerGraph learned = learn(recorder,sMinus);
      PTA_computePrecisionRecall precRec = new PTA_computePrecisionRecall(learned);
      PTASequenceEngine engine = new PTA_FSMStructure(graph);
      PosNegPrecisionRecall ptaPR = precRec.crossWith(sMinus);
      SequenceSet ptaTestSet = engine.new SequenceSet();ptaTestSet.setIdentity();
      ptaTestSet = ptaTestSet.cross(graph.wmethod.getFullTestSet(1));
      PosNegPrecisionRecall prNeg = precRec.crossWith(engine);
     
      // Columns 3 and 4
      result = result+prNeg.precision+FS+prNeg.recall;
     
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

                Set<List<Label>> traceData = traces.get(uav).get(earlierFrame);
               
                if (traceData != null)
                {
                  SequenceSet initSeq = traceDetailsUAV.new SequenceSet();initSeq.setIdentity();((Automaton)traceDetailsUAV.getFSM()).setAccept(isAccept);
                  initSeq.cross(traceData);
                }
               }
            }
          }
        }
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

      {
        return !rejectAllStates.booleanValue();
      }
    });
    SequenceSet initSeq = allSequences.new SequenceSet();initSeq.setIdentity();
    initSeq.cross(plusStrings);statesAccept.getAndSet(false);initSeq.cross(minusStrings);
   
    return allSequences;
  }

  /** Checks if a PTA constructed is consistent with provided sequences. */
 
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

      {
        return !rejectAllStates.booleanValue();
      }
    });
    SequenceSet initSeq = allSequences.new SequenceSet();initSeq.setIdentity();
    initSeq.cross(plusStrings);statesAccept.getAndSet(false);initSeq.cross(minusStrings);
   
    return allSequences;
  }

  /** Checks if a PTA constructed is consistent with provided sequences. */
 
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.