WLNet (.wlnet)

Background & Context

    • Used for storing trained and untrained neural nets.
    • Binary format.
    • Developed at Wolfram Research.

Import & Export

Import Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Summary"summary of the file
    "Rules"list of rules for all available elements
  • Import elements include:
  • "Net"the net, including all initialized arrays
    "UninitializedNet"the net, without any arrays
    "ArrayList"parameter arrays as a list
    "ArrayAssociation"parameter arrays as an association
    "WLVersion"version of the Wolfram Language used to create the file

Examples

Basic Examples  (2)

Define a NetChain:

Export this net to the WLNet format:

Import the net:

Define an initialized NetGraph:

Export the net along with its initialized parameters:

Import the network:

Evaluate the net on input data:

This is equivalent to evaluating the original net:

Import a version of the net without any initialized arrays:

Import an association of arrays: