Simple Expression Graphs in R
expRess allows you to generate simple expression graphs in R, like the ones you see when reasoning about autodiff and backpropagation.
For instance:
express(f_1(f_2(f_3(x_1, x_2), x_3), f_1(f_4(f_5(x_1), f_6(x_2), x_4)))) %>%
DiagrammeR::render_graph()
will generate:
With devtools:
# install.packages('devtools')
devtools::install_github('gmega/expRess')