I need to add one more column to the table and add $L$ parameter next to $n$. How can I add it?
mwe:
\documentclass{article}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{setspace}
\begin{document}
\begin{table}[htbp]
\small
\begin{spacing}{1}
\begin{center}
\begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
\hline
& & & \multicolumn{2}{c|}{\textbf{ML }}
& \multicolumn{2}{c|}{\textbf{ML }} \\
\cline{3-7}
$\lambda$ & $\gamma$ & $n$& & Train & Test & Train & Test \\
\hline
0.01 & 0.006 & 30 & & 0.9133 & \textbf{0.9401} & & \\
\hline
0.01 & 0.002 & 50 & & & &0.8973 & \textbf{0.9080} \\
\hline
\end{tabular}
\caption{Values.}
\label{mejorrmsepredictorbase}
\end{center}
\end{spacing}
\end{table}
\end{document}
I am getting something like this, which is awful:
I would like to leave it like
$\lambda$and\gamma, meaning, alone.


&starts a new column, so you add another&at the appropriate place in each row, and new content before it. You've already specified 8 columns for thetabular, so you don't have to modify that – Torbjørn T. Jul 23 '19 at 21:18