|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
BuildSettings instance captures the
high level specification for building a data
mining model. JDM characterizes mining functions
as classification, regression, association rules,
attribute importance, or clustering, specified as
interfaces inheriting from BuildSettings.
Build settings allow a user to specify the type of result desired without having to specify a particular algorithm. Although build settings allow for the specification of an algorithm, if this is omitted, the DME must select the algorithm.
MiningObject| Method Summary | |
AlgorithmSettings |
getAlgorithmSettings()
Returns the algorithm settings associated with the build settings. |
int |
getDesiredExecutionTimeInMinutes()
Returns the desired execution time specified by the user, if any. |
java.util.Collection |
getLogicalAttributes(LogicalAttributeUsage usage)
Returns a collection of LogicalAttribute names with the specified usage. |
LogicalData |
getLogicalData()
Returns a reference to a LogicalData instance associated with the build settings. |
java.lang.String |
getLogicalDataName()
Returns the name of the LogicalData object if set via setLogicalDataName(String) method. |
MiningFunction |
getMiningFunction()
Returns the type of mining function specified for the build settings. |
Interval |
getOutlierIdentification(java.lang.String logicalAttrName)
Returns the interval for non-outliers for the specified attribute. |
OutlierTreatment |
getOutlierTreatment(java.lang.String logicalAttrName)
Returns the outlier treatment for the specified logical attribute. |
LogicalAttributeUsage |
getUsage(java.lang.String logicalAttrName)
Returns the usage of the specified logical attribute. |
double |
getWeight(java.lang.String logicalAttrName)
Returns the weight of the specified logical attribute by name. |
java.lang.String |
getWeightAttribute()
Returns the attribute name used as the weight of the individual cases. |
void |
setAlgorithmSettings(AlgorithmSettings algorithmSettings)
Sets the algorithm settings to be associated with the build settings. |
void |
setDesiredExecutionTimeInMinutes(int minutes)
Sets the desired execution time specified by the user, if any. |
void |
setLogicalDataName(java.lang.String name)
Sets the logical data to reference a named LogicalData object. |
void |
setOutlierIdentification(java.lang.String logicalAttrName,
Interval bounds)
Specifies the range of non-outliers. |
void |
setOutlierTreatment(java.lang.String logicalAttrName,
OutlierTreatment treatment)
For numerical attributes, specifies the outlier treatment. |
void |
setUsage(java.lang.String logicalAttrName,
LogicalAttributeUsage usage)
Sets the usage of the specified logical attribute. |
void |
setWeight(java.lang.String logicalAttrName,
double weight)
Sets the weight of the specified logical attribute by name. |
void |
setWeightAttribute(java.lang.String logicalAttrName)
Sets the name of the attribute that contains case (record) weights. |
VerificationReport |
verify()
Verifies if the settings are valid to some degree of correctness as specified by the vendor. |
| Methods inherited from interface javax.datamining.MiningObject |
getCreationDate, getCreatorInfo, getDescription, getName, getObjectIdentifier, getObjectType, setDescription |
| Method Detail |
public AlgorithmSettings getAlgorithmSettings()
public int getDesiredExecutionTimeInMinutes()
Integer.MAX_VALUE indicating execution time is not constrained.
public java.util.Collection getLogicalAttributes(LogicalAttributeUsage usage)
throws JDMException
LogicalAttribute names with the specified usage. The returned collection may be empty, not null.
usage - The usage of the attributes to be returned.
JDMExceptionpublic LogicalData getLogicalData()
LogicalData instance associated with the build settings. This indicates that the build settings has been obtained from a model. This method returns null if the build settings has been assigned a name of a logical data via setLogicalDataName method.
public java.lang.String getLogicalDataName()
LogicalData object if set via setLogicalDataName(String) method. Returns null if the build settings has been obtained from a model.
public MiningFunction getMiningFunction()
public Interval getOutlierIdentification(java.lang.String logicalAttrName)
throws JDMException
logicalAttrName -
JDMException
public OutlierTreatment getOutlierTreatment(java.lang.String logicalAttrName)
throws JDMException
logicalAttrName -
JDMException
public LogicalAttributeUsage getUsage(java.lang.String logicalAttrName)
throws JDMException
logicalAttrName - The name of the logical attribute whose usage is to be returned.
JDMException
public double getWeight(java.lang.String logicalAttrName)
throws JDMException
If the attribute name is not found, an exception is thrown.
logicalAttrName - The name of the logical attribute whose weight is to be returned.
JDMExceptionpublic java.lang.String getWeightAttribute()
public void setAlgorithmSettings(AlgorithmSettings algorithmSettings)
A null value can be specified to indicate that no algorithm settings are specified and that the DME should select a suitable algorithm.
If the DME does not support the specified algorithm for the function, an exception is raised.
algorithmSettings - The algorithm settings to be associated with.
public void setDesiredExecutionTimeInMinutes(int minutes)
The default is Java Integer.MAX_VALUE indicating execution time is not constrained.
minutes - The desired execution time in minutes.
public void setLogicalDataName(java.lang.String name)
throws JDMException
LogicalData object. If this method is used, then the constraints on the weight, usage, outlierTreatment methods may not identify any constraint violations.
name -
JDMException
public void setOutlierIdentification(java.lang.String logicalAttrName,
Interval bounds)
throws JDMException
This method does not verify if the name exists in the logical data. This is verified using the verify method.
Throws an exception if the attribute does not exist or this method is invoked on a categorical attribute.
logicalAttrName - bounds -
JDMException
public void setOutlierTreatment(java.lang.String logicalAttrName,
OutlierTreatment treatment)
throws JDMException
Throws an exception if the attribute does not exist or this method is invoked on a categorical attribute.
logicalAttrName - treatment -
JDMException
public void setUsage(java.lang.String logicalAttrName,
LogicalAttributeUsage usage)
throws JDMException
logicalAttrName - The name of the logical attribute whose usage is to be set.usage - The usage to be assigned to the specified logical attribute.
JDMException
public void setWeight(java.lang.String logicalAttrName,
double weight)
throws JDMException
Throws an exception if the attribute name is currently set as the target in supervised settings.
logicalAttrName - The name of the logical attribute whose weight is to be set.weight - The weight value to be assigned to the logical attribute.
JDMException
public void setWeightAttribute(java.lang.String logicalAttrName)
throws JDMException
Throws an exception if the attribute name is currently set as the target in supervised settings.
logicalAttrName -
JDMExceptionpublic VerificationReport verify()
VerificationReport.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||