Gridea

Latex 表格

Latex 表格
2022-08-10 · 1 min read
latex

实现效果

代码

% Please add the following required packages to your document preamble:
% \usepackage{multirow}

\begin{table}[]
  \centering
  \caption{}
  \label{tab:acc-table}
  \begin{tabular}{|c|cccc|cccc|}
  \hline
  \multirow{2}{*}{\diagbox[width=10em]{Algorithms}{Neurons}} & \multicolumn{4}{c|}{Shallow network} & \multicolumn{4}{c|}{Deep network} \\ \cline{2-9} 
                             & 10      & 20      & 30      & 50     & 10     & 20     & 30     & 50     \\ \hline
  traingd                    & 0.61    & 0.73    & 0.78    & 0.82   & 0.74   & 0.73   & 0.82   & 0.87   \\
  trainlm                    & 0.96    & 0.96    & 0.95    & 0.94   & 0.95   & 0.97   & 0.96   & 0.97   \\
  trainbfg                   & 0.96    & 0.97    & 0.96    & 0.96   & 0.97   & 0.97   & 0.97   & 0.96   \\ \hline
  \end{tabular}
\end{table}