|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.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 |
|---|
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, properties, 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. |
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
AbleObjectThis base method has no default implementation. It only provides tracing.
reset in interface AbleBeanreset in class AbleObjectAbleException - If an error occurs.AbleBean.reset()
public void initialize()
throws AbleException
AbleExceptionpublic void endEpoch()
AbleNetwork
endEpoch in class AbleNetwork
public void readInputs()
throws AbleException
AbleException
public void process()
throws AbleException
AbleObjectThis base method implementation provides tracing only.
process in interface AbleBeanprocess in class AbleObjectAbleExceptionAbleObject.inputBuffer,
AbleObject.outputBuffer,
AbleBean.process()
public void generateTranslateTemplates(AbleFilter filt,
AbleFilter outFilt,
java.util.Vector fields)
throws AbleException
AbleTranslateTemplateProviderAbleFilter.generateTranslateTemplates(com.ibm.able.beans.filter.AbleFilter, com.ibm.able.beans.filter.AbleFilter, java.util.Vector)
generateTranslateTemplates in interface AbleTranslateTemplateProviderfilt - The AbleFilter used to convert incoming data.outFilt - The AbleFilter used to convert outgoing data.fields - A vector of AbleFields from which to derive the translation template.
AbleException
public void changeNetArchitecture(java.lang.String parms)
throws AbleException
AbleNetwork
changeNetArchitecture in class AbleNetworkparms - The new network architecture specification
AbleException
public void createNetwork(int NumIn,
int NumRows,
int NumCols)
throws AbleException
AbleException
public void setNetArchitecture(java.lang.String parms)
throws AbleException
AbleNetwork
setNetArchitecture in class AbleNetworkparms - The network architecture specification.
AbleExceptionpublic java.util.Vector getNetworkGraphicData()
getNetworkGraphicData in class AbleNetwork
public java.lang.String getNetArchitecture()
throws AbleException
AbleExceptionpublic java.lang.String getClusterLabel(int clusterIndex)
clusterIndex - The cluster ID of the cluster
public 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 category
AbleDataExceptionpublic java.lang.String[] getClusterCategories()
public java.util.Vector getClusterCategoryValues()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||