当前位置:   article > 正文

LATEX-tikz绘制神经网络图_latex神经网络图

latex神经网络图

从官网上的神经网络结构改的一个character-rnn结构示意图:

    流程大概就是先定义节点形状,绘制节点矩阵(&可以代替空节点,用来实现节点对齐),最后绘制节点间的连接曲线。

   更多的绘图技巧有待研究 

 

  1. \documentclass[a4paper,10pt]{article}
  2. \usepackage[english]{babel}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[ansinew]{inputenc}
  5. \usepackage{lmodern} % font definition
  6. \usepackage{amsmath} % math fonts
  7. \usepackage{amsthm}
  8. \usepackage{amsfonts}
  9. \usepackage{tikz}
  10. %%%<
  11. \usepackage{verbatim}
  12. \usepackage[active,tightpage]{preview}
  13. \PreviewEnvironment{tikzpicture}
  14. \setlength\PreviewBorder{5pt}%
  15. %%%>
  16. \begin{comment}
  17. :Title: Kalman Filter System Model
  18. :Slug: kalman-filter
  19. :Author: Burkart Lingner
  20. This is the system model of the (linear) Kalman filter.
  21. \end{comment}
  22. \usetikzlibrary{decorations.pathmorphing} % noisy shapes
  23. \usetikzlibrary{fit} % fitting shapes to coordinates
  24. \usetikzlibrary{backgrounds} % drawing the background after the foreground
  25. \begin{document}
  26. \begin{figure}[htbp]
  27. \centering
  28. % The state vector is represented by a blue circle.
  29. % "minimum size" makes sure all circles have the same size
  30. % independently of their contents.
  31. \tikzstyle{state}=[circle,label=below:$r$,
  32. thick,
  33. minimum size=1.2cm,
  34. draw=blue!80,
  35. fill=blue!20]
  36. \tikzstyle{state2}=[circle,label=below:$e$,
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/612964
推荐阅读
相关标签
  

闽ICP备14008679号