CompositionalNetworks.jl
Documentation for CompositionalNetworks.jl
.
Utilities
map_tr!(f, x, X, param)
Return an anonymous function that applies f
to all elements of x
and store the result in X
, with a parameter param
(which is set to nothing
for function with no parameter).
lazy(funcs::Function...)
Generate methods extended to a vector instead of one of its components. A function f
should have the following signature: f(i::Int, x::V)
.
lazy_param(funcs::Function...)
Generate methods extended to a vector instead of one of its components. A function f
should have the following signature: f(i::Int, x::V; param)
.
as_bitvector(n::Int, max_n::Int = n)
Convert an Int to a BitVector of minimal size (relatively to max_n
).
as_int(v::AbstractVector)
Convert a BitVector
into an Int
.
reduce_symbols(symbols, sep)
Produce a formatted string that separates the symbols by sep
. Used internally for show_composition
.
Missing docstring.
Missing docstring for CompositionalNeworks.tr_in
. Check Documenter's build log for details.
Metrics
hamming(x, X)
Compute the hamming distance of x
over a collection of solutions X
, i.e. the minimal number of variables to switch in x
to reach a solution.
Missing docstring.
Missing docstring for weigths_bias
. Check Documenter's build log for details.