NetJoin

NetJoin[net1,net2,]

connects a series of NetChain or NetGraph objects to form a single NetChain or NetGraph.

Details

  • NetJoin is typically used to chain two or more networks.
  • All neti except the first one must have one input port. All neti except the last one must have one output port.
  • The output of neti should be compatible with the input of neti+1.
  • Any NetEncoder (resp. NetDecoder) objects will be removed unless they occur on the first (resp. last) layer of the resulting chain and no corresponding "port"->spec is given.
  • NetJoin[net1,net2,,"port"->spec,] can be used to specify types for the input and/or output of the resulting NetChain or NetGraph, using the normal type specifications allowed by NetGraph. The new port specifications will replace any existing NetEncoder, NetDecoder or type.

Examples

open allclose all

Basic Examples  (2)

Join two chains:

Join two chains constructed of named layers:

Scope  (4)

Join two chains and provide input and output types:

Join two NetGraph instances:

Join a NetGraph and a NetChain:

If several layers have the same name, they will be renamed automatically:

Possible Issues  (1)

The output of the final layer in each chain should be compatible with the input of the first layer in the next chain:

Wolfram Research (2018), NetJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/NetJoin.html (updated 2021).

Text

Wolfram Research (2018), NetJoin, Wolfram Language function, https://reference.wolfram.com/language/ref/NetJoin.html (updated 2021).

CMS

Wolfram Language. 2018. "NetJoin." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/NetJoin.html.

APA

Wolfram Language. (2018). NetJoin. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetJoin.html

BibTeX

@misc{reference.wolfram_2024_netjoin, author="Wolfram Research", title="{NetJoin}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/NetJoin.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_netjoin, organization={Wolfram Research}, title={NetJoin}, year={2021}, url={https://reference.wolfram.com/language/ref/NetJoin.html}, note=[Accessed: 18-November-2024 ]}