-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlatex_tables.tex
226 lines (191 loc) · 7.3 KB
/
latex_tables.tex
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
\begin{table}[htdp]
\caption*{Table 1: Sentiment test success rates - Naive Bayes}
\begin{center}
\begin{tabular}{ | l | l | l | l | l | l | l |}
\hline
& \multicolumn{6}{|c|}{Testing category}\\
\hline
Training category &books &dvd &health &music &camera &software \\
\hline
books & 0,795 & 0,7215 & 0,6165 & 0,686 & 0,648 & 0,703394 \\
dvd & 0,785 & 0,82 & 0,668 & 0,735 & 0,7233 & 0,7336 \\
health & 0,727 & 0,761 & 0,72 & 0,713 & 0,7698 & 0,7545 \\
music & 0,726 & 0,7565 & 0,651 & 0,735 & 0,683 & 0,62088 \\
camera & 0,6765 & 0,704 & 0,677 & 0,704 & 0,785 & 0,678 \\
software & 0,5 & 0,5 & 0,5 & 0,5 & 0,499 & 0,479 \\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 2: Sentiment test success rates - Perceptron}
\begin{center}
\begin{tabular}{ | l | l | l | l | l | l | l |}
\hline
& \multicolumn{6}{|c|}{Testing category}\\
\hline
Training category &books &dvd &health &music &camera &software \\
\hline
books & 0,81 & 0,7725 & 0,6685 & 0,7255 & 0,7068 & 0,696\\
dvd & 0,7245 & 0,765 & 0,6935 & 0,741 & 0,738 & 0,7295\\
health & 0,6595 & 0,6895 & 0,755 & 0,651 & 0,7503 & 0,7545\\
music & 0,726 & 0,774 & 0,6645 & 0,78 & 0,705 & 0,6903\\
camera & 0,6555 & 0,677 & 0,723 & 0,6585 & 0,89 & 0,769\\
software & 0,659 & 0,688 & 0,704 & 0,618 & 0,758 & 0,807\\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 3: Sentiment test success rates - Averaged Perceptron}
\begin{center}
\begin{tabular}{ | l | l | l | l | l | l | l |}
\hline
& \multicolumn{6}{|c|}{Testing category}\\
\hline
Training category &books &dvd &health &music &camera &software \\
\hline
books & 0,81 & 0,7705 & 0,67 & 0,7235 & 0,703 & 0,692 \\
dvd & 0,7255 & 0,785 & 0,694 & 0,7375 & 0,737 & 0,724 \\
health & 0,6475 & 0,699 & 0,745 & 0,6475 & 0,757 & 0,74 \\
music & 0,7255 & 0,7705 & 0,675 & 0,765 & 0,696 & 0,692 \\
camera & 0,6645 & 0,6845 & 0,723 & 0,662 & 0,89 & 0,767 \\
software & 0,6675 & 0,697 & 0,72 & 0,635 & 0,775 & 0,797 \\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 4: Sentiment test success rates - K Nearest Neighbor}
\begin{center}
\begin{tabular}{ | l | l | l | l | l | l | l |}
\hline
& \multicolumn{6}{|c|}{Testing category}\\
\hline
Training category &books &dvd &health &music &camera &software \\
\hline
books & 0,58 & 0,5975 & 0,5825 & 0,6085 & 0,6248 & 0,5921 \\
dvd & 0,535 & 0,615 & 0,5195 & 0,5585 & 0,5602 & 0,5138 \\
health & 0,5245 & 0,5385 & 0,56 & 0,517 & 0,562 & 0,543 \\
music & 0,5175 & 0,545 & 0,526 & 0,59 & 0,5272 & 0,5018 \\
camera & 0,5385 & 0,5465 & 0,5955 & 0,544 & 0,605 & 0,599 \\
software & 0,5135 & 0,546 & 0,535 & 0,518 & 0,5557 & 0,64 \\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 5: Cross-validated Category Analyses}
%\begin{center}
\begin{tabular}{ | p{2cm} | p{1.5cm} | p{1.5cm} | l | l | l | l | l | l | }
\hline
& & &\multicolumn{6}{|c|}{Mean success rates by category} \\ \hline
Classifier & Include software & Mean success rate & Books & DVD & Health & Software & Music & Camera \\ \hline
Perceptron & yes & 0,857 & 0,885 & 0,859 & 0,891 & 0,80625 & 0,867 & 0,833 \\
& no & 0,8734 & 0,892 & 0,854 & \textbf{0,917} & N/A & 0,866 & 0,838 \\ \hline
\multirow{2}{2cm}{Averaged Perceptron} & yes & 0,706 & 0,921 & 0,588 & 0,369 & 0,653125 & \textbf{0,95} & 0,754 \\
& no & 0,776 & \textbf{0,939} & 0,681 & 0,48 & N/A & 0,928 & 0,851 \\ \hline
Naive Bayes & yes & 0,161 & 0 & 0 & 0 & 1 & 0 & 0 \\
& no & 0,842 & 0,847 & 0,735 & 0,882 & N/A & 0,888 & 0,858 \\ \hline
KNN & yes & \textbf{0,911} & 0,919 & \textbf{0,887} & 0,826 & \textbf{0,879} & 0,671 & \textbf{0,891} \\
& no & 0,873 & 0,911 & 0,86 & 0,84 & N/A &0,679 &0,871 \\ \hline
\end{tabular}
%\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 6: Variances for Cross-validated Category Analyses}
%\begin{center}
\begin{tabular}{ | p{2cm} | p{1.5cm} | l | l | l | l | l | l | l | }
\hline
Classifier & Include software &\multicolumn{6}{|c|}{Standard Deviation by category} \\ \hline
Perceptron & yes & 0,015 & 0,022 & 0,004 & 0,022 & 0,022 & 0,015\\
& no & 0,015 & 0,029 & 0,007 & N/A & 0,023 & 0,019\\ \hline
\multirow{2}{2cm}{Averaged Perceptron} & yes & 0,012 & 0,028 & 0,025 & 0,035 & 0,018 & 0,032\\
& no & 0,014 & 0,008 & 0,056 & N/A & 0,015 & 0,013\\ \hline
Naive Bayes & yes & 0 & 0 & 0 & 0 & 0 & 0\\
& no & 0,022 & 0,021 & 0,026 & N/A & 0,021 & 0,027\\ \hline
\end{tabular}
%\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 7: amount of unknown features encountered by category, for Naive Bayes}
\begin{center}
\begin{tabular}{ | l | p{3cm} | }
\hline
Category & Unknown features encountered \\ \hline
dvd & 2646 \\
books & 3735 \\
music & 5271 \\
software & 9513 \\
camera & 13587 \\
health & 16316 \\ \hline
\end{tabular}
\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 8: McNemar test - Perceptron vs Naive Bayes trained on health with 1 degree of freedom}
\begin{center}
\begin{tabular}{ | l | l | l | l | l | l | l |}
\hline
& \multicolumn{6}{|c|}{Statistics}\\
\hline
Testing category &books &dvd &health &music &camera &software \\
\hline
Chi-squared & 3,1802 & 1,0535 & 13,0863 & 0,8929 & 3,2716 & 3,8345 \\
p-value & 0,07454 & 0,3047 & 0,0002975 & 0,3447 & 0,07049 & 0,05021 \\
alpha & 0,05 & 0,05 & 0,05 & 0,05 & 0,05 & 0,05 \\
Statistically different & no & no & yes & no & no & no \\
alpha & 0,01 & 0,01 & 0,01 & 0,01 & 0,01 & 0,01 \\
Statistically different & no & no & yes & no & no & no \\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 9: McNemar test - Averaged Perceptron vs Naive Bayes trained on health with 1 degree of freedom}
\begin{center}
\begin{tabular}{ | l | l | l | l | l | l | l |}
\hline
& \multicolumn{6}{|c|}{Statistics}\\
\hline
Testing category &books &dvd &health &music &camera &software \\
\hline
Chi-squared & 4,1434 & 0,27 & 6,8878 & 0,3 & 5,2089 & 1,3885 \\
p-value & 0,0418 & 0,6033 & 0,008679 & 0,5839 & 0,02247 & 0,2387 \\
alpha & 0,05 & 0,05 & 0,05 & 0,05 & 0,05 & 0,05 \\
Statistically different & yes & no & yes & no & yes & no \\
alpha & 0,01 & 0,01 & 0,01 & 0,01 & 0,01 & 0,01 \\
Statistically different & no & no & yes & no & no & no \\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}
\begin{table}[htdp]
\caption*{Table 10: McNemar test - Perceptron vs Averaged Perceptron trained on health with 1 degree of freedom}
\begin{center}
\begin{tabular}{ | l | l | l | l | l | l | l |}
\hline
& \multicolumn{6}{|c|}{Statistics}\\
\hline
Testing category &books &dvd &health &music &camera &software \\
\hline
Chi-squared & 0,1607 & 14,881 & 6,1132 & 0,5 & 0,7059 & 3,0179 \\
p-value & 0,6885 & 0,0001145 & 0,01342 & 0,4795 & 0,4008 & 0,08235 \\
alpha 0,05 & 0,05 & 0,05 & 0,05 & 0,05 & 0,05 \\
Statistically different & no & yes & yes & no & no & no \\
alpha & 0,01 & 0,01 & 0,01 & 0,01 & 0,01 & 0,01 \\
Statistically different & no & yes & no & no & no & no \\
\hline
\end{tabular}
\end{center}
\label{default}
\end{table}