I have an algorithm code and a figure, and I'm trying to put them together in the same row. There is the code:
\centering
\caption{Auto-entrenamiento}
\label{alg_self}
\begin{algorithmic}
\State $m_0 \gets entrenar\_modelo(\mathcal{D}_{l})$
\Repeat
\State $m \gets entrenar\_modelo(\mathcal{D}_{l})$
\For {$x \in \mathcal{D}_{u}$}
\If {max $m(x) > \tau$}
\State $\mathcal{D}_{l} \gets \mathcal{D}_{l} \cup \{(x, p(x))\}$
\EndIf
\EndFor
\Until {las predicciones no sean confiables}
\end{algorithmic}
\end{algorithm}
\begin{figure}[htp]
\centering
\includegraphics[scale=0.35]{imagenes/ssl_self2.png}
\vspace{0.1cm}
\caption{Método semi-supervisado de auto-entrenamiento}
\label{fig:ssl_self}
\end{figure}
\documentclass{...}
and ending with\end{document}
so others can see exactly what's wrong.