nndiagram: Generator of 'LaTeX' Code for Drawing Neural Network Diagrams with 'TikZ'

Generates 'LaTeX' code for drawing well-formatted neural network diagrams with 'TikZ'. Users have to define number of neurons on each layer, and optionally define neuron connections they would like to keep or omit, layers they consider to be oversized and neurons they would like to draw with lighter color. They can also specify the title of diagram, color, opacity of figure, labels of layers, input and output neurons. In addition, this package helps to produce 'LaTeX' code for drawing activation functions which are crucial in neural network analysis. To make the code work in a 'LaTeX' editor, users need to install and import some 'TeX' packages including 'TikZ' in the setting of 'TeX' file.

Getting started

Package details

AuthorChencheng Fang [aut, cre]
MaintainerChencheng Fang <ccfang@uni-bonn.de>
LicenseMIT + file LICENSE
Version1.0.0
URL https://github.com/ccfang2/nndiagram
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("nndiagram")

Try the nndiagram package in your browser

Any scripts or data that you put into this service are public.

nndiagram documentation built on April 18, 2023, 5:11 p.m.