|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.transformation.DiscretizationSpecification
An instance of DiscretizationSpecification
contains discretization details for a single attribute. The class contains the name of the attribute and a discretization object, CategoricalDiscretization
or NumericalDiscretization
, depending on the type of the attribute.
Constructor Summary | |
DiscretizationSpecification(java.lang.String columnName, AttributeDiscretization binningDetails) Creates a DiscretizationSpecification object. |
Method Summary | |
static DiscretizationSpecification[] |
create(MiningAttribute[] attributeArray, float tailPercentage, int numericalBinNum, int categoricalBinNum, java.lang.String categoricalOtherBin) Creates an array of DiscretizationSpecification objects for the provided attributes. |
static DiscretizationSpecification[] |
create(MiningAttribute[] attributeArray, int numericalBinNum, int categoricalBinNum, java.lang.String categoricalOtherBin) Creates an array of DiscretizationSpecification objects for the provided attributes. |
AttributeDiscretization |
getBinningDetails() Returns the attribute binning details. |
java.lang.String |
getName() Returns the name of the attribute for which binning(discretization) details are specified in this object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DiscretizationSpecification(java.lang.String columnName, AttributeDiscretization binningDetails) throws InvalidArgumentException
DiscretizationSpecification
object. The column name and binningDetails cannot be null.columnName
- Name of the attributebinningDetails
- Appropriate instance of subclass of AttributeDiscretizationInvalidArgumentException
-
columnName
is null, orbinningDetails
is nulll.Method Detail |
public java.lang.String getName()
public AttributeDiscretization getBinningDetails()
AttributeDiscretization
.public static DiscretizationSpecification[] create(MiningAttribute[] attributeArray, int numericalBinNum, int categoricalBinNum, java.lang.String categoricalOtherBin) throws InvalidArgumentException
DiscretizationSpecification
objects for the provided attributes. Using the desired number of numerical and categorical bins, and the name of the "other" bin. This method helps to "automate" manual data preprocessing. Use this create method to set up specifications for the equi-width numerical binning.attributeArray
- An array of attributesnumericalBinNum
- A desired number of numerical binscategoricalBinNum
- A desired number of categorical binscategoricalOtherBin
- The name of the "other" binDiscretizationSpecification
objects.InvalidArgumentException
- if one of the mining attributes is invalide.public static DiscretizationSpecification[] create(MiningAttribute[] attributeArray, float tailPercentage, int numericalBinNum, int categoricalBinNum, java.lang.String categoricalOtherBin) throws InvalidArgumentException
DiscretizationSpecification
objects for the provided attributes. Using the desired number of numerical and categorical bins, and the name of the "other" bin. This method helps to "automate" manual data preprocessing. Use this create method to set up specifications for the "winsorize" numerical binning specification.attributeArray
- An array of attributestailPercentage
- The tail percentage value to be used for all numerical attributesnumericalBinNum
- A desired number of numerical binscategoricalBinNum
- A desired number of categorical binscategoricalOtherBin
- The name of the "other" binDiscretizationSpecification
objects.InvalidArgumentException
- if one of the mining attributes is invalide.
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |