I want to make a two column table whose column titles are Hyperparameter and Optimal Value.
I wrote this code:
\begin{table}[H]
\begin{center}
\caption{More columns.}
\label{tab:table1}
\begin{tabular}{|c|c|}
\textbf{Hyperparameter} & \textbf{Optimal Value}\\
\hline
base_estimator__C & 1.0 \\
base_estimator__decision_function_shape & ovo\\
base_estimator__kernel & Linear\\
\end{tabular}
\end{center}
\end{table}
It doesn't work, giving multiple errors.




backslash \before theunderscoreand add package\usepackage[T1]{fontenc}-- also suggest usebooktabspackage and usetoprule, midrule, bottomrulefor better spacing as in the answer below -- also suggest remove vertical lines – js bibra Mar 16 '21 at 10:52tabularxtag since you don't use this package in your code. Ragarding the error messags you should get upon trying to compile your code, you might want to take a look at: https://tex.stackexchange.com/a/554241/134144 – leandriis Mar 17 '21 at 08:54