Skip to content
/ ggMLP Public

Draw fully connected neural network diagrams with ggplot2

Notifications You must be signed in to change notification settings

almenal/ggMLP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ggMLP

Need a diagram of a Neural Network and don't feel like drawing 250 lines in PowerPoint/Inkscape? Use ggMLP()!

Depends on ggplot2 and dplyr.

Usage

Simply give as input a vector with the number of nodes per layer.

source("path/to/ggMLP/ggMLP.R")

# A fully connected neural network with 4 layers, each with
# 3, 7, 12 and 3 nodes respectively
nn = c(3, 7, 12, 3)

ggMLP(nn, linewd=.5, node_sep = 'compact')

About

Draw fully connected neural network diagrams with ggplot2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages