Activation, Matching, and Weight Updates
Implementations selected by model options, together with distributed similarity calculations.
Index
art_activation,art_match,art_learnbasic_activation,basic_match,unnormalized_match,basic_update,gamma_activation,gamma_match,gamma_match_sub,choice_by_difference,x_W_min_norm,W_normhypersphere_activation,hypersphere_match,hypersphere_updatesimilarity,single,average,complete,median,weighted,centroid
Dispatch Helpers
art_activation
AdaptiveResonance.art_activation — Function
art_activation(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
index::Integer,
args...
) -> Any
Summary
Evaluates the activation function of the ART/ARTMAP module on the sample 'x' with weight 'W'.
Passes additional arguments for low-level optimizations using function dispatch.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.index::Integer: the index of the weight column to use.
Method List / Definition Locations
art_activation(art, x, index, args)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:140.
art_match
AdaptiveResonance.art_match — Function
art_match(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
index::Integer,
args...
) -> Any
Summary
Evaluates the match function of the ART/ARTMAP module on sample 'x' with weight 'W'.
Passes additional arguments for low-level optimizations using function dispatch.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.index::Integer: the index of the weight column to use.
Method List / Definition Locations
art_match(art, x, index, args)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:126.
art_learn
AdaptiveResonance.art_learn — Function
art_learn(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
index::Integer
) -> Any
Summary
Evaluates the ART module's learning/update method.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.index::Integer: the index of the weight column to use.
Method List / Definition Locations
art_learn(art, x, index)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:161.
Fuzzy Formulas
basic_activation
AdaptiveResonance.basic_activation — Function
basic_activation(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Simplified FuzzyARTMAP activation function.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
basic_activation(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:59.
basic_match
AdaptiveResonance.basic_match — Function
basic_match(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Basic match function.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
basic_match(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:39.
unnormalized_match
AdaptiveResonance.unnormalized_match — Function
unnormalized_match(
_::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Unnormalized match function.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
unnormalized_match(_, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:49.
basic_update
AdaptiveResonance.basic_update — Function
basic_update(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Basic weight update function.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
basic_update(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:149.
gamma_activation
AdaptiveResonance.gamma_activation — Function
gamma_activation(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Gamma-normalized activation funtion.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
gamma_activation(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:100.
gamma_match
AdaptiveResonance.gamma_match — Function
gamma_match(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Gamma-normalized match function, recomputing the gamma activation value.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
gamma_match(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:81.
gamma_match(
art::ARTModule,
_::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real,
gamma_act::Real
) -> Any
Summary
Gamma-normalized match function, passing a precomputed gamma activation value.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
gamma_act::Real: the precomputed gamma activation value.
Method List / Definition Locations
gamma_match(art, _, W, gamma_act)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:91.
gamma_match_sub
AdaptiveResonance.gamma_match_sub — Function
gamma_match_sub(
art::ARTModule,
W::AbstractVector{T} where T<:Real,
gamma_act::Real
) -> Any
Summary
Low-level subroutine for the gamma match function with a precomputed gamma activation.
Arguments
art::ARTModule: the ARTModule module.W::RealVector: the weight vector to use.gamma_act::Real: the precomputed gamma activation value.
Method List / Definition Locations
gamma_match_sub(art, W, gamma_act)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:72.
choice_by_difference
AdaptiveResonance.choice_by_difference — Function
choice_by_difference(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Default ARTMAP's choice-by-difference activation function.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
choice_by_difference(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:109.
x_W_min_norm
AdaptiveResonance.x_W_min_norm — Function
x_W_min_norm(
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Low-level common function for computing the 1-norm of the element minimum of a sample and weights.
Arguments
x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
x_W_min_norm(x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:19.
W_norm
AdaptiveResonance.W_norm — Function
W_norm(W::AbstractVector{T} where T<:Real) -> Any
Summary
Low-level common function for computing the 1-norm of just the weight vector.
Arguments
W::RealVector: the weight vector to use.
Method List / Definition Locations
W_norm(W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:30.
Hypersphere Formulas
hypersphere_activation
AdaptiveResonance.hypersphere_activation — Function
hypersphere_activation(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Hypersphere ART activation for weights stored as [center; radius]. Requires an effective radial extent art.r_bar.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
hypersphere_activation(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:171.
hypersphere_match
AdaptiveResonance.hypersphere_match — Function
hypersphere_match(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Hypersphere ART match for weights stored as [center; radius]. Requires an effective radial extent art.r_bar.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
hypersphere_match(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:183.
hypersphere_update
AdaptiveResonance.hypersphere_update — Function
hypersphere_update(
art::ARTModule,
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Hypersphere ART update for weights stored as [center; radius]. Returns updated weights without modifying the supplied weight vector. Interior and center points leave the sphere unchanged.
Arguments
art::ARTModule: the ARTModule module.x::RealVector: the sample vector to use.W::RealVector: the weight vector to use.
Method List / Definition Locations
hypersphere_update(art, x, W)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/symbols.jl:195.
Distributed Similarity
similarity
AdaptiveResonance.similarity — Function
similarity(
method::Symbol,
F2::FuzzyART,
sample::AbstractVector{T} where T<:Real,
activation::Bool
) -> Any
Summary
Compute the similarity metric depending on method with explicit comparisons for the field name.
Arguments
method::Symbol: the linkage method to use.F2::FuzzyART: the DDVFA FuzzyART F2 node to compute the linkage method within.sample::RealVector: the sample to use for computing the linkage to the F2 module.activation::Bool: flag to use the activation function. False uses the match function.
Method List / Definition Locations
similarity(method, F2, sample, activation)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:377.
single
AdaptiveResonance.single — Function
single(field::AbstractVector{T} where T<:Real) -> Any
Summary
Single linkage DDVFA similarity function.
Arguments
field::RealVector: the DDVFA FuzzyART F2 node field (F2.T or F2.M) to compute the linkage for.
Method List / Definition Locations
single(field)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:409.
average
AdaptiveResonance.average — Function
average(field::AbstractVector{T} where T<:Real) -> Any
Summary
Average linkage DDVFA similarity function.
Arguments
field::RealVector: the DDVFA FuzzyART F2 node field (F2.T or F2.M) to compute the linkage for.
Method List / Definition Locations
average(field)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:418.
complete
AdaptiveResonance.complete — Function
complete(field::AbstractVector{T} where T<:Real) -> Any
Summary
Complete linkage DDVFA similarity function.
Arguments
field::RealVector: the DDVFA FuzzyART F2 node field (F2.T or F2.M) to compute the linkage for.
Method List / Definition Locations
complete(field)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:427.
median
AdaptiveResonance.median — Function
median(field::AbstractVector{T} where T<:Real) -> Any
Summary
Median linkage DDVFA similarity function.
Arguments
field::RealVector: the DDVFA FuzzyART F2 node field (F2.T or F2.M) to compute the linkage for.
Method List / Definition Locations
median(field)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:436.
weighted
AdaptiveResonance.weighted — Function
weighted(F2::FuzzyART, activation::Bool) -> Float64
Summary
Weighted linkage DDVFA similarity function.
Arguments:
F2::FuzzyART: the DDVFA FuzzyART F2 node to compute the linkage method within.activation::Bool: flag to use the activation function. False uses the match function.
Method List / Definition Locations
weighted(F2, activation)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:447.
centroid
AdaptiveResonance.centroid — Function
centroid(
F2::FuzzyART,
sample::AbstractVector{T} where T<:Real,
activation::Bool
) -> Any
Summary
Centroid linkage DDVFA similarity function.
Arguments:
F2::FuzzyART: the DDVFA FuzzyART F2 node to compute the linkage method within.sample::RealVector: the sample to use for computing the linkage to the F2 module.activation::Bool: flag to use the activation function. False uses the match function.
Method List / Definition Locations
centroid(F2, sample, activation)defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:465.