\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{tabularx,ragged2e,booktabs}
\begin{document}
\begin{table*}[!ht]
\caption{Evaluation results}
\centering
\setlength{\tabcolsep}{4pt}
\begin{tabularx}{\textwidth}{>{\hsize=1.9\hsize\bfseries\RaggedRight}X!{\extracolsep{\fill}}*{6}{>{\centering\arraybackslash\hsize=0.48\hsize}X}}
\toprule[1pt]\midrule[0.3pt]
\multicolumn{7}{c}{\textbf{ABC Metrics}} \\ \midrule[0.3pt]
\textbf{Algorithm}& \multicolumn{2}{c}{\textit{Algo 1}} & \multicolumn{2}{c}{\textit{Algo 2}} & \multicolumn{2}{c}{\textit{Algo 3}} \\
\cmidrule(lr){2-3} \cmidrule(lr){4-5} \cmidrule(lr){6-7}%
{Dataset} & $D_1$ & $D_2$ & $D_1$ & $D_2$ & $D_1$ & $D_2$ \\
\addlinespace%
{Matric 1} & 0 & 0 & 0 & 0 & 0 & 0 \\
\addlinespace%
{Matric 2} & 0 & 0 & 0 & 0 & 0 & 0 \\
\addlinespace%
{Matric 3} & 0 & 0 & 0 & 0 & 0 & 0 \\
\addlinespace
{Matric 4} & 0 & 0 & 0 & 0 & 0 & 0 \\
\midrule
\multicolumn{7}{c}{\textbf{XYZ Metrics}} \\ \midrule[0.3pt]
\textbf{Algorithm}& \multicolumn{2}{c}{\textit{Algo 1}} & \multicolumn{2}{c}{\textit{Algo 2}} & \multicolumn{2}{c}{\textit{Algo 3}} \\
\cmidrule(lr){2-3} \cmidrule(lr){4-5} \cmidrule(lr){6-7}%
{Matric 5} & \multicolumn{2}{c}{0} & \multicolumn{2}{c}{0} & \multicolumn{2}{c}{0} \\ \addlinespace
{Matric 6} & \multicolumn{2}{c}{0} & \multicolumn{2}{c}{0} & \multicolumn{2}{c}{0} \\
\midrule[0.3pt]\bottomrule[1pt]
\end{tabularx}
\end{table*}
\end{document}