\begin{tikzpicture}[baseline]

\pgfplotstableread[col sep=comma]{./data/feature_importance_metrics.csv}{\datatable};
\begin{axis}[
width=1\columnwidth,
height=.7\columnwidth,
ylabel={RMSE ($\downarrow$)},
xlabel={Fraction of remaining covariates},
title={Performance when removing covariates},
ymax=40,
legend style={font=\tiny, 
	fill opacity=0.6, text opacity =1,
        at={(0.02, 0.02)},anchor=south west,
        row sep=-3pt,
        },
legend cell align={left},
% ytick={0, 0.08}, % Define the desired y tick positions
xtick={60, 70, 80, 90, 100}, % Define the desired y tick positions
xticklabels={60\%, 70\%, 80\%, 90\%, 100\%},
yticklabel style={
	% /pgf/number format/fixed, % Use fixed point notation
	% /pgf/number format/precision=2, % Set the number of decimal places
	% /pgf/number format/fixed zerofill, % Fill in trailing zeros
        },
% ymode=log,
]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% GP-RBF
\addplot+ [lightgreen, mark=*, 
mark options={solid},
thick,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_RBF_RMSE_mean,y error=GP_RBF_RMSE_std] {\datatable};


% GP-Laplace
\addplot+ [darkgreen, mark=*, 
mark options={solid},
thick,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_Laplace_RMSE_mean,y error=GP_Laplace_RMSE_std] {\datatable};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% deep Kerlen learning
\addplot+ [gold, mark=*, 
mark options={solid},
thick,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_deepKL_RBF_RMSE_mean,y error=GP_deepKL_RBF_RMSE_std] {\datatable};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% GP-ARD-RBF
\addplot+ [lightblue, mark=*, 
mark options={solid},
thick,
dotted,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_ARD_RBF_RMSE_mean,y error=GP_ARD_RBF_RMSE_std] {\datatable};


% GP-ARD-Laplace
\addplot+ [darkblue, mark=*, 
mark options={solid},
thick,
dotted,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_ARD_Laplace_RMSE_mean,y error=GP_ARD_Laplace_RMSE_std] {\datatable};

% GP-ARD-Laplace-full
\addplot+ [purple, mark=*, 
mark options={solid},
thick,
dotted,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_ARD_Laplace_full_RMSE_mean,y error=GP_ARD_Laplace_full_RMSE_std] {\datatable};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% RFM-full
\addplot+ [black, mark=*, 
mark options={solid},
thick,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_RFM_Laplace_RMSE_mean,y error=GP_RFM_Laplace_RMSE_std] {\datatable};

% RFM-diag
\addplot+ [blackgray, mark=*, 
mark options={solid},
thick,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=GP_RFM_Laplace_diag_RMSE_mean,y error=GP_RFM_Laplace_diag_RMSE_std] {\datatable};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NG-Boost
\addplot+ [orange, mark=*, 
mark options={solid},
thick,
dashed,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=NG_Boost_RMSE_mean,y error=GP_RFM_Laplace_RMSE_std] {\datatable};


% Cat-Boost-Ensemble
\addplot+ [red, mark=*, 
mark options={solid},
thick,
dashed,
% error bars/.cd,
% x dir=both,x explicit,
% y dir=both,y explicit,
% error bar style={solid}
]
table[x=features,y=Cat_Boost_Ensemble_RMSE_mean,y error=Cat_Boost_Ensemble_RMSE_std] {\datatable};



\legend{
    {GP-RBF},
    {GP-Laplace},
    {deep Kernel Learning},
    {GP-ARD-RBF},
    {GP-ARD-Laplace},
    {GP-ARD-Laplace-full},
    {\textbf{GP-RFM-Laplace}}, 
    {\textbf{GP-RFM-Laplace-diag}}, 
    {NGBoost},
    {CatBoost-Ensemble}
}

\end{axis}
\end{tikzpicture}