We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d144d commit dce3191Copy full SHA for dce3191
src/CompositionalNetworks.jl
@@ -14,6 +14,7 @@ export hamming
14
export lazy
15
export lazy_param
16
export manhattan
17
+export max_icn_length
18
export minkowski
19
export regularization
20
src/icn.jl
@@ -182,3 +182,5 @@ function regularization(icn)
182
end
183
return Σop / (Σmax + 1)
184
185
+
186
+max_icn_length(icn = ICN(param = true)) = length(icn.transformation)
test/icn.jl
@@ -1,5 +1,6 @@
1
# # Test with manually weighted ICN
2
icn = ICN(param=true)
3
+@test max_icn_length() == 18
4
show_layers(icn)
5
icn.weigths = vcat(trues(18), falses(6))
6
@test CN.is_viable(icn)
0 commit comments