Developer Index
This page lists the types and functions that are internal to the AdaptiveResonance.jl
package. Because they are not part of the public API, these names might change relatively frequently between versions and so should not be relied upon.
All internal names are listed in the Index, and each of these entries link to the docstrings in the Docs section.
Index
This section contains a list of internal names that link to their corresponding Documentation.
Methods
AdaptiveResonance.W_norm
AdaptiveResonance.accommodate_vector!
AdaptiveResonance.activation_match!
AdaptiveResonance.art_activation
AdaptiveResonance.art_learn
AdaptiveResonance.art_match
AdaptiveResonance.average
AdaptiveResonance.basic_activation
AdaptiveResonance.basic_match
AdaptiveResonance.basic_update
AdaptiveResonance.build_art_stats
AdaptiveResonance.centroid
AdaptiveResonance.choice_by_difference
AdaptiveResonance.color_to_gray
AdaptiveResonance.competition_kernel
AdaptiveResonance.complete
AdaptiveResonance.contrast_insensitive_oriented_filtering
AdaptiveResonance.contrast_normalization
AdaptiveResonance.contrast_sensitive_oriented_filtering
AdaptiveResonance.create_category!
AdaptiveResonance.create_category!
AdaptiveResonance.create_category!
AdaptiveResonance.ddt_x
AdaptiveResonance.ddt_y
AdaptiveResonance.ddt_z
AdaptiveResonance.element_min
AdaptiveResonance.gamma_activation
AdaptiveResonance.gamma_match
AdaptiveResonance.gamma_match
AdaptiveResonance.gamma_match_sub
AdaptiveResonance.get_data_shape
AdaptiveResonance.get_dim
AdaptiveResonance.get_iterator
AdaptiveResonance.get_n_samples
AdaptiveResonance.get_n_weights
AdaptiveResonance.get_n_weights_vec
AdaptiveResonance.get_sample
AdaptiveResonance.init_classify!
AdaptiveResonance.init_train!
AdaptiveResonance.init_train!
AdaptiveResonance.initialize!
AdaptiveResonance.initialize!
AdaptiveResonance.learn!
AdaptiveResonance.learn!
AdaptiveResonance.log_art_stats!
AdaptiveResonance.median
AdaptiveResonance.orientation_competition
AdaptiveResonance.oriented_kernel
AdaptiveResonance.patch_orientation_color
AdaptiveResonance.replace_mat_index!
AdaptiveResonance.set_threshold!
AdaptiveResonance.similarity
AdaptiveResonance.single
AdaptiveResonance.stopping_conditions
AdaptiveResonance.surround_kernel
AdaptiveResonance.unnormalized_match
AdaptiveResonance.unsafe_replace_mat_index!
AdaptiveResonance.update_iter
AdaptiveResonance.weighted
AdaptiveResonance.x_W_min_norm
Types
AdaptiveResonance.ARTIterator
AdaptiveResonance.ARTMatrix
AdaptiveResonance.ARTStats
AdaptiveResonance.ARTVector
AdaptiveResonance.AbstractFuzzyART
AdaptiveResonance.MergeART
AdaptiveResonance.opts_MergeART
Constants
AdaptiveResonance.ACTIVATION_FUNCTIONS_DOCS
AdaptiveResonance.ART_DIM
AdaptiveResonance.ART_SAMPLES
AdaptiveResonance.MATCH_FUNCTIONS_DOCS
AdaptiveResonance._ARGS_MATRIX_REPLACE
AdaptiveResonance._ARG_ART
AdaptiveResonance._ARG_ART_X_W
AdaptiveResonance._ARG_INDEX
AdaptiveResonance._ARG_W
AdaptiveResonance._ARG_X
AdaptiveResonance._COMMON_DOC
AdaptiveResonance._OPTS_DOCSTRING
Docs
Documentation for all internal names are listed below.
AdaptiveResonance.ACTIVATION_FUNCTIONS_DOCS
— ConstantACTIVATIONFUNCTIONSDOCS
Description
Common docstring for listing available activation functions.
AdaptiveResonance.ARTIterator
— TypeARTIterator
Description
Acceptable iterators for ART module training and inference
AdaptiveResonance.ART_DIM
— ConstantART_DIM
Description
AdaptiveResonance.jl convention for which 2-D dimension contains the feature dimension.
AdaptiveResonance.ART_SAMPLES
— ConstantART_SAMPLES
Description
AdaptiveResonance.jl convention for which 2-D dimension contains the number of samples.
AdaptiveResonance.MATCH_FUNCTIONS_DOCS
— ConstantMATCHFUNCTIONSDOCS
Description
Common docstring for listing available match functions.
AdaptiveResonance._ARGS_MATRIX_REPLACE
— ConstantARGSMATRIX_REPLACE
Description
Common docstring: shared arguments string for functions updating a column in a matrix.
AdaptiveResonance._ARG_ART
— ConstantARGART
Description
Common docstring: shared argument docstring for ART module arguments.
AdaptiveResonance._ARG_ART_X_W
— ConstantARGARTXW
Description
Common docstring: shared arguments string for methods using an ART module, sample 'x', and weight vector 'W'.
AdaptiveResonance._ARG_INDEX
— ConstantARGINDEX
Description
Common docstring: shared argument docstring for the index of the weight column.
AdaptiveResonance._ARG_W
— ConstantARGW
Description
Common docstring: shared argument docstring for the weight vector.
AdaptiveResonance._ARG_X
— ConstantARGX
Description
Common docstring: shared argument docstring for the input sample of features.
AdaptiveResonance._COMMON_DOC
— ConstantCOMMONDOC
Description
Docstring prefix denoting that the constant is used as a common docstring element for other docstrings.
AdaptiveResonance._OPTS_DOCSTRING
— ConstantOPTSDOCSTRING
Description
Common docstring: shared options docstring, inserted at the end of opts_<...>
structs.
AdaptiveResonance.ARTMatrix
— TypeARTMatrix
Description
The type of matrix used by the AdaptiveResonance.jl package, used to configure matrix growth behavior.
AdaptiveResonance.ARTStats
— TypeARTStats
Description
Definition of the ART module statistics dictionary, used to generate and store various logs during training and testing.
AdaptiveResonance.ARTVector
— TypeARTVector
Description
The type of vector used by the AdaptiveResonance.jl package, used to configure vector growth behvior.
AdaptiveResonance.AbstractFuzzyART
— Typeabstract type AbstractFuzzyART <: ART
Summary
Abstract supertype of FuzzyART modules.
Fields
AdaptiveResonance.MergeART
— Typemutable struct MergeART <: ART
Summary
MergeART module struct.
For module options, see AdaptiveResonance.opts_MergeART
.
References
- L. E. Brito da Silva, I. Elnabarawy, and D. C. Wunsch, 'Distributed dual vigilance fuzzy adaptive resonance theory learns online, retrieves arbitrarily-shaped clusters, and mitigates order dependence,' Neural Networks, vol. 121, pp. 208-228, 2020, doi: 10.1016/j.neunet.2019.08.033.
- G. Carpenter, S. Grossberg, and D. Rosen, 'Fuzzy ART: Fast stable learning and categorization of analog patterns by an adaptive resonance system,' Neural Networks, vol. 4, no. 6, pp. 759-771, 1991.
Fields
opts::opts_DDVFA
: DDVFA options struct.
subopts::opts_FuzzyART
: FuzzyART options struct used for all F2 nodes.
config::DataConfig
: Data configuration struct.
threshold::Float64
: Operating module threshold value, a function of the vigilance parameter.
F2::Vector{FuzzyART}
: List of F2 nodes (themselves FuzzyART modules).
labels::Vector{Int64}
: Incremental list of labels corresponding to each F2 node, self-prescribed or supervised.
n_categories::Int64
: Number of total categories.
epoch::Int64
: Current training epoch.
T::Vector
: DDVFA activation values.
M::Vector
: DDVFA match values.
stats::Dict{String, Any}
: Runtime statistics for the module, implemented as a dictionary containing entries at the end of each training iteration. These entries include the best-matching unit index and the activation and match values of the winning node.
AdaptiveResonance.opts_MergeART
— Typemutable struct opts_MergeART <: ARTOpts
Summary
MergeART options struct.
These options are a Parameters.jl
struct, taking custom options keyword arguments. Each field has a default value listed below.
Fields
rho_lb::Float64
: Lower-bound vigilance parameter: rho_lb ∈ [0, 1]. Default: 0.7rho_ub::Float64
: Upper bound vigilance parameter: rho_ub ∈ [0, 1]. Default: 0.85alpha::Float64
: Choice parameter: alpha > 0. Default: 0.001beta::Float64
: Learning parameter: beta ∈ (0, 1]. Default: 1.0gamma::Float64
: Pseudo kernel width: gamma >= 1. Default: 3.0gamma_ref::Float64
: Reference gamma for normalization: 0 <= gamma_ref < gamma. Default: 1.0similarity::Symbol
: Similarity method (activation and match): similarity ∈ [:single, :average, :complete, :median, :weighted, :centroid]. Default: :singlemax_epoch::Int64
: Maximum number of epochs during training: max_epochs ∈ (1, Inf). Default: 1display::Bool
: Display flag for progress bars. Default: falsegamma_normalization::Bool
: Flag to normalize the threshold by the feature dimension. Default: trueuncommitted::Bool
: Flag to use an uncommitted node when learning.If true, new weights are created with ones(dim) and learn on the complement-coded sample. If false, fast-committing is used where the new weight is simply the complement-coded sample. Default: false
activation::Symbol
: Selected activation function. Default: :gamma_activationmatch::Symbol
: Selected match function. Default: :gamma_matchupdate::Symbol
: Selected weight update function. Default: :basic_updatesort::Bool
: Flag to sort the F2 nodes by activation before the match phaseWhen true, the F2 nodes are sorted by activation before match. When false, an iterative argmax and inhibition procedure is used to find the best-matching unit. Default: false
AdaptiveResonance.W_norm
— MethodW_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
.
AdaptiveResonance.accommodate_vector!
— Methodaccommodate_vector!(vec::Array{T, 1}, goal_len::Integer)
Summary
Extends a vector to a goal length with zeros of its element type to accommodate in-place updates.
Arguments
vec::Vector{T}
: a vector of arbitrary element type.goal_len::Integer
: the length that the vector should be.
Method List / Definition Locations
accommodate_vector!(vec, goal_len)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/subroutines.jl:39
.
AdaptiveResonance.activation_match!
— Methodactivation_match!(
art::AdaptiveResonance.AbstractFuzzyART,
x::AbstractVector{T} where T<:Real
)
Summary
Computes the activation and match functions of the ART module against sample x.
Arguments
art::AbstractFuzzyART
: the single FuzzyART module to compute the activation and match values for all weights.x::RealVector
: the sample to compute the activation and match functions against.
Examples
julia> my_FuzzyART = FuzzyART()
FuzzyART
opts: opts_FuzzyART
...
julia> x = rand(3, 10)
julia> train!(my_FuzzyART, x)
julia> activation_match!(my_FuzzyART, x[:, 1])
Method List / Definition Locations
activation_match!(art, x)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/common.jl:51
.
AdaptiveResonance.art_activation
— Methodart_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
.
AdaptiveResonance.art_learn
— Methodart_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
.
AdaptiveResonance.art_match
— Methodart_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
.
AdaptiveResonance.average
— Methodaverage(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:521
.
AdaptiveResonance.basic_activation
— Methodbasic_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
.
AdaptiveResonance.basic_match
— Methodbasic_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
.
AdaptiveResonance.basic_update
— Methodbasic_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
.
AdaptiveResonance.build_art_stats
— Methodbuild_art_stats() -> Dict{String, Any}
Summary
Initializes an ARTStats dictionary with zero entries.
Method List / Definition Locations
build_art_stats()
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:138
.
AdaptiveResonance.centroid
— Methodcentroid(
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:568
.
AdaptiveResonance.choice_by_difference
— Methodchoice_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
.
AdaptiveResonance.color_to_gray
— Methodcolor_to_gray(image::Array{T<:AbstractFloat, 3}) -> Matrix
Summary
ARTSCENE Stage 1: Color-to-gray image transformation.
Method List / Definition Locations
color_to_gray(image)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:23
.
AdaptiveResonance.competition_kernel
— Methodcompetition_kernel(l::Integer, k::Integer; sign) -> Any
Summary
Competition kernel for ARTSCENE: Stage 5.
Method List / Definition Locations
competition_kernel(l, k; sign)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:195
.
AdaptiveResonance.complete
— Methodcomplete(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:530
.
AdaptiveResonance.contrast_insensitive_oriented_filtering
— Methodcontrast_insensitive_oriented_filtering(
y::AbstractArray{T} where T<:Real
) -> Any
Summary
ARTSCENE Stage 4: Contrast-insensitive oriented filtering.
Method List / Definition Locations
contrast_insensitive_oriented_filtering(y)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:182
.
AdaptiveResonance.contrast_normalization
— Methodcontrast_normalization(
image::AbstractArray{T} where T<:Real
) -> Any
Summary
ARTSCENE Stage 2: Constrast normalization.
Method List / Definition Locations
contrast_normalization(image)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:65
.
AdaptiveResonance.contrast_sensitive_oriented_filtering
— Methodcontrast_sensitive_oriented_filtering(
image::AbstractArray{T} where T<:Real,
x::AbstractArray{T} where T<:Real
) -> Any
Summary
ARTSCENE Stage 3: Contrast-sensitive oriented filtering.
Method List / Definition Locations
contrast_sensitive_oriented_filtering(image, x)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:151
.
AdaptiveResonance.create_category!
— MethodSummary
Creates a category for the ARTModule module, expanding the weights and incrementing the category labels.
Arguments
art::ARTModule
: the ARTModule module to add a category to.x::RealVector
: the sample to use for adding a category.y::Integer
: the new label for the new category.
Method List / Definition Locations
create_category!(art, sample, label)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:438
.
create_category!(art, x, y; new_cluster)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/modules/DVFA.jl:245
.
create_category!(art, x, y)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/modules/FuzzyART.jl:277
.
create_category!(art, x, y)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/SFAM.jl:213
.
AdaptiveResonance.create_category!
— Methodcreate_category!(
art::DDVFA,
sample::AbstractVector{T} where T<:Real,
label::Integer
) -> Vector{FuzzyART}
Summary
Create a new category by appending and initializing a new FuzzyART node to F2.
Arguments
art::DDVFA
: the DDVFA module to create a new FuzzyART category in.sample::RealVector
: the sample to use for instantiating the new category.label::Integer
: the new label to use for the new category.
Method List / Definition Locations
create_category!(art, sample, label)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:438
.
AdaptiveResonance.create_category!
— Methodcreate_category!(
art::DVFA,
x::AbstractVector{T} where T<:Real,
y::Integer;
new_cluster
) -> Vector{Int64}
Summary
Creates a new category for the DVFA modules.
Arguments
art::DVFA
: the DVFA module to add a category to.x::RealVector
: the sample to use for adding a category.y::Integer
: the new label for the new category.
Method List / Definition Locations
create_category!(art, x, y; new_cluster)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/modules/DVFA.jl:245
.
AdaptiveResonance.ddt_x
— Methodddt_x(
x::AbstractArray{T} where T<:Real,
image::AbstractArray{T} where T<:Real,
sigma_s::AbstractArray{T} where T<:Real
) -> SharedArrays.SharedArray{Float64, 3}
Summary
Time rate of change of LGN network (ARTSCENE Stage 2).
Method List / Definition Locations
ddt_x(x, image, sigma_s)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:39
.
AdaptiveResonance.ddt_y
— Methodddt_y(
y::AbstractArray{T} where T<:Real,
X_plus::AbstractArray{T} where T<:Real,
X_minus::AbstractArray{T} where T<:Real,
alpha::Real
) -> SharedArrays.SharedArray{Float64, 4}
Summary
Shunting equation for ARTSCENE Stage 3.
Method List / Definition Locations
ddt_y(y, X_plus, X_minus, alpha)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:112
.
AdaptiveResonance.ddt_z
— Methodddt_z(
z::AbstractArray{T} where T<:Real
) -> SharedArrays.SharedArray{Float64, 4}
Summary
Time rate of change for ARTSCENE: Stage 5.
Method List / Definition Locations
ddt_z(z)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:211
.
AdaptiveResonance.element_min
— Methodelement_min(
x::AbstractVector{T} where T<:Real,
W::AbstractVector{T} where T<:Real
) -> Any
Summary
Returns the element-wise minimum between sample x and weight W.
Arguments
x::RealVector
: the input sample.W::RealVector
: the weight vector to compare the sample against.
Method List / Definition Locations
element_min(x, W)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:178
.
AdaptiveResonance.gamma_activation
— Methodgamma_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
.
AdaptiveResonance.gamma_match
— Methodgamma_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
.
AdaptiveResonance.gamma_match
— Methodgamma_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
.
AdaptiveResonance.gamma_match_sub
— Methodgamma_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
.
AdaptiveResonance.get_data_shape
— Methodget_data_shape(
data::AbstractMatrix{T} where T<:Real
) -> Tuple{Any, Any}
Summary
Returns the (dim, n_samples) of the provided 2-D data matrix, enforcing the ART package convention.
Arguments
data::RealMatrix
: the 2-D data to infer the feature dimension and number of samples from.
Method List / Definition Locations
get_data_shape(data)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:249
.
AdaptiveResonance.get_dim
— Methodget_dim(data::AbstractMatrix{T} where T<:Real) -> Any
Summary
Returns the dimension of the data, enforcint the (dim, n_samples) convention of the package.
Arguments
data::RealMatrix
: the 2-D data to infer the feature dimension of.
Method List / Definition Locations
get_dim(data)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:227
.
AdaptiveResonance.get_iterator
— Methodget_iterator(opts::ARTOpts, n_samples::Integer) -> Any
Summary
Creates an iterator object according to the ART/ARTMAP modules display settings for batch iteration.
Arguments
opts::ARTOpts
: the ART/ARTMAP module's options containing display settings.n_samples::Integer
: the number of iterations to create the iterator for.
Method List / Definition Locations
get_iterator(opts, n_samples)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:417
.
AdaptiveResonance.get_n_samples
— Methodget_n_samples(data::AbstractMatrix{T} where T<:Real) -> Any
Summary
Returns the number of samples, enforcing the convention of the package.
Arguments
data::RealMatrix
: the 2-D data to infer the number of samples from.
Method List / Definition Locations
get_n_samples(data)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:238
.
AdaptiveResonance.get_n_weights
— Methodget_n_weights(art::DDVFA) -> Int64
Summary
Convenience function; return the sum total number of weights in the DDVFA module.
Method List / Definition Locations
get_n_weights(art)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:609
.
AdaptiveResonance.get_n_weights_vec
— Methodget_n_weights_vec(art::DDVFA) -> Vector{Int64}
Summary
Convenience function; return the number of weights in each category as a vector.
Arguments
art::DDVFA
: the DDVFA module to get all of the weights from as a list.
Method List / Definition Locations
get_n_weights_vec(art)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:602
.
AdaptiveResonance.get_sample
— Methodget_sample(
x::AbstractMatrix{T} where T<:Real,
i::Integer
) -> Any
Summary
Returns a sample from data array x
at sample location i
. This function implements the convention that columns are samples while rows are features within samples.
Arguments
x::RealMatrix
: the batch of data to grab a sample from.i::Integer
: the index to get the sample from.
Method List / Definition Locations
get_sample(x, i)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:453
.
AdaptiveResonance.init_classify!
— Methodinit_classify!(
x::AbstractArray{T} where T<:Real,
art::ARTModule,
preprocessed::Bool
) -> Any
Summary
Initializes the classification loop for batch inference.
Arguments
x::RealArray
: the data that is used for inference.art::ARTModule
: the ART/ARTMAP module that will be used for inference.preprocessed::Bool
: required flag for if the data has already been complement coded and normalized.
Method List / Definition Locations
init_classify!(x, art, preprocessed)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:519
.
AdaptiveResonance.init_train!
— Methodinit_train!(
x::AbstractMatrix{T} where T<:Real,
art::ARTModule,
preprocessed::Bool
) -> Any
Summary
Initializes the training loop for batch learning.
Arguments
x::RealMatrix
: the data that is used for training.art::ARTModule
: the ART/ARTMAP that will be trained.preprocessed::Bool
: required flag for if the data has already been complement coded and normalized.
Method List / Definition Locations
init_train!(x, art, preprocessed)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:501
.
AdaptiveResonance.init_train!
— Methodinit_train!(
x::AbstractVector{T} where T<:Real,
art::ARTModule,
preprocessed::Bool
) -> AbstractVector{T} where T<:Real
Summary
Initializes the module for training in a single iteration.
The purpose of this function is mainly to handle the conditions of complement coding. Fails if the module was incorrectly set up or if the module was not setup and the data was not preprocessed.
Arguments
x::RealVector
: the sample used for initialization.art::ARTModule
: the ART/ARTMAP module that will be trained on the sample.preprocessed::Bool
: a required flag for if the sample has already been complement coded and normalized.
Method List / Definition Locations
init_train!(x, art, preprocessed)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:470
.
AdaptiveResonance.initialize!
— MethodSummary
Initializes the ART module for training with sample 'x' and optional label 'y', setting up the data configuration and instantiating the first category.
This function is used during the first training iteration when the ART module is empty.
Arguments
art::ART
: the ART module to initialize.x::RealVector
: the sample to use for initialization.y::Integer=0
: the optional new label for the first weight of the ART module. If not specified, defaults the new label to 1.
Examples
julia> my_FuzzyART = FuzzyART()
FuzzyART
opts: opts_FuzzyART
...
julia> initialize!(my_FuzzyART, [1, 2, 3, 4])
# Method List / Definition Locations
julia initialize!(art, x; y) ```
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/common.jl:22
.
AdaptiveResonance.initialize!
— MethodSummary
Initializes the supervised ARTMAP module for training with sample 'x' and label 'y', setting up the data configuration and instantiating the first category.
Arguments
art::ARTMAP
: the ARTMAP module to initialize.x::RealVector
: the sample to use for initialization.y::Integer
: the initial supervised label.
Examples
julia> my_sfam = SFAM()
SFAM
opts: opts_SFAM
...
julia> initialize!(my_SFAM, [1, 2, 3, 4])
# Method List / Definition Locations
julia initialize!(art, x, y) ```
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/SFAM.jl:205
.
AdaptiveResonance.learn!
— Methodlearn!(
art::AdaptiveResonance.AbstractFuzzyART,
x::AbstractVector{T} where T<:Real,
index::Integer
)
Summary
In place learning function.
Arguments
art::AbstractFuzzyART
: the FuzzyART module to update.x::RealVector
: the sample to learn from.index::Integer
: the index of the FuzzyART weight to update.
Method List / Definition Locations
learn!(art, x, index)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/common.jl:74
.
AdaptiveResonance.learn!
— Methodlearn!(
art::SFAM,
x::AbstractVector{T} where T<:Real,
index::Integer
)
Summary
In-place learning function.
Method List / Definition Locations
learn!(art, x, index)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/SFAM.jl:378
.
AdaptiveResonance.log_art_stats!
— Methodlog_art_stats!(art::ARTModule, bmu::Integer, mismatch::Bool)
Summary
Logs common statistics of an ART module after a training/classification iteration.
Arguments
art::ARTModule
: the ART module that just underwent training/classification.bmu::Integer
: the best-matching unit integer index.mismatch::Bool
: flag of whether there was a mismatch in this iteration.
Method List / Definition Locations
log_art_stats!(art, bmu, mismatch)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:160
.
AdaptiveResonance.median
— Methodmedian(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:539
.
AdaptiveResonance.orientation_competition
— Methodorientation_competition(
z::AbstractArray{T} where T<:Real
) -> Any
Summary
ARTSCENE Stage 5: Orientation competition at the same position.
Method List / Definition Locations
orientation_competition(z)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:236
.
AdaptiveResonance.oriented_kernel
— Methodoriented_kernel(
i::Integer,
j::Integer,
p::Integer,
q::Integer,
k::Integer,
sigma_h::Real,
sigma_v::Real;
sign
) -> Any
Summary
Oriented, elongated, spatially offset kernel G for ARTSCENE Stage 3.
Method List / Definition Locations
oriented_kernel(i, j, p, q, k, sigma_h, sigma_v; sign)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:90
.
AdaptiveResonance.patch_orientation_color
— Methodpatch_orientation_color(
z::AbstractArray{T} where T<:Real,
image::AbstractArray{T} where T<:Real
) -> Tuple{Any, Array{Float64, 3}}
Summary
ARTSCENE Stage 6: Create patch feature vectors.
Method List / Definition Locations
patch_orientation_color(z, image)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:257
.
AdaptiveResonance.replace_mat_index!
— Methodreplace_mat_index!(
mat::AbstractMatrix{T} where T<:Real,
vec::AbstractVector{T} where T<:Real,
index::Integer
) -> AbstractVector{T} where T<:Real
Summary
Replaces a matrix element with a vector at the column index.
This function dispatches to the low-level replacement strategy.
Arguments
mat::RealMatrix
: the matrix to update with a replaced column vector.vec::RealVector
: the vector to put in the matrix at the column index.index::Integer
: the column index to put the vector.
Method List / Definition Locations
replace_mat_index!(mat, vec, index)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/subroutines.jl:19
.
AdaptiveResonance.set_threshold!
— MethodSummary
Sets the match threshold of the ART/ARTMAP module as a function of the vigilance parameter.
Depending on selected ART/ARTMAP module and its options, this may be a function of other parameters as well.
Arguments
art::ARTModule
: the ART/ARTMAP module for setting a new threshold.
Method List / Definition Locations
set_threshold!(art)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/distributed/modules/DDVFA.jl:263
.
set_threshold!(art)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/modules/DVFA.jl:231
.
set_threshold!(art)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ART/single/modules/FuzzyART.jl:266
.
AdaptiveResonance.similarity
— Methodsimilarity(
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:480
.
AdaptiveResonance.single
— Methodsingle(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:512
.
AdaptiveResonance.stopping_conditions
— Methodstopping_conditions(art::ARTModule) -> Any
Summary
Checks the stopping conditions for an ART module.
Arguments
art::ART
: the ART module to check stopping conditions for.
Method List / Definition Locations
stopping_conditions(art)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:589
.
AdaptiveResonance.surround_kernel
— Methodsurround_kernel(
i::Integer,
j::Integer,
p::Integer,
q::Integer,
scale::Integer
) -> Any
Summary
Surround kernel S function for ARTSCENE Stage 2.
Method List / Definition Locations
surround_kernel(i, j, p, q, scale)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/ARTMAP/ARTSCENE.jl:32
.
AdaptiveResonance.unnormalized_match
— Methodunnormalized_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
.
AdaptiveResonance.unsafe_replace_mat_index!
— Methodunsafe_replace_mat_index!(
mat::AbstractMatrix{T} where T<:Real,
vec::AbstractVector{T} where T<:Real,
index::Integer
) -> AbstractVector{T} where T<:Real
Summary
Low-level function for unsafely replacing a matrix column with a given vector.
Arguments
mat::RealMatrix
: the matrix to update with a replaced column vector.vec::RealVector
: the vector to put in the matrix at the column index.index::Integer
: the column index to put the vector.
Method List / Definition Locations
unsafe_replace_mat_index!(mat, vec, index)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/subroutines.jl:28
.
AdaptiveResonance.update_iter
— Methodupdate_iter(
art::ARTModule,
iter::Union{ProgressBars.ProgressBar, UnitRange},
i::Integer
) -> Union{Nothing, String}
Summary
Updates the iteration of the ART/ARTMAP module, training or inference, according to its display settings.
Arguments
art::ARTModule
: the ART/ARTMAP module being iterated upon.iter::ARTIterator
: the iterator object used in the training/inference loop.i::Integer
: the iteration during training/inference that the iterator should be updated to.
Method List / Definition Locations
update_iter(art, iter, i)
defined at /home/runner/work/AdaptiveResonance.jl/AdaptiveResonance.jl/src/lib/common.jl:436
.
AdaptiveResonance.weighted
— Methodweighted(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:550
.
AdaptiveResonance.x_W_min_norm
— Methodx_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
.