|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.udo.cs.yale.test.TestCase
edu.udo.cs.yale.operator.performance.test.CriterionTestCase
edu.udo.cs.yale.operator.performance.test.MeasuredCriterionTest
public class MeasuredCriterionTest
Tests regression critetia.
Field Summary | |
---|---|
private ExampleSet |
exampleSet1
|
private ExampleSet |
exampleSet2
|
Constructor Summary | |
---|---|
MeasuredCriterionTest()
|
Method Summary | |
---|---|
private ExampleSet |
createExampleSet(double[][] labelValues,
double[] predictedValues)
|
private void |
criterionTest(PerformanceCriterion c1,
PerformanceCriterion c2,
double expected1,
double expected2,
double expectedOverall)
Tests calculation, average, and clone. |
void |
setUp()
|
void |
tearDown()
|
void |
testAbsoluteError()
|
void |
testSquaredError()
|
Methods inherited from class edu.udo.cs.yale.operator.performance.test.CriterionTestCase |
---|
assertAllValuesEqual, cloneTest |
Methods inherited from class edu.udo.cs.yale.test.TestCase |
---|
assertEqualsNaN |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private ExampleSet exampleSet1
private ExampleSet exampleSet2
Constructor Detail |
---|
public MeasuredCriterionTest()
Method Detail |
---|
private ExampleSet createExampleSet(double[][] labelValues, double[] predictedValues) throws java.lang.Exception
java.lang.Exception
public void setUp() throws java.lang.Exception
setUp
in class TestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
private void criterionTest(PerformanceCriterion c1, PerformanceCriterion c2, double expected1, double expected2, double expectedOverall) throws java.lang.Exception
java.lang.Exception
public void testAbsoluteError() throws java.lang.Exception
java.lang.Exception
public void testSquaredError() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |