0

How can I add (fix) the last two rows? I need add one more row to each of one:

enter image description here

\documentclass{article}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage{booktabs}

\begin{document}

\begin{table}[htbp]

    \centering
    \small

        \begin{tabular}{@{}lll@{}}

            \toprule
            \textbf{Dataset}    &\textbf{Mod }&\textbf{Best blblbl } \\ \midrule
            \multirow{5}{*}{100K}    & Baseline proed & $n=50$, $\gamma =0.003862$, $\lambda=0.010161$  \\\cmidrule{2-3}
            & Algorithm 1 &   $n=39$,$\gamma =0.001229$, $\lambda=0.034972$, $L=39$ \\ \cmidrule{2-3}
            & Algorithm 2 &   $n=50$, $\gamma =0.009$, $\lambda=0.01$, $L=100$  \\ \cmidrule{2-3}
            & Algorithm 3&   $n=50$, $\gamma_{pu} =0.004815$, $\gamma_{qi} =0.006103$, $\lambda_{pu}=0.09$, $\lambda_{qi}=0.09$  \\ \cmidrule{2-3}
            & Algorithm 4 & $n=50$, $\gamma_{pu} =0.004815$, $\gamma_{qi} =0.006103$, $\gamma_{bu} =0.006103$, $\gamma_{bi} =0.006103$, $\lambda_{pu}=0.09$, $\lambda_{qi}=0.09$, $\lambda_{bu}=0.09$, $\lambda_{bi}=0.09$   \\  \cmidrule{2-3}
            & Algorithm 5 & $n=50$, $\gamma_{pu} =0.004815$, $\gamma_{qi} =0.006103$, $\gamma_{bu} =0.006103$, $\gamma_{bi} =0.006103$, $\lambda_{pu}=0.09$, $\lambda_{qi}=0.09$, $\lambda_{bu}=0.09$, $\lambda_{bi}=0.09$   \\  \midrule








            %\multirow{2}{*}{1M}  & BSVD Bias & $k=50$, $\gamma =0.01$, $\lambda=0.1$\\\cmidrule{2-3}
            %                & Proposed Method   &   X\\
            \bottomrule
        \end{tabular}

    \caption{.} 


\end{table}

\end{document}
1

With use of the tabularx you can break lines in third columns:

\documentclass{article}
\usepackage{amsmath}
\usepackage{booktabs, multirow, tabularx}

\begin{document}
    \begin{table}[htbp]
    \centering
    \small
\begin{tabularx}{\linewidth}{@{} llX @{} }
    \toprule
\textbf{Dataset}    & \textbf{Mod}  & \textbf{Best blblbl}  \\
    \midrule
\multirow{11}{*}{100K}    
    & Baseline proed    & $n=50$, $\gamma=0.003862$, $\lambda=0.010161$ \\ \addlinespace
    & Algorithm 1       & $n=39$, $\gamma =0.001229$, $\lambda=0.034972$, $L=39$ \\ 
    \addlinespace
    & Algorithm 2       &   $n=50$, $\gamma =0.009$, $\lambda=0.01$, $L=100$  \\ 
    \addlinespace
    & Algorithm 3&   $n=50$, $\gamma_{pu} =0.004815$, $\gamma_{qi} =0.006103$, $\lambda_{pu}=0.09$, $\lambda_{qi}=0.09$  \\
    \addlinespace
    & Algorithm 4 & $n=50$, $\gamma_{pu} =0.004815$, $\gamma_{qi} =0.006103$, $\gamma_{bu} =0.006103$, $\gamma_{bi} =0.006103$, $\lambda_{pu}=0.09$, $\lambda_{qi}=0.09$, $\lambda_{bu}=0.09$, $\lambda_{bi}=0.09$   \\  
    \addlinespace
    & Algorithm 5 & $n=50$, $\gamma_{pu} =0.004815$, $\gamma_{qi} =0.006103$, $\gamma_{bu} =0.006103$, $\gamma_{bi} =0.006103$, $\lambda_{pu}=0.09$, $\lambda_{qi}=0.09$, $\lambda_{bu}=0.09$, $\lambda_{bi}=0.09$   \\  
    \bottomrule
\end{tabularx}
    \caption{.}
\end{table}
\end{document}

enter image description here

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.