📄 art_doc.txt
字号:
The files "Analog.dat" and "Binary.dat" contain random analog and
binary data for making a new pattern set.
___________________________________________________________________________
6.0 CONSTANTS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following constants are defined in Art_Gal.h and can be used in
function calls:
Network Types:
ART 0
ARTMAP 1
Components:
ART 0
ARTA 1
ARTB 2
Component Types:
NONE 0
ART1 1
FUZZYART 2
Boolean Values:
FALSE 0
TRUE 5571 /* An unlikely value. See Sec. 2.5 */
Data Types:
NONE 0
BINARY 1
ANALOG 2
Data Styles:
NONE 0
COMPLIMENT 1
___________________________________________________________________________
7.0 SUMMARY OF ART GALLERY FUNCTIONS:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: Arguments in brackets are only required when using an ARTMAP network.
---------------------------------------------------------------------------
int AddPattern (setPTR set, int num_inputs, float *input,
int num_outputs, float *output)
int FreeNet (netPTR net)
int FreeSet (setPTR set)
int GetArtBeta (netPTR net, int component, float *beta)
int GetArtResets (netPTR net, int component)
int GetArtSize (netPTR net, int component)
int GetArtType (netPTR net, int component)
int GetArtStyle (netPTR net, int component)
int GetArtVigil (netPTR net, int component, float *vigil)
int GetArtWinner (netPTR net, int component)
int GetBaseVigil (netPTR net, float *vigil)
int GetMap (netPTR net, float *list)
int GetMapMismatch (netPTR net)
int GetMapSize (netPTR net)
int GetMapVigil (netPTR net, float *vigil)
int GetNetDone (netPTR net)
int GetNetInit (netPTR net)
int GetNetInSize (netPTR net)
int GetNetOutSize (netPTR net)
int GetNetType (netPTR net)
int GetNumPatterns (setPTR set)
int GetSetInit (setPTR set)
int GetSetInput (setPTR set, int pat_num, float *list)
int GetSetInSize (setPTR set)
int GetSetInType (setPTR set)
int GetSetOutput (setPTR set, int pat_num, float *list)
int GetSetOutSize (setPTR set)
int GetSetOutType (setPTR set)
int InitNet (netPTR net, int net_type,
int components, int styleA, int num_inputs,
int componentB, int styleB, int num_outputs)
int InitSet (setPTR set, int num_inputs, int type_inputs,
int num_outputs, int type_outputs)
int LoadNet (netPTR net, char *file_prefix)
int LoadSet (setPTR set, char *file_prefix)
int MakeSet (setPTR set,
char *infile_name,int num_inputs, int type_inputs,
char *outfile_name, int num_outputs, int type_outputs)
int MergeSets (char *file1_prefix, char *file2_prefix,
char *save_prefix)
int SaveNet (netPTR net, char *file_prefix)
int SaveSet (setPTR set, char *file_prefix)
int SetArtBeta (netPTR net, int component, float beta)
int SetArtVigil (netPTR net, int component, float vigil)
int SetBaseVigil (netPTR net, float base_vigil)
int SetMapVigil (netPTR net, float map_vigil)
int ShowPat (netPTR net, setPTR set, int pat_num)
int TrainSet (netPTR net, setPTR set, int max_epoch)
___________________________________________________________________________
8.0 DESCRIPTION OF ART GALLERY FUNCTIONS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------------------------------------------------------
AddPattern
Given a pattern set pointer and pattern data, adds the
pattern to the pattern set.
Arguments:
set - A pointer to a set of patterns of type setTYPE
num_inputs - Number of input patterns (integer)
*input - A pointer to a list of inputs num_inputs long (float)
num_outputs - Number of output patterns (integer)
*output - A pointer to a list of outputs num_outputs long (float)
Return value:
0 - When successful
1 - When input or output size is incompatible
2 - When ANALOG data given for BINARY set type
3 - When ANALOG pattern data is not properly bounded [0 1]
4 - When input or output vector has only zero values
5 - When a memory allocation error occurs (out of memory)
6 - When set uninitialized or NULL
Syntax:
int AddPattern (setPTR set, int num_inputs, float *input,
int num_outputs, float *output)
-------------------------------------------------------------------------
FreeNet
Given a pointer to a network, frees the memory used by the
network and marks it as uninitialized.
WARNING: This essentially erases the network.
Arguments:
net - A pointer to an initialized netowrk of type netTYPE
Return Value:
0 - When successful
1 - When net wasn't initialized or NULL
Syntax:
int FreeNet(netPTR net)
--------------------------------------------------------------------------
FreeSet
Given a pointer to a set, frees up the memory allocated to the
set, and notes the pattern set as uninitialized.
WARNING: This essentially erases the pattern set.
Arguments:
set - A pointer to a set of patterns of type setTYPE
Return Value:
0 - When successful
1 - When set wasn't initialized or NULL
Syntax:
int FreeSet(setPTR set)
-------------------------------------------------------------------------
GetArtBeta
Given a pointer to a network, a network component, and a
pointer to a float, sets the float pointer value to the
current recoding rate of the component.
Arguments:
net - A pointer to an initialized netowrk of type netTYPE
component - ART, ARTA, or ARTB
beta - A pointer to a float
Return Values:
0 - When successful
1 - Network not initialized or NULL
2 - Incomptible component and type given
3 - Invalid component type given
Syntax:
int GetArtBeta(netPTR net, int component, float *beta)
-------------------------------------------------------------------------
GetArtResets
Given a pointer to a network, and a component, returns the
number of resets during the last training epoch for that
component.
Arguments:
net - A pointer to an initialized network of type netTYPE
component - ARTA, ARTB, or ART
Return Value:
When successful:
The number of Art Resets
When network not initialized, NULL, or invalid network type
-1
Syntax:
int GetArtResets(netPTR net, int component)
-------------------------------------------------------------------------
GetArtSize
Given a pointer to a network, and a component type, returns
current size of the art component.
Arguments:
net - A pointer to an initialized network of type netTYPE
component - ART, ARTA, or ARTB
Return Value:
When successful:
Size of Art Component
When network type incompatible, network uninitialized or NULL
-1
Syntax:
int GetArtSize(netPTR net, int component)
-------------------------------------------------------------------------
GetArtStyle
Given a pointer to a network, and a component, returns the
component style.
Arguments:
net - A pointer to an initialized network of type netTYPE
component - ARTA, ARTB, or ART
Return Value:
NONE - When the component uses normal inputs
COMPLIMENT - When the component uses compliment coding
-1 - When not initialized, NULL, or invalid network type
Syntax:
int GetArtStyle(netPTR net, int component)
--------------------------------------------------------------------------
GetArtType
Given a pointer to a network, and a component, returns the
component type.
Arguments:
net - A pointer to an initialized network of type netTYPE
component - ARTA, ARTB, or ART
Return Value:
NONE - When the component is of type NONE
ART1 - When the component is of type ART1
FUZZYART - When the component is of type FUZZYART
-1 - When not initialized, NULL, or invalid network type
Syntax:
int GetArtType(netPTR net, int component) {
-------------------------------------------------------------------------
GetArtVigil
Given a pointer to a network, a network component and a
float pointer, sets the float pointer value to the
compenent's vigilence level.
Arguments:
net - A pointer to an initialized netowrk of type netTYPE
component - ARTA, ARTB, or ART
vigil - A pointer to a float
Return Value:
0 - When successful:
1 - Network not initialized or NULL
2 - ARTMAP component given for ART net type
3 - ART component given for ARTMAP net type
4 - Invalid component name given
Syntax:
int GetArtVigil(netPTR net, int component, float *vigil)
-------------------------------------------------------------------------
GetArtWinner
Given a pointer to a network and an Art component returns
the most recent winning category of the Art component.
Arguments:
net - A pointer to an initialized network of type netTYPE
component - ARTA, ARTB, or ART
Return Value:
winner - When successful
-1 - When no category met the vigilance level (no winner)
-2 - When network type incompatible, net uninitialized or
NULL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -