/
conventions.jl
59 lines (47 loc) · 1.6 KB
/
conventions.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
55
56
57
58
59
"""
conventions.jl
# Description
Constants defining conventions of the package along with abstract supertypes.
"""
# -----------------------------------------------------------------------------
# CONSTANTS AND CONVENTIONS
# -----------------------------------------------------------------------------
"""
AdaptiveResonance.jl convention for which 2-D dimension contains the feature dimension.
"""
const ART_DIM = 1
"""
AdaptiveResonance.jl convention for which 2-D dimension contains the number of samples.
"""
const ART_SAMPLES = 2
"""
The type of matrix used by the AdaptiveResonance.jl package, used to configure matrix growth behavior.
"""
const ARTMatrix = ElasticMatrix
"""
The type of vector used by the AdaptiveResonance.jl package, used to configure vector growth behvior.
"""
const ARTVector = Vector
# -----------------------------------------------------------------------------
# ABSTRACT TYPES
# -----------------------------------------------------------------------------
"""
Abstract supertype for all ART module options.
"""
abstract type ARTOpts end # ART module options
"""
Abstract supertype for both ART (unsupervised) and ARTMAP (supervised) modules.
"""
abstract type ARTModule end # ART modules
"""
Abstract supertype for all default unsupervised ART modules.
"""
abstract type ART <: ARTModule end # ART (unsupervised)
"""
Abstract supertype for all supervised ARTMAP modules.
"""
abstract type ARTMAP <: ARTModule end # ARTMAP (supervised)
"""
Acceptable iterators for ART module training and inference
"""
const ARTIterator = Union{UnitRange, ProgressBar}