alabnii/sciclaimeval-shared-task huggingface dataset:
\documentclass[varwidth=598pt]{standalone}

\usepackage{booktabs} % professional-quality tables
\usepackage{multirow} % multi-row cells in tables
\usepackage{colortbl} % color for tables (\cellcolor, \rowcolor)
\usepackage[table]{xcolor} % enhanced colors for tables
\usepackage{array} % more flexible column formats (often used)
\usepackage{tabularx} % for tables with auto-stretch columns (if used)
\usepackage{graphicx} % for images in tables or figure/table floats
\usepackage{amssymb} % math symbols
\usepackage{amsmath} % math environments
\usepackage{soul} % highlighting (used for colored text/cells)
\usepackage[normalem]{ulem} % underlining, strikethroughs
\usepackage[T1]{fontenc} % font encoding
\usepackage[utf8]{inputenc}% input encoding (legacy, fine for pdflatex)
\usepackage{microtype} % better text appearance
\usepackage{hyperref} % hyperlinks
\usepackage{textcomp} % for extra symbols
\usepackage{enumitem} % for compact lists (if used in table notes)
\usepackage{adjustbox}
\usepackage{tabu}
\usepackage{pifont} % http://ctan.org/pkg/pifont
\usepackage{bbding} % \XSolidBrush
\usepackage{makecell}

\begingroup
\makeatletter
\renewcommand{\fnum@table}{}%
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip \centering #2\par \vskip\belowcaptionskip }
\makeatother

\begin{document}
\begin{table}
\centering
\begin{adjustbox}
{max width=\textwidth}
\begin{tabular}{l|lr|cccc|cccc}
\toprule Dataset & M & N & ROC-AUC & ECE & C@80 \\
\midrule \multirow{8}{*}{NQ} & \multirow{4}{*}{D} & 3 & 0.749 & 0.132 & 40.8 \\
& & 5 & 0.791 & 0.086 & 44.2 \\
& & 8 & 0.806 & 0.125 & 43.9 \\
& & 10 & 0.814 & 0.152 & 44.8 \\
\cmidrule(r){2-6} & \multirow{4}{*}{R} & 3 & 0.789 & 0.155 & 43.3 \\
& & 5 & 0.811 & 0.116 & 45.0 \\
& & 8 & 0.826 & 0.099 & 45.3 \\
& & 10 & 0.830 & 0.103 & 45.4 \\
\midrule \multirow{8}{*}{AmbigQA} & \multirow{4}{*}{D} & 3 & 0.650 & 0.297 & 12.1 \\
& & 5 & 0.719 & 0.218 & 12.5 \\
& & 8 & 0.755 & 0.148 & 16.8 \\
& & 10 & 0.767 & 0.114 & 16.1 \\
\cmidrule(r){2-6} & \multirow{4}{*}{R} & 3 & 0.769 & 0.152 & 16.7 \\
& & 5 & 0.801 & 0.130 & 24.3 \\
& & 8 & 0.815 & 0.120 & 26.9 \\
& & 10 & 0.821 & 0.120 & 26.2 \\
\bottomrule
\end{tabular}
\end{adjustbox}
\caption{Table 3: Calibration by number of samples (N). EM is excluded, because
it is solely based on the greedy answer and does not depend on the number of
samples.}
\end{table}
\end{document}