|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.AbleObject | +--com.ibm.able.beans.AbleNetwork | +--com.ibm.able.beans.AbleSelfOrganizingMap
This class implements the Kohonen Self-Organizing Feature Map algorithm For clustering high-dimensional input spaces into a 2-D grid It has several enhancements, including special processing for sparse inputs batch updates, gaussian neighborhood functions and exponential learning rate decay
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CATEGORY
|
static java.lang.String |
defaultName
Value assigned to name by default. |
Fields inherited from class com.ibm.able.beans.AbleNetwork |
---|
activations, breakPointFlag, breakPoints, inNum, lastBreakPoint, MODE_NAMES, netArchitecture, netEpoch, netMode, netModelType, netRecInx, netStepsPerEpoch, NNRUN, NNTEST, NNTRAIN, outNum |
Fields inherited from class com.ibm.able.AbleObject |
---|
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
Constructor Summary | |
---|---|
AbleSelfOrganizingMap()
default constructor |
|
AbleSelfOrganizingMap(java.lang.String aName)
default constructor |
|
AbleSelfOrganizingMap(java.lang.String aName,
java.lang.String args)
Construct a Kohonen or SOM network with specified architecture |
Method Summary | |
---|---|
void |
changeNetArchitecture(java.lang.String parms)
Change the network architecture. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
void |
createNetwork(int NumIn,
int NumRows,
int NumCols)
create a Back Propagation network with the specified architecture |
void |
endEpoch()
Perform the end of epoch processing. |
void |
generateTranslateTemplates(AbleFilter filt,
AbleFilter outFilt,
java.util.Vector fields)
Populate a filter for converting data to a bean's input specifications, and a filter for converting a bean's output specifications back to the original coordinates. |
double[] |
getActivations()
|
double[] |
getBias()
|
java.lang.String[] |
getClusterCategories()
Returns the cluster category values for each cluster |
java.lang.String |
getClusterCategory(int clusterIndex)
Get the category associated with the specified cluster |
java.util.Vector |
getClusterCategoryValues()
Returns a list of unique cluster category values |
java.lang.String |
getClusterLabel(int clusterIndex)
Return the label associated with the specified cluster |
java.lang.String[] |
getClusterLabels()
Get an array of Labels (one for each cluster) |
double |
getConfidence()
|
double |
getConscience()
return the conscience parameter |
int[] |
getDistance()
|
boolean |
getEpochUpdate()
|
double |
getLearnRate()
return the learn rate parameter |
int |
getMaxNumEpochs()
return the max num Epochs parameter |
java.lang.String |
getNetArchitecture()
Return the number of input and output units. |
java.util.Vector |
getNetworkGraphicData()
return data on the network architecture, activations, and weights for display by the AbleNetworkGraphicView custom inspector |
int |
getNumCols()
|
int |
getNumInputs()
|
int |
getNumOutputs()
|
int |
getNumPasses()
|
int |
getNumRows()
|
int |
getNumUnits()
|
int |
getNumWeights()
|
double[] |
getPrototypeInput()
|
double[] |
getPrototypeInput2()
|
long |
getRecordIndex()
|
double[] |
getWeights()
|
int |
getWinner()
|
int |
getWinner2()
|
double |
getWinnerAct()
|
double |
getWinnerAct2()
|
java.lang.String |
getWinnerCategory()
Get the category of the current winner cluster |
java.lang.String |
getWinnerLabel()
|
double[] |
getWinRate()
|
void |
initialize()
|
void |
process()
Performs the main, synchronous, standard processing function performed by this bean. |
void |
readInputs()
read inputs from the input buffer |
void |
reset()
Reset this bean to its "initialized" state. |
void |
setClusterCategory(int clusterIndex,
java.lang.String category)
Set the category for the specified cluster |
void |
setClusterLabel(int clusterIndex,
java.lang.String label)
Set the label for the specified cluster |
void |
setConscience(double newVal)
set the conscience parameter |
void |
setEpochUpdate(boolean state)
|
void |
setLearnRate(double newVal)
set the learn rate parameter |
void |
setMaxNumEpochs(int num)
set the max Num Epochs parameter |
void |
setNetArchitecture(java.lang.String parms)
Set the network architecture. |
Methods inherited from class com.ibm.able.beans.AbleNetwork |
---|
breakPointReached, clearAllBreakPoints, clearBreakPoint, clearBreakPoint, clearLastBreakPoint, getLastBreakPoint, getNetEpoch, getNetMode, getNetRecInx, getNetStepsPerEpoch, setBreakPoint, setDefaults, setNetMode, setNetStepsPerEpoch, testBreakPoints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String defaultName
public static final java.lang.String DEFAULT_CATEGORY
Constructor Detail |
public AbleSelfOrganizingMap() throws AbleException
public AbleSelfOrganizingMap(java.lang.String aName) throws AbleException
public AbleSelfOrganizingMap(java.lang.String aName, java.lang.String args) throws AbleException
Method Detail |
public long getRecordIndex()
public int getNumPasses()
public int getNumInputs()
public int getNumRows()
public int getNumCols()
public int getNumOutputs()
public int getNumUnits()
public int getNumWeights()
public boolean getEpochUpdate()
public void setEpochUpdate(boolean state)
public int getWinner()
public int getWinner2()
public double getWinnerAct()
public double getWinnerAct2()
public double getConfidence()
public void setLearnRate(double newVal)
public double getLearnRate()
public void setMaxNumEpochs(int num)
public int getMaxNumEpochs()
public void setConscience(double newVal)
public double getConscience()
public double[] getActivations()
public double[] getWeights()
public double[] getWinRate()
public double[] getPrototypeInput()
public double[] getPrototypeInput2()
public double[] getBias()
public int[] getDistance()
public void reset() throws AbleException
AbleObject
This base method has no default implementation. It only provides tracing.
reset
in class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.AbleBean.reset()
public void initialize() throws AbleException
public void endEpoch()
AbleNetwork
endEpoch
in class AbleNetwork
com.ibm.able.beans.AbleNetwork
public void readInputs() throws AbleException
public void process() throws AbleException
AbleObject
This base method implementation provides tracing only.
process
in class AbleObject
com.ibm.able.AbleObject
AbleObject.inputBuffer
,
AbleObject.outputBuffer
,
AbleBean.process()
public void generateTranslateTemplates(AbleFilter filt, AbleFilter outFilt, java.util.Vector fields) throws AbleException
AbleTranslateTemplateProvider
AbleFilter.generateTranslateTemplates(com.ibm.able.beans.filter.AbleFilter, com.ibm.able.beans.filter.AbleFilter, java.util.Vector)
generateTranslateTemplates
in interface AbleTranslateTemplateProvider
com.ibm.able.beans.filter.AbleTranslateTemplateProvider
inFilter
- The AbleFilter used to convert incoming data.outFilter
- The AbleFilter used to convert outgoing data.fields
- A vector of AbleFields from which to derive the translation template.public void changeNetArchitecture(java.lang.String parms) throws AbleException
AbleNetwork
changeNetArchitecture
in class AbleNetwork
com.ibm.able.beans.AbleNetwork
Architecture
- The new network architecture specification
public void createNetwork(int NumIn, int NumRows, int NumCols) throws AbleException
public void setNetArchitecture(java.lang.String parms) throws AbleException
AbleNetwork
setNetArchitecture
in class AbleNetwork
com.ibm.able.beans.AbleNetwork
Architecture
- The network architecture specification
public java.util.Vector getNetworkGraphicData()
getNetworkGraphicData
in class AbleNetwork
public java.lang.String getNetArchitecture() throws AbleException
public java.lang.String getClusterLabel(int clusterIndex)
clusterIndex
- The cluster ID of the clusterpublic void setClusterLabel(int clusterIndex, java.lang.String label)
clusterIndex
- The cluster ID (number) ranging from 0 to n-1label
- The string label for the clusterpublic java.lang.String[] getClusterLabels()
public java.lang.String getClusterCategory(int clusterIndex)
clusterIndex
- The cluster ID (number) ranging from 0 to n-1
public java.lang.String getWinnerCategory()
public java.lang.String getWinnerLabel()
public void setClusterCategory(int clusterIndex, java.lang.String category) throws AbleDataException
clusterIndex
- The cluster ID (number) ranging from 0 to n-1category
- The string identifier for the categorypublic java.lang.String[] getClusterCategories()
public java.util.Vector getClusterCategoryValues()
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |