|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
calhoun.util.AbstractTestCase
calhoun.analysis.crf.test.ReferenceBasePredictorTest
public class ReferenceBasePredictorTest
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 |
|---|
public ReferenceBasePredictorTest()
| Method Detail |
|---|
public void testLogProbLookupEasy()
throws java.lang.Exception
java.lang.Exception
public void testLogProbLookupHard()
throws java.lang.Exception
java.lang.Exception
public void testReferenceBasePredictor()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||