calhoun.analysis.crf.test
Class ReferenceBasePredictorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by calhoun.util.AbstractTestCase
              extended by calhoun.analysis.crf.test.ReferenceBasePredictorTest
All Implemented Interfaces:
junit.framework.Test

public class ReferenceBasePredictorTest
extends AbstractTestCase

Tests that CRF is working with valid probabilities - the sum of all possible labelings is 1. Test that the code to walk through only the valid paths works correctly. Uses a two state model that disallows transitions to self. 010101... or 101010... are the only allowed paths.


Constructor Summary
ReferenceBasePredictorTest()
           
 
Method Summary
 void testLogProbLookupEasy()
           
 void testLogProbLookupHard()
           
 void testReferenceBasePredictor()
           
 
Methods inherited from class calhoun.util.AbstractTestCase
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertBeginsWith, assertEndsWith, assertEquals, assertFilesMatch, assertFlatFileRecordsMatch, assertStringEquals, assertStringEquals, assertXmlFilesMatch, runBare
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceBasePredictorTest

public ReferenceBasePredictorTest()
Method Detail

testLogProbLookupEasy

public void testLogProbLookupEasy()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testLogProbLookupHard

public void testLogProbLookupHard()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testReferenceBasePredictor

public void testReferenceBasePredictor()
                                throws java.lang.Exception
Throws:
java.lang.Exception