Latex 未满\h表中的框(不良10000)

Latex 未满\h表中的框(不良10000),latex,Latex,我有下一个表格,但它显示了标题的警告 \begin{table}[!hbt] \centering \caption{Learning Types} \begin{tabular}{| p{0.14\textwidth} | p{0.42\textwidth} | p{0.34\textwidth} |} \hline Supervis

我有下一个表格,但它显示了标题的警告

            \begin{table}[!hbt]
            \centering
            \caption{Learning Types}
            \begin{tabular}{| p{0.14\textwidth} | p{0.42\textwidth} | p{0.34\textwidth} |}
                
                \hline Supervised Learning & The data you feed to the algorithm is labeled.        
                                             It is often used for classification and regression  &  \Centerstack{\\k-Nearest Neighbors\\Linear Regression\\
                                                                                                           Logistic Regression\\Support Vector Machines (SVMs)\\
                                                                                                           Decision Trees and Random Forests\\Neural networks\\} \tabularnewline
                \hline Unsupervised Learning & hh & hh \tabularnewline
                \hline Semi-supervised Learning & hh & hh \tabularnewline
                \hline Reinforcement Learning & hh & hh \tabularnewline \hline
            \end{tabular}
            \end{table}
我已经搜索过了,有人说这是因为\\(now\tablernewline), 但我不知道如何使dissapear成为警告。

A
p{}
列规范试图证明任何多行内容的合理性,将其展开,使其与列边界左齐平,右齐平(最后一行除外)。在您的情况下,无法伸展
以完全适应
0.14\textwidth
,从而导致“未满
\hbox
”警告

由于该列非常窄,因此最好使用
\makecell
(从中)强制进行一些对齐/间距。下面我还使用了和来提高视觉吸引力


它看起来很棒,解释也很棒!谢谢:D
\documentclass{article}

\usepackage{booktabs,makecell,tabularx}

\begin{document}

\begin{table}
  \centering
  \caption{Learning Types}
  \begin{tabularx}{\linewidth}{ l X l }
    \toprule
    \thead{Type} & \thead{Description} & \thead{Example(s)} \\
    \midrule
    \makecell[lt]{Supervised \\ Learning} & 
      The data you feed to the algorithm is labeled.
      It is often used for classification and regression &
      \makecell[lt]{%
        $k$-Nearest Neighbors             \\
        Linear Regression                 \\
        Logistic Regression               \\
        Support Vector Machines (SVMs)    \\
        Decision Trees and Random Forests \\
        Neural networks%
      } \\
    \addlinespace[10pt]
    \makecell[lt]{Unsupervised \\ Learning} & Description & Example(s) \\
    \addlinespace[10pt]
    \makecell[lt]{Semi-supervised \\ Learning} & Description & Example(s) \\
    \addlinespace[10pt]
    \makecell[lt]{Reinforcement \\ Learning} & Description & Example(s) \\
    \bottomrule
  \end{tabularx}
\end{table}

\end{document}