i want to write class 1 on the the arrow taking to xgboost and class 2 on the arrow…
- User
i want to write class 1 on the the arrow taking to xgboost and class 2 on the arrow taking to TabNet : \begin{figure}[H] \centering \begin{tikzpicture}[scale=1.0, every node/.style={transform shape}] % Input \node[draw, rectangle, minimum height=1cm, minimum width=2cm] (input) at (0, 0) {Input Data};
% Gating Network \node[draw, rectangle, minimum height=1cm, minimum width=3cm] (gating) at (0, -2) {Gating Network (RF)}; % Experts \node[draw, rectangle, minimum height=1cm, minimum width=3cm] (catboost) at (-4, -4) {TabNet}; \node[draw, rectangle, minimum height=1cm, minimum width=3cm] (xgboost) at (4, -4) {XGBoost}; % Expert Predictions \node[draw, rectangle, minimum height=1cm, minimum width=3cm] (catboost_pred) at (-4, -6) {Final prediction}; \node[draw, rectangle, minimum height=1cm, minimum width=3cm] (xgboost_pred) at (4, -6) {Final prediction}; % % Final Output % \node[draw, rectangle, minimum height=1cm, minimum width=3cm] (output) at (0, -8) {Final Prediction}; % Arrows \draw[->] (input) -- (gating); \draw[->] (gating) -- (catboost); \draw[->] (gating) -- (xgboost); \draw[->] (catboost) -- (catboost_pred); \draw[->] (xgboost) -- (xgboost_pred); % \draw[->] (catboost_pred) -- (output); % \draw[->] (xgboost_pred) -- (output); \end{tikzpicture} \caption{Mixture of Experts (RF comme gating network)}\end{figure}
- Assistant
To add the desired labels,
Class 1andClass 2, to the arrows that head towardsXGBoostandTabNet, you can modify the drawing commands for the arrows in the TikZ code. Each arrow command using can be appended with to include text description at a certain position along the arrow. Here is your updated TikZ diagram: - User
not working
- Assistant