我在 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}
這給了我:
非常感謝任何幫助或建議!