|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A ClusteringApplySettings captures a
specification that prescribes the output of an
apply task specific to a clustering model.
MiningObject,
ApplySettings| Method Summary | |
ClusteringApplyContent |
getContent(java.lang.String destPhysAttrName)
Returns the type of apply content associated with the specified destination physical attribute. |
ClusteringApplyContent[] |
getContentsByCluster(int clusterIdentifier)
Returns the types of apply content to be included in the apply output for the specified cluser identifier if mapByClusterIdentifier has been used for the cluster identifier. |
ClusteringApplyContent[] |
getContentsByRank(int rank)
Returns the types of apply content to be included in the apply output for the specified rank. |
java.lang.String |
getMappedBaseDestinationAttributeName(ClusteringApplyContent content)
Returns the base attribute name to be used for the values associated with the specified apply content that has been specified by mapPredictions method. |
java.lang.Integer |
getMappedClusterIdentifier(java.lang.String destPhysAttrName)
Returns the cluster identifier associated with the specified destination physical attribute. |
int[] |
getMappedClusterIdentifiers()
Returns the cluster identifiers mapped by mapByClusterIdentifier method. |
ClusteringApplyContent[] |
getMappedContents()
Returns an array of apply contents that are used for mapping. |
java.lang.String |
getMappedDestinationAttrName(int clusterIdentifier,
ClusteringApplyContent contentType)
Returns the name of the physical attribute mapped to the specified cluster. |
java.lang.Integer |
getRank(java.lang.String destinationAttrName)
Returns the rank associated with the specified destination attribute. |
java.lang.Integer |
getRanks()
Returns the number of cluster identifiers specified by mapByRank method or mapTopCluster. |
boolean |
isFromTop()
Returns true if predictions are ordered from top, false if from bottom. |
void |
mapByClusterIdentifier(ClusteringApplyContent content,
int clusterIdentifier,
java.lang.String destPhysAttrName)
Maps the specified content value for the specified cluster identifier to the named destination attribute. |
void |
mapByRank(ClusteringApplyContent content,
java.lang.String[] destPhysAttrNameArray,
boolean fromTop)
Maps the specified generated values for the predictions with the specified ranks to an array of destination attributes. |
void |
mapClusters(ClusteringApplyContent content,
java.lang.String baseDestPhysAttrName)
Maps all clusters in the model and the specified content value to a set of named destination attributes. |
void |
mapTopCluster(ClusteringApplyContent content,
java.lang.String destPhysAttrName)
Maps the cluster with the highest prediction metric to appear in the apply output under the specified attribute name. |
| Methods inherited from interface javax.datamining.task.apply.ApplySettings |
getSourceDestinationMap, resetMapping, setSourceDestinationMap, verify |
| Methods inherited from interface javax.datamining.MiningObject |
getCreationDate, getCreatorInfo, getDescription, getName, getObjectIdentifier, getObjectType, setDescription |
| Method Detail |
public ClusteringApplyContent getContent(java.lang.String destPhysAttrName)
throws JDMException
destPhysAttrName - The name of the destination physical attribute whose associated apply content type is to be returned.
JDMException
public ClusteringApplyContent[] getContentsByCluster(int clusterIdentifier)
throws JDMException
mapByClusterIdentifier has been used for the cluster identifier.
Throws an exception if the cluster identifier has not been mapped.
clusterIdentifier -
JDMException
public ClusteringApplyContent[] getContentsByRank(int rank)
throws JDMException
rank - The rank whose associated apply contents are to be returned.
JDMExceptionpublic java.lang.String getMappedBaseDestinationAttributeName(ClusteringApplyContent content)
mapPredictions method. Returns null if the method has not been invoked.
content -
public java.lang.Integer getMappedClusterIdentifier(java.lang.String destPhysAttrName)
throws JDMException
Returns null if cluster identifiers have not been mapped.
destPhysAttrName - The name of the destination physical attribute whose associated cluster ID is to be returned.
JDMExceptionpublic int[] getMappedClusterIdentifiers()
mapByClusterIdentifier method.
Returns null if no cluster identifiers have been mapped.
public ClusteringApplyContent[] getMappedContents()
public java.lang.String getMappedDestinationAttrName(int clusterIdentifier,
ClusteringApplyContent contentType)
throws JDMException
clusterIdentifier - The cluster identifier to be represented as the destination attribute.contentType - The content type to be represented as the destination attribute.
JDMException
public java.lang.Integer getRank(java.lang.String destinationAttrName)
throws JDMException
destinationAttrName - The name of the physical attribute whose designated rank is to be returned.
JDMExceptionpublic java.lang.Integer getRanks()
mapByRank method or mapTopCluster. Returns null if no such method has been invoked.
public boolean isFromTop()
public void mapByClusterIdentifier(ClusteringApplyContent content,
int clusterIdentifier,
java.lang.String destPhysAttrName)
throws JDMException
content - A system-generated content to be included in the apply output.clusterIdentifier - The cluster identifier to be mapped.destPhysAttrName - The name of the physical attribute for destination.
JDMException
public void mapByRank(ClusteringApplyContent content,
java.lang.String[] destPhysAttrNameArray,
boolean fromTop)
throws JDMException
content - A system-generated content to be included in the apply output.destPhysAttrNameArray - The name of the physical attribute for destination.fromTop - Indicates top predictions with the highest probabilities if true, or bottom predictions with lowest probabilities if false. If true/false, the top/bottom prediction is assigned to the first destination attribute (with index 0).
JDMException
public void mapClusters(ClusteringApplyContent content,
java.lang.String baseDestPhysAttrName)
throws JDMException
content - baseDestPhysAttrName -
JDMException
public void mapTopCluster(ClusteringApplyContent content,
java.lang.String destPhysAttrName)
throws JDMException
content - The content type of the top cluster.destPhysAttrName - The destination attribute name of the content of the top cluster.
JDMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||