/
variants.jl
54 lines (41 loc) · 1.6 KB
/
variants.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
variants.jl
# Description
Includes convenience constructors for common variants of various ARTMAP modules.
"""
# -----------------------------------------------------------------------------
# DEFAULT ARTMAP
# -----------------------------------------------------------------------------
# Shared variant statement for Default ARTMAP
const _VARIANT_STATEMENT_DAM = """
Default ARTMAP is a variant of SFAM, using the [`AdaptiveResonance.opts_SFAM`](@ref) options.
This constructor sets the activation to `:choice_by_difference` in addition to the keyword argument options you provide.
"""
"""
Constructs a Default ARTMAP module using a SFAM module using Default ARTMAP's choice-by-difference activation function.
$(_VARIANT_STATEMENT_DAM)
# Arguments
- `kwargs`: keyword arguments of Simplified FuzzyARTMAP options (see [`AdaptiveResonance.opts_SFAM`](@ref))
# References:
1. G. P. Amis and G. A. Carpenter, 'Default ARTMAP 2,' IEEE Int. Conf. Neural Networks - Conf. Proc., vol. 2, no. September 2007, pp. 777-782, Mar. 2007, doi: 10.1109/IJCNN.2007.4371056.
"""
function DAM(;kwargs...)
return SFAM(;activation=:choice_by_difference, kwargs...)
end
"""
Implements a Default ARTMAP module with specified options.
$(_VARIANT_STATEMENT_DAM)
# Arguments
- `opts::opts_SFAM`: the Simplified FuzzyARTMAP options (see [`AdaptiveResonance.opts_SFAM`](@ref)).
"""
function DAM(opts::opts_SFAM)
return SFAM(opts)
end
"""
Implements a Default ARTMAP module's options.
$(_VARIANT_STATEMENT_DAM)
$(_OPTS_DOCSTRING)
"""
function opts_DAM(;kwargs...)
return opts_SFAM(;activation=:choice_by_difference, kwargs...)
end