FNetGraph: an ergonomic alternative to NetGraph

Keywords: FNetGraph, NetGraph, neural networks, machine learning, Wolfram language, how to use netgraph

13 Likes

news-congrads-kkluyshnik-02-04-19.jpg – you have earned Featured Contributor Badge 2015-11-02_10-07-11.png
Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

This is an interesting idea, thanks for suggestion, Alec. I encourage you to submit this to the Wolfram Function Repository (WFR) where it gets reviewed by internal teams. If the design will prove to be fault free and show usability, it might be considered for adoption into the built in architecture.

4 Likes

This is now in the Function Repository!

The new version is named RuleNetGraph, and there have been several improvements:

  1. You can use Subscript to name layers
  2. Pure functions and functions supported by ElementwiseLayer and ThreadingLayer are automagically converted into valid Layers! (ElementwiseLayer taking precedence)
  3. You can provide a list of rules as the input.
ResourceFunction["RuleNetGraph"][LinearLayer[64] -> LogisticSigmoid -> (#*17 + 8 &)]

The implementation is fairly similar aside from some changes to improve usability, but feel free to download the source notebook from the function repository site view the latest changes.

2 Likes

This is very nice and well put together! Thanks for sharing it with the community

3 Likes