source: trunk/CrossPare/src/de/ugoe/cs/cpdp/eval/ExperimentResult.java @ 117

Last change on this file since 117 was 68, checked in by sherbold, 9 years ago
  • added the concept of result storages to the framework and implemented a very simple first prototype of a MySQLResultStorage (that currently only works with a locally running database)
  • Property svn:mime-type set to text/plain
File size: 4.4 KB
Line 
1package de.ugoe.cs.cpdp.eval;
2
3public class ExperimentResult {
4
5    private final String configurationName;
6    private final String productName;
7    private final String classifier;
8   
9    public ExperimentResult(String configurationName, String productName, String classifier) {
10        this.configurationName = configurationName;
11        this.productName = productName;
12        this.classifier = classifier;
13    }
14   
15    int sizeTestData;
16    int sizeTrainingData;
17    double succHe = Double.NaN;
18    double succZi = Double.NaN;
19    double succG75 = Double.NaN;
20    double succG60 = Double.NaN;
21    double error = Double.NaN;
22    double recall = Double.NaN;
23    double precision = Double.NaN;
24    double fscore = Double.NaN;
25    double gscore = Double.NaN;
26    double mcc = Double.NaN;
27    double auc = Double.NaN;
28    double aucec = Double.NaN;
29    double tpr = Double.NaN;
30    double tnr = Double.NaN;
31    double fpr = Double.NaN;
32    double fnr = Double.NaN;
33    double tp = Double.NaN;
34    double fn = Double.NaN;
35    double tn = Double.NaN;
36    double fp = Double.NaN;
37
38    public String getConfigurationName() {
39        return configurationName;
40    }
41    public String getProductName() {
42        return productName;
43    }
44    public String getClassifier() {
45        return classifier;
46    }
47    public int getSizeTestData() {
48        return sizeTestData;
49    }
50    public void setSizeTestData(int sizeTestData) {
51        this.sizeTestData = sizeTestData;
52    }
53    public int getSizeTrainingData() {
54        return sizeTrainingData;
55    }
56    public void setSizeTrainingData(int sizeTrainingData) {
57        this.sizeTrainingData = sizeTrainingData;
58    }
59    public double getSuccHe() {
60        return succHe;
61    }
62    public void setSuccHe(double succHe) {
63        this.succHe = succHe;
64    }
65    public double getSuccZi() {
66        return succZi;
67    }
68    public void setSuccZi(double succZi) {
69        this.succZi = succZi;
70    }
71    public double getSuccG75() {
72        return succG75;
73    }
74    public void setSuccG75(double succG75) {
75        this.succG75 = succG75;
76    }
77    public double getSuccG60() {
78        return succG60;
79    }
80    public void setSuccG60(double succG60) {
81        this.succG60 = succG60;
82    }
83    public double getError() {
84        return error;
85    }
86    public void setError(double error) {
87        this.error = error;
88    }
89    public double getRecall() {
90        return recall;
91    }
92    public void setRecall(double recall) {
93        this.recall = recall;
94    }
95    public double getPrecision() {
96        return precision;
97    }
98    public void setPrecision(double precision) {
99        this.precision = precision;
100    }
101    public double getFscore() {
102        return fscore;
103    }
104    public void setFscore(double fscore) {
105        this.fscore = fscore;
106    }
107    public double getGscore() {
108        return gscore;
109    }
110    public void setGscore(double gscore) {
111        this.gscore = gscore;
112    }
113    public double getMcc() {
114        return mcc;
115    }
116    public void setMcc(double mcc) {
117        this.mcc = mcc;
118    }
119    public double getAuc() {
120        return auc;
121    }
122    public void setAuc(double auc) {
123        this.auc = auc;
124    }
125    public double getAucec() {
126        return aucec;
127    }
128    public void setAucec(double aucec) {
129        this.aucec = aucec;
130    }
131    public double getTpr() {
132        return tpr;
133    }
134    public void setTpr(double tpr) {
135        this.tpr = tpr;
136    }
137    public double getTnr() {
138        return tnr;
139    }
140    public void setTnr(double tnr) {
141        this.tnr = tnr;
142    }
143    public double getFpr() {
144        return fpr;
145    }
146    public void setFpr(double fpr) {
147        this.fpr = fpr;
148    }
149    public double getFnr() {
150        return fnr;
151    }
152    public void setFnr(double fnr) {
153        this.fnr = fnr;
154    }
155    public double getTp() {
156        return tp;
157    }
158    public void setTp(double tp) {
159        this.tp = tp;
160    }
161    public double getFn() {
162        return fn;
163    }
164    public void setFn(double fn) {
165        this.fn = fn;
166    }
167    public double getTn() {
168        return tn;
169    }
170    public void setTn(double tn) {
171        this.tn = tn;
172    }
173    public double getFp() {
174        return fp;
175    }
176    public void setFp(double fp) {
177        this.fp = fp;
178    }
179}
Note: See TracBrowser for help on using the repository browser.