Package cc.mallet.classify.tests
Class TestNaiveBayes
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- cc.mallet.classify.tests.TestNaiveBayes
-
- All Implemented Interfaces:
junit.framework.Test
public class TestNaiveBayes extends junit.framework.TestCase
-
-
Constructor Summary
Constructors Constructor Description TestNaiveBayes(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
protected void
setUp()
void
testEmptyStringBug()
void
testIncrementallyTrained()
void
testIncrementallyTrainedGrowingAlphabets()
void
testNonTrained()
void
testRandomTrained()
void
testStringTrained()
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
-
-
-
-
Method Detail
-
testNonTrained
public void testNonTrained()
-
testStringTrained
public void testStringTrained()
-
testRandomTrained
public void testRandomTrained()
-
testIncrementallyTrainedGrowingAlphabets
public void testIncrementallyTrainedGrowingAlphabets()
-
testIncrementallyTrained
public void testIncrementallyTrained()
-
testEmptyStringBug
public void testEmptyStringBug()
-
setUp
protected void setUp()
- Overrides:
setUp
in classjunit.framework.TestCase
-
main
public static void main(java.lang.String[] args)
-
-