Activation, Matching, and Weight Updates

Implementations selected by model options, together with distributed similarity calculations.

Index

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.

source

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.

source

art_learn

Fuzzy Formulas

basic_activation

basic_match

unnormalized_match

basic_update

gamma_activation

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.

source
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.

source

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.

source

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.

source

x_W_min_norm

W_norm

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.

source

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.

source

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.

source

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.

source

single

average

complete

median

weighted

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.

source