Last change
on this file since 87 was
71,
checked in by sherbold, 9 years ago
|
- MySQL result storage can now work with credential files
- code documentation
|
-
Property svn:mime-type set to
text/plain
|
File size:
1.0 KB
|
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.setSuccHe(0.1);
|
---|
15 | result.setSuccZi(0.05);
|
---|
16 | result.setSuccG75(0.2);
|
---|
17 | result.setSuccG60(0.4);
|
---|
18 | result.setError(0.2);
|
---|
19 | result.setRecall(0.8);
|
---|
20 | result.setPrecision(0.7);
|
---|
21 | result.setFscore(0.75);
|
---|
22 | result.setGscore(0.85);
|
---|
23 | result.setMcc(0.5);
|
---|
24 | result.setAuc(0.7);
|
---|
25 | result.setAucec(0.6);
|
---|
26 | result.setTpr(0.8);
|
---|
27 | result.setFpr(0.2);
|
---|
28 | result.setTnr(0.7);
|
---|
29 | result.setFnr(0.3);
|
---|
30 | result.setTp(40);
|
---|
31 | result.setFn(10);
|
---|
32 | result.setTn(35);
|
---|
33 | result.setFp(15);
|
---|
34 | storage.addResult(result);
|
---|
35 | }
|
---|
36 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.