Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

CalculatedMeasures.java 2.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
  1. /*
  2. * Copyright 2013,2014 BioASQ project: FP7/2007-2013, ICT-2011.4.4(d),
  3. * Intelligent Information Management,
  4. * Targeted Competition Framework grant agreement n° 318652.
  5. * www: http://www.bioasq.org
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. */
  19. /**
  20. *
  21. * @author Ioannis Partalas
  22. */
  23. package data;
  24. public class CalculatedMeasures {
  25. double precision;
  26. double recall;
  27. double fmeasure;
  28. double average_precision;
  29. double accuracy; // for phase B - exact answers for yesno questions
  30. double strict_accuracy;
  31. double lenient_accuracy;
  32. double mean_reciprocal_rank;
  33. public CalculatedMeasures() {
  34. precision = 0;
  35. recall=0;
  36. fmeasure=0;
  37. average_precision=0;
  38. accuracy=0;
  39. strict_accuracy = 0;
  40. lenient_accuracy = 0;
  41. mean_reciprocal_rank = 0;
  42. }
  43. public double getAccuracy() {
  44. return accuracy;
  45. }
  46. public void setAccuracy(double accuracy) {
  47. this.accuracy = accuracy;
  48. }
  49. public double getLenient_accuracy() {
  50. return lenient_accuracy;
  51. }
  52. public void setLenient_accuracy(double lenient_accuracy) {
  53. this.lenient_accuracy = lenient_accuracy;
  54. }
  55. public double getMean_reciprocal_rank() {
  56. return mean_reciprocal_rank;
  57. }
  58. public void setMean_reciprocal_rank(double mean_reciprocal_rank) {
  59. this.mean_reciprocal_rank = mean_reciprocal_rank;
  60. }
  61. public double getStrict_accuracy() {
  62. return strict_accuracy;
  63. }
  64. public void setStrict_accuracy(double strict_accuracy) {
  65. this.strict_accuracy = strict_accuracy;
  66. }
  67. public double getAverage_precision() {
  68. return average_precision;
  69. }
  70. public void setAverage_precision(double average_precision) {
  71. this.average_precision = average_precision;
  72. }
  73. public double getFmeasure() {
  74. return fmeasure;
  75. }
  76. public void setFmeasure(double fmeasure) {
  77. this.fmeasure = fmeasure;
  78. }
  79. public double getPrecision() {
  80. return precision;
  81. }
  82. public void setPrecision(double precision) {
  83. this.precision = precision;
  84. }
  85. public double getRecall() {
  86. return recall;
  87. }
  88. public void setRecall(double recall) {
  89. this.recall = recall;
  90. }
  91. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...