机器学习框架

这几天对tikz比较感兴趣,画了张图。还算比较好看。

机器学习组成

这是对应的代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\documentclass[tikz]{standalone}

\usepackage{ctex}
\usepackage{relsize}
\usepackage{bm}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes.misc, positioning,calc,backgrounds}
\usetikzlibrary{shadows}
\usepackage[active,tightpage,pdftex]{preview}
\usetikzlibrary{fit}

\begin{document}

\begin{tikzpicture}[node distance=2.2cm]
\begin{scope}
\node[draw=none,thick, rounded corners=0.5cm,fill=green!40,fit={(0,0) (2,2)}, drop shadow,inner sep=0pt, ,anchor=mid,label=center:{\large \heiti 数据}] (A) {};
\node[draw=none,rounded corners=0.5cm, fill=red!40,fit={(0,0) (2,2)}, drop shadow, inner sep=0pt, label=center:{\large \heiti 模型},right of =A] (B) {};
\node[draw=none,rounded corners=0.5cm, fill=magenta!40,fit={(0,0) (2,2)}, drop shadow,below of=A, inner sep=0pt, label=center:{\large\heiti 最优化}] (C) {};
\node[draw=none,rounded corners=0.5cm, fill=blue!40,fit={(0,0) (2,2)}, drop shadow,right of=C, inner sep=0pt, label=center:{\large\heiti 编程}] (D) {};
\end{scope}


\begin{pgfonlayer}{background}
\node [fill=yellow!30,fit=(A) (B)(C)(D),rounded corners=0.5cm,very thick, drop shadow] (all){};
\node [right =0.3cm of all] (equal) {\mbox{\Huge $=$ }};
\node[draw=none,thick,fill=cyan!40,inner sep=15pt,rounded corners=5pt, right = 0.3cm of equal, drop shadow]{\large \heiti 机器学习};
\end{pgfonlayer}

\end{tikzpicture}

\end{document}

您的支持将鼓励我继续创作,非常感谢!