내 언더셋은 어떻게 됐나요?

내 언더셋은 어떻게 됐나요?
\hat{y} = \hat{f}(x) = \overset{C}{argmax}\underset{c=1}\> p(y = c|x, D)

다음을 생성합니다.

여기에 이미지 설명을 입력하세요

아래로 \underset내려가려면 어떻게 해야 합니까 ?c=1argmax

답변1

\undersetand를 사용하지 않고 \overset대신 argmax연산자로 선언하는 것이 좋습니다 . 그런 식으로 argmax올바르게 조판됩니다.

여기에 이미지 설명을 입력하세요

\documentclass{article}
\usepackage{amsmath}

\DeclareMathOperator*{\argmax}{argmax}

\begin{document}
\[
\hat{y} = \hat{f}(x) = \argmax_{c=1}^{C}\> p(y = c|x, D)
\]
\end{document}

답변2

\underset다음 부분을 인수 안에 넣으십시오 \overset.

\documentclass{article}
\usepackage{mathtools}

\begin{document}

\[
\hat{y} = \hat{f}(x) = \overset{C}{\underset{c=1}{argmax}}\> p(y = c|x, D)
\]

\end{document}

편집: 또한 argmax는 올바르게 조판되지 않았으며 연산자이므로 기울어진 문자로 렌더링되어서는 안 됩니다.

관련 정보