|
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.AbleDefaultAgent | +--com.ibm.able.agents.AbleNeuralClusteringAgent
This class implements clustering using a self-organizing map
Field Summary | |
---|---|
protected boolean |
autoTrain
|
protected int |
bufferSize
|
protected double |
confidence
|
protected java.lang.String |
dataFileName
|
static java.lang.String |
defaultName
Value assigned to name by default. |
protected AbleFilter |
filt1
|
protected AbleImport |
imp1
|
protected AbleImport |
imp2
|
protected double[] |
inNum
|
protected java.lang.String[] |
inSym
|
protected int |
maxNumPasses
|
protected AbleSelfOrganizingMap |
net
|
protected int |
numCols
|
protected int |
numPasses
|
protected int |
numRows
|
protected double[] |
outNum
|
protected java.lang.String[] |
outSym
|
protected java.lang.String |
testDataFileName
|
protected boolean |
training
|
protected int |
winner
|
Fields inherited from class com.ibm.able.AbleDefaultAgent |
---|
activeDataSource, eventConnections, myBeans, numEpochs, processList, processListOK, userDefinedFunctions |
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 | |
---|---|
AbleNeuralClusteringAgent()
|
|
AbleNeuralClusteringAgent(java.lang.String aName)
|
Method Summary | |
---|---|
static java.lang.String |
Copyright()
Determine the copyright of this class. |
boolean |
getAutoTrain()
|
int |
getBufferSize()
|
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()
|
java.lang.String |
getDataFileName()
|
int |
getMaxNumPasses()
|
int |
getMode()
get the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer |
java.lang.String |
getNetArchitecture()
Return the number of input, hidden, and output units. |
AbleSelfOrganizingMap |
getNetwork()
|
int |
getNumCols()
|
int |
getNumPasses()
|
int |
getNumRows()
|
java.lang.String |
getTestDataFileName()
|
double |
getWinner()
|
java.lang.String |
getWinnerCategory()
Get the category of the current winner cluster |
java.lang.String |
getWinnerLabel()
Get the label of the winner cluster |
void |
init()
generate a complete neural Clustering agent bean |
boolean |
isTraining()
Check to see if the network is in the process of training. |
void |
processTimerEvent()
This method is called from the asynch thread It is only used to automated training of the neural agent |
void |
reset()
Reset each bean created when the agent was initialized. |
void |
setAutoTrain(boolean state)
|
void |
setBufferSize(int size)
|
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 |
setDataFileName(java.lang.String aFileName)
|
protected void |
setDefaults()
|
void |
setMaxNumPasses(int num)
|
void |
setMode(int mode)
set the internal config for either NNTRAIN = training from an external data file NNTEST = testing (with network locked) from an external data file or NNRUN = running (with network locked) from data placed in the input buffer |
void |
setNumCols(int num)
|
void |
setNumPasses(int num)
|
void |
setNumRows(int num)
|
void |
setTestDataFileName(java.lang.String aFileName)
|
void |
startTraining()
start automatically training the model from the external data |
void |
stopTraining()
stop automatically training the model from the external data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.able.AbleBean |
---|
getComment, getLogger, getName, getParent, getState, getTraceLogger, init, isChanged, process, setChanged, setComment, setLogger, setName, setParent, setState, setTraceLogger |
Methods inherited from interface com.ibm.able.AbleEventListenerManager |
---|
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener |
Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
---|
processAbleEvent, processNoEventProcessingEnabledSituation |
Methods inherited from interface com.ibm.able.AblePropertyChangeManager |
---|
addPropertyChangeListener, addPropertyConnection, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection |
Methods inherited from interface com.ibm.able.AbleSerializable |
---|
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName |
Methods inherited from interface com.ibm.able.AbleBeanContainer |
---|
getName |
Field Detail |
public static final java.lang.String defaultName
protected java.lang.String dataFileName
protected java.lang.String testDataFileName
protected int bufferSize
protected int maxNumPasses
protected double confidence
protected int numRows
protected int numCols
protected AbleImport imp1
protected AbleImport imp2
protected AbleFilter filt1
protected AbleSelfOrganizingMap net
protected int winner
protected int numPasses
protected boolean training
protected boolean autoTrain
protected double[] inNum
protected double[] outNum
protected java.lang.String[] inSym
protected java.lang.String[] outSym
Constructor Detail |
public AbleNeuralClusteringAgent() throws AbleException
public AbleNeuralClusteringAgent(java.lang.String aName) throws AbleException
Method Detail |
public void reset() throws AbleException
reset
in class AbleDefaultAgent
com.ibm.able.AbleDefaultAgent
AbleException
- If an error occurs when resetting
a contained bean. All errors are
collected and insert into the exception
so that one bean's error does not
prevent another from being reset.protected void setDefaults() throws AbleException
public void init() throws AbleException
init
in class AbleObject
com.ibm.able.AbleBean
AbleException
- If an error occurs.public void processTimerEvent() throws AbleException
processTimerEvent
in class AbleObject
com.ibm.able.AbleEventQueueProcessor
AbleException
- If an error occurs.public void setDataFileName(java.lang.String aFileName) throws AbleException
public java.lang.String getDataFileName()
public void setTestDataFileName(java.lang.String aFileName) throws AbleException
public java.lang.String getTestDataFileName()
public void setBufferSize(int size)
public int getBufferSize()
public AbleSelfOrganizingMap getNetwork()
public int getNumPasses()
public void setNumPasses(int num)
public void setMaxNumPasses(int num)
public int getMaxNumPasses()
public double getConfidence()
public double getWinner()
public void setNumRows(int num)
public int getNumRows()
public void setNumCols(int num)
public int getNumCols()
public void setAutoTrain(boolean state)
public boolean getAutoTrain()
public void setMode(int mode) throws AbleException
public int getMode() throws AbleException
public java.lang.String getNetArchitecture() throws AbleException
public boolean isTraining() throws AbleException
public void startTraining() throws AbleException
public void stopTraining() 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 |