我必须写一个方程式(3),它应该部分使用图(1)(2)(显示决策树)。
这可能吗,或者您建议用什么其他方法来实现这一点?
(1)
\begin{figure}
\begin{tikzpicture}
[
sibling distance = 10em,
level distance = 10em,
edge from parent/.style = {draw, -latex},
every node/.style = {font=\footnotesize},
sloped
]
\node [root] {73.3};
\end{tikzpicture}
\label{fig:desicion_tree_F0}
\end{figure}
(2)
\begin{figure}
\begin{center}
\begin{tikzpicture}
[
sibling distance = 6em,
level distance = 3em,
edge from parent/.style = {draw, -latex},
every node/.style = {font=\footnotesize},
sloped
]
\node [root] {Height < 2.3}
child {
node [env][label={[label distance=0.1em]270:$r_{3,1}$},label={[label distance=0em]180:$R_{1,1}$},label={[label distance=1em]270:$\gamma_{1,1} = -13.3$}] { $-13.3$ }
}
child {
node [env][label={[label distance=0.1em]270:$r_{1,1}$, $r_{2,1}$},label={[label distance=0em]0:$R_{2,1}$}, label={[label distance=1em]270:$\gamma_{2,1} = 9.3$}] { $15.6$, $3.0$ }
};
\end{tikzpicture}
\end{center}
\caption{Desicion Tree with Residuals calculated}
\label{fig:desicion_tree_residuals}
\end{figure}
我需要写类似这样的内容:
(3)
\begin{equation}
F_{1} = \ref{fig:desicion_tree_F0} + \lambda * \ref{fig:desicion_tree_residuals}
\end{equation}
但是,如果它不只是引用,如果它能够实际显示与方程式一致的树木,那就太好了。