I tried to use caption*
:
\documentclass{beamer}
\usepackage[lined,boxed,commentsnumbered, ruled,vlined,linesnumbered, french, onelanguage]{algorithm2e}
\usepackage{caption}
\begin{document}
\begin{frame}{Frame 1}
\begin{algorithm}[H]
$test$\;
\caption{alg}
\end{algorithm}
\begin{algorithm}[H]
$test$\;
\caption*{alg}
\end{algorithm}
\end{frame}
\end{document}
Best Answer
Use
\NoCaptionOfAlgo
You can use it in the preamble or locally.\RestoreCaptionOfAlgo
will restore the correct captions.