如何将此段文字包含在表格中?

如何将此段文字包含在表格中?

我有我测试过的模型的最优参数,但是每个模型的参数值都相同。因此,我不希望每个参数值都列一列,因为那将是不必要的重复。但是,我不确定在表中将最优参数值放在哪里(以及如何放置以使它看起来令人愉快)——我显然想确保它适用于表中的所有模型。这是我想包含的文本:

(Optimal Parameters: $c = 0.01, \gamma = 0.5, d =2$)

这是我的 MWE:

\documentclass[11pt,a4paper,titlepage]{article}
\usepackage{booktabs}
\usepackage[allow-number-unit-breaks]{siunitx}
\begin{document}
\begin{table}[!htbp] 
\centering 
\caption{Percentage of Correct Predictions and AUC Values by Kernel} 
\label{tab34} 
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}llSS}
\toprule \textbf{Model} & \textbf{Kernel} & \textbf{\% Correct Classification} & \textbf{AUC Values}\\
\midrule
Model 20 & Linear & 49.9 & 0.50\\
Model 21 & Polynomial ($d = 2$) & 93.6 & 0.98 \\
Model 22 & Radial & 49.9 & 0.50 \\
\bottomrule
\end{tabular*} 
\end{table}
\end{document}

答案1

这个怎么样?

\documentclass[11pt,a4paper,titlepage]{article}
\usepackage{booktabs, makecell, caption}
\renewcommand\theadfont{\normalsize\bfseries}
\usepackage[allow-number-unit-breaks]{siunitx}

\begin{document}

\begin{table}[!htbp]
\centering
\caption{Percentage of Correct Predictions and AUC Values by Kernel}
\label{tab34}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}llSS}
\toprule
\thead{Model} & \thead{Kernel} & {\thead{\% Correct\\ Classification}} & {\thead{AUC Values}}\\
\midrule
Model 20 & Linear & 49.9 & 0.50\\
Model 21 & Polynomial ($d = 2$) & 93.6 & 0.98 \\
Model 22 & Radial & 49.9 & 0.50 \\
\bottomrule
\addlinespace
\multicolumn{4}{@{}l}{(Optimal Parameters: $c = 0.01,\, \gamma = 0.5,\, d =2$)}\medskip \\
\end{tabular*}
\end{table}

\end{document} 

在此处输入图片描述

相关内容