Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Repeatedly contract subnets in a neural net until no pattern is found
Get a net:
In[1]:= | ![]() |
Out[1]= | ![]() |
Apply NetContractRepeated on this net:
In[2]:= | ![]() |
Out[2]= | ![]() |
Since there are no layer names separated by "_", NetContractRepeated returns the original net:
In[3]:= | ![]() |
Out[3]= | ![]() |
Get a net:
In[4]:= | ![]() |
Out[4]= | ![]() |
Use the options "MinLength" and "MaxLength" to bound the length of the groups:
In[5]:= | ![]() |
Out[5]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License