我在 LaTex 中实现多列并将文本保持在正确位置时遇到了麻烦。理想情况下,我想制作一个这样的表格:
我无法正确使用“传统机器学习方法”部分的间距。我的代码目前是这样的:
\begin{table}
\begin{tabular}{ |c||c|c|c|c|c| }
\hline
\multicolumn{6}{|c|}{SNN-based methodology (ongoing task)} \\
\hline
Data Classes& Young Adults & Older Adults & MCI & Accuracy \% & Total
accuracy \%\\
\hline
Young Adults& ? & ? & ? & ? & \\
Older Adults& ? & ? & ? & ? & ? \\
MCI& ? & ? & ? & ? & \\
\hline
\multicolumn{6}{|c|}{Traditional Machine Learning Methods} \\
\hline
Methods & \multicolumn{2}{|c|}{MLP}& \multicolumn{2}{|c|}{SVM}&
\multicolumn{2}{|c|}{MLP} \\
Accuracy \% & ? & ? & ? \\
\hline
\multicolumn{6}{|c|}{SNN-based methodology (PMpercept task)} \\
\hline
Data Classes& Young Adults & Older Adults & MCI & Accuracy \% & Total
accuracy \%\\
\hline
Young Adults& ? & ? & ? & ? & \\
Older Adults& ? & ? & ? & ? & ? \\
MCI& ? & ? & ? & ? & \\
\hline
\multicolumn{6}{|c|}{Traditional Machine Learning Methods} \\
\hline
Methods & \multicolumn{2}{|c|}{MLP}& \multicolumn{2}{|c|}{SVM}&
\multicolumn{2}{|c|}{MLP} \\
Accuracy \% & ? & ? & ? \\
\multicolumn{6}{|c|}{SNN-based methodology (PMconcept task)} \\
\hline
Data Classes& Young Adults & Older Adults & MCI & Accuracy \% & Total
accuracy \%\\
\hline
Young Adults& ? & ? & ? & ? & \\
Older Adults& ? & ? & ? & ? & ? \\
MCI& ? & ? & ? & ? & \\
\hline
\multicolumn{6}{|c|}{Traditional Machine Learning Methods} \\
\hline
Methods & \multicolumn{2}{|c|}{MLP}& \multicolumn{2}{|c|}{SVM}&
\multicolumn{2}{|c|}{MLP} \\
Accuracy \% & ? & ? & ? \\
\hline
\end{tabular}
\caption{\label{tab:blah blah}
\end{table}
这给了我:
非常感谢任何帮助或建议!