|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.iminer.scoring.Scorer
This Java Bean represents the base class for the scoring bean
RecordScorer. It is
used when a single data record is to be scored.
| Field Summary | |
|---|---|
static int |
CLASSIFICATION_TYPE
constant identifying the classification model type. |
static int |
CLUSTER_ID
identifies the cluster ID result field |
static int |
CLUSTER_QUALITY
identifies the cluster quality result field |
static int |
CLUSTER_SCORE
identifies the cluster score result field |
static int |
CLUSTERING_TYPE
constant identifying the clustering model type. |
static int |
CONFIDENCE
identifies the confidence result field |
static int |
PREDICTED_CLASS
identifies the predicted class result field |
static int |
PREDICTED_VALUE
identifies the predicted value result field |
static int |
RBF_REGION_ID
identifies the RBF region ID result field |
static int |
REGRESSION_TYPE
constant identifying the regression model type. |
static int |
UNDEFINED_TYPE
constant specifying that the model type is undefined |
| Constructor Summary | |
|---|---|
Scorer()
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getCategoricalFields()
Returns the names of the categorical mining fields which are used by the mining model to do scoring. |
java.lang.String[] |
getFieldNames()
Returns the names of the mining fields which are used by the mining model to do scoring. |
int |
getModelType()
Returns the model type of the set mining model. |
java.lang.String[] |
getNumericalFields()
Returns the names of the numerical mining fields which are used by the mining model to perform scoring. |
int[] |
getResultIdentifiers()
Gets the identifiers of the result fields which are computed by scoring for the specified mining model. |
boolean |
isCategoricalField(java.lang.String fieldName)
Checks if a field is a categorical field that is used by the mining model. |
boolean |
isField(java.lang.String fieldName)
Checks if a field is an active mining field of the specified mining model. |
boolean |
isNumericalField(java.lang.String fieldName)
Checks if a field is a numerical field that is used by the mining model. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CONFIDENCE
public static final int CLUSTER_ID
public static final int CLUSTER_QUALITY
public static final int CLUSTER_SCORE
public static final int PREDICTED_CLASS
public static final int PREDICTED_VALUE
public static final int RBF_REGION_ID
public static final int CLASSIFICATION_TYPE
public static final int CLUSTERING_TYPE
public static final int REGRESSION_TYPE
public static final int UNDEFINED_TYPE
| Constructor Detail |
public Scorer()
| Method Detail |
public int getModelType()
CLUSTERING_TYPE, CLASSIFICATION_TYPE and
REGRESSION_TYPE. If no mining model or a model with unknown model type is specified,
the constant UNDEFINED_TYPE is returned.public int[] getResultIdentifiers()
CLUSTERING_TYPE, the set consists of
CLUSTER_ID, CLUSTER_QUALITY,
CLUSTER_SCORE. If the model type is CLASSIFICATION_TYPE,
the set consists of PREDICTED_CLASS and CONFIDENCE. For
model type equal to REGRESSION_TYPE, there are
PREDICTED_VALUE and RBF_REGION_ID computed.CLUSTER_ID, CLUSTER_QUALITY, PREDICTED_CLASS,
PREDICTED_VALUE, CONFIDENCE; if no model is defined, an array of
length 0 is returned.public java.lang.String[] getFieldNames()
String array of length 0 is returned.public java.lang.String[] getCategoricalFields()
String array of length
0 is returned.public java.lang.String[] getNumericalFields()
String array of length
0 is returned.public boolean isCategoricalField(java.lang.String fieldName)
fieldName - Name of the fieldpublic boolean isNumericalField(java.lang.String fieldName)
fieldName - Name of the fieldpublic boolean isField(java.lang.String fieldName)
fieldName - Name of the field
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||