|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.bwaldvogel.liblinear.LinearTest
public class LinearTest
| Constructor Summary | |
|---|---|
LinearTest()
|
|
| Method Summary | |
|---|---|
static de.bwaldvogel.liblinear.Model |
createRandomModel()
|
static de.bwaldvogel.liblinear.Problem |
createRandomProblem(int numClasses)
|
static void |
disableDebugOutput()
|
void |
testAtof()
|
void |
testAtofInvalidData()
|
void |
testAtoi()
|
void |
testAtoiInvalidData()
|
void |
testAtoiInvalidData2()
|
void |
testAtoiInvalidData3()
|
void |
testCrossValidation()
|
void |
testLoadSaveModel()
|
void |
testRealloc()
|
void |
testSaveModelWithIOException()
|
void |
testTrainPredict()
create a very simple problem and check if the clearly separated examples are recognized as such |
void |
testTrainUnsortedProblem()
|
void |
testTranspose()
compared input/output values with the C version (1.51) IN: res prob.l = 4 res prob.n = 4 0: (2,1) (4,1) 1: (1,1) 2: (3,1) 3: (2,2) (3,1) (4,1) TRANSPOSED: res prob.l = 4 res prob.n = 4 0: (2,1) 1: (1,1) (4,2) 2: (3,1) (4,1) 3: (1,1) (4,1) |
void |
testTranspose2()
compared input/output values with the C version (1.51) IN: res prob.l = 5 res prob.n = 10 0: (1,7) (3,3) (5,2) 1: (2,1) (4,5) (5,3) (7,4) (8,2) 2: (1,9) (3,1) (5,1) (10,7) 3: (1,2) (2,2) (3,9) (4,7) (5,8) (6,1) (7,5) (8,4) 4: (3,1) (10,3) TRANSPOSED: res prob.l = 5 res prob.n = 10 0: (1,7) (3,9) (4,2) 1: (2,1) (4,2) 2: (1,3) (3,1) (4,9) (5,1) 3: (2,5) (4,7) 4: (1,2) (2,3) (3,1) (4,8) 5: (4,1) 6: (2,4) (4,5) 7: (2,2) (4,4) 8: 9: (3,7) (5,3) |
void |
testTranspose3()
compared input/output values with the C version (1.51) IN: res prob.l = 3 res prob.n = 4 0: (1,2) (3,1) (4,3) 1: (1,9) (2,7) (3,3) (4,3) 2: (2,1) TRANSPOSED: res prob.l = 3 * res prob.n = 4 0: (1,2) (2,9) 1: (2,7) (3,1) 2: (1,1) (2,3) 3: (1,3) (2,3) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinearTest()
| Method Detail |
|---|
public static void disableDebugOutput()
public static de.bwaldvogel.liblinear.Model createRandomModel()
public static de.bwaldvogel.liblinear.Problem createRandomProblem(int numClasses)
public void testRealloc()
public void testAtoi()
public void testAtoiInvalidData()
public void testAtoiInvalidData2()
public void testAtoiInvalidData3()
public void testAtof()
public void testAtofInvalidData()
public void testLoadSaveModel()
throws Exception
Exception
public void testCrossValidation()
throws Exception
Exception
public void testSaveModelWithIOException()
throws Exception
Exception
public void testTranspose()
throws Exception
IN: res prob.l = 4 res prob.n = 4 0: (2,1) (4,1) 1: (1,1) 2: (3,1) 3: (2,2) (3,1) (4,1) TRANSPOSED: res prob.l = 4 res prob.n = 4 0: (2,1) 1: (1,1) (4,2) 2: (3,1) (4,1) 3: (1,1) (4,1)
Exception
public void testTranspose2()
throws Exception
IN: res prob.l = 5 res prob.n = 10 0: (1,7) (3,3) (5,2) 1: (2,1) (4,5) (5,3) (7,4) (8,2) 2: (1,9) (3,1) (5,1) (10,7) 3: (1,2) (2,2) (3,9) (4,7) (5,8) (6,1) (7,5) (8,4) 4: (3,1) (10,3) TRANSPOSED: res prob.l = 5 res prob.n = 10 0: (1,7) (3,9) (4,2) 1: (2,1) (4,2) 2: (1,3) (3,1) (4,9) (5,1) 3: (2,5) (4,7) 4: (1,2) (2,3) (3,1) (4,8) 5: (4,1) 6: (2,4) (4,5) 7: (2,2) (4,4) 8: 9: (3,7) (5,3)
Exception
public void testTranspose3()
throws Exception
Exceptionpublic void testTrainPredict()
public void testTrainUnsortedProblem()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||