\begin{tikzpicture}
\begin{axis}[
xlabel={ Build+Query time (s) },
ylabel={ RMSE },
xmode = log,
ymode = log,
grid=major,
yticklabel style={/pgf/number format/fixed,
/pgf/number format/precision=3},
legend style = { anchor=west},
cycle list name = black white
]
\addplot [only marks] coordinates {
(5.861926794052124, 0.0)
(1.9177634716033936, 1.5151004990751322e-07)
(4.442528247833252, 0.0028137734447442053)
(0.9818859100341797, inf)
(14.480695962905884, inf)
(9.240844964981079, nan)
};
\addlegendentry{ bruteforce-product-blas };
\addplot [only marks] coordinates {
(0.08866262435913086, 3.080779884969069e-13)
(0.10689783096313477, 0.0011638864406627314)
(0.06777000427246094, 0.0027906812542574677)
(0.06621217727661133, 0.003003650682678019)
(0.0812845230102539, 0.06756664521088644)
(0.06328701972961426, 0.06762697977728244)
};
\addlegendentry{ htool-product };
\end{axis}
\end{tikzpicture}