Last change
on this file since 135 was
135,
checked in by sherbold, 8 years ago
|
- code documentation and formatting
|
-
Property svn:mime-type set to
text/plain
|
File size:
935 bytes
|
Line | |
---|
1 | package de.ugoe.cs.cpdp.eval;
|
---|
2 |
|
---|
3 | import org.junit.Test;
|
---|
4 |
|
---|
5 | public class MySQLResultStorageTest {
|
---|
6 |
|
---|
7 | @Test
|
---|
8 | public void testAddResult() throws Exception {
|
---|
9 | MySQLResultStorage storage = new MySQLResultStorage();
|
---|
10 |
|
---|
11 | ExperimentResult result = new ExperimentResult("dummy", "product-1.0", "classifier");
|
---|
12 | result.setSizeTestData(100);
|
---|
13 | result.setSizeTrainingData(200);
|
---|
14 | result.setError(0.2);
|
---|
15 | result.setRecall(0.8);
|
---|
16 | result.setPrecision(0.7);
|
---|
17 | result.setFscore(0.75);
|
---|
18 | result.setGscore(0.85);
|
---|
19 | result.setMcc(0.5);
|
---|
20 | result.setAuc(0.7);
|
---|
21 | result.setAucec(0.6);
|
---|
22 | result.setTpr(0.8);
|
---|
23 | result.setFpr(0.2);
|
---|
24 | result.setTnr(0.7);
|
---|
25 | result.setFnr(0.3);
|
---|
26 | result.setTp(40);
|
---|
27 | result.setFn(10);
|
---|
28 | result.setTn(35);
|
---|
29 | result.setFp(15);
|
---|
30 | storage.addResult(result);
|
---|
31 | }
|
---|
32 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.