Convert the following for latex figures into a single figure* with subfigures (using…
- User
Convert the following for latex figures into a single figure* with subfigures (using subcaption).
\begin{figure}[h] \centering \includegraphics[width=1\linewidth]{images/top_100_time.pdf} \caption{Baseline (DoRA) model performance on the cloze task (top 100)} \label{fig:blperp} \end{figure}
\begin{figure}[h] \centering \includegraphics[width=1\linewidth]{images/top_100_time_baby.pdf} \caption{Experimental (BabyLlama) model performance on the cloze task (top 100)} \label{fig:blperp} \end{figure}
\begin{figure}[h] \centering \includegraphics[width=1\linewidth]{images/reciprocal_rank_time.pdf} \caption{Baseline (DoRA) model performance on the cloze task (mrr)} \label{fig:blperp} \end{figure}
\begin{figure}[h] \centering \includegraphics[width=1\linewidth]{images/reciprocal_rank_time_baby.pdf} \caption{Experimental (BabyLlama) model performance on the cloze task (mrr)} \label{fig:blperp} \end{figure}
\begin{figure}[h] \centering \includegraphics[width=1\linewidth]{images/probability_of_leakage.pdf} \caption{Probability of Leakage, over pretrained (experimental) and finetuned (baseline) models.} \label{fig:blperp} \end{figure}
- Assistant
Here is the LaTeX code combining all figures into a single figure environment using the subcaption package: latexCopiarEditar\documentclass{article} \usepackage{graphicx} \usepackage{subcaption}
\begin{document}
\begin{figure}[h] \centering \begin{subfigure}[b]{0.49\linewidth} \centering \includegraphics[width=\linewidth]{images/top_100_time.pdf} \caption{Baseline (DoRA) model performance on the cloze task (top 100)} \label{fig:blperp_top100} \end{subfigure} \hfill \begin{subfigure}[b]{0.49\linewidth} \centering \includegraphics[width=\linewidth]{images/top_100_time_baby.pdf} \caption{Experimental (BabyLlama) model performance on the cloze task (top 100)} \label{fig:blperp_top100_baby} \end{subfigure}