|
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.transformation.AttributeDiscretization | +--oracle.dmt.odm.transformation.CategoricalDiscretization
Associated with an attribute CategoricalDiscretization
allows a user to specify category groups or use automated discretization (binning) involving the N most frequent items.
This specification applies to Transactional class methods.
An object of type CategoricalDiscretization
can be constructed in two ways:
N
as topNFrequencies
. This assigns the top N
most frequent values their own bins (bin numbers start at 1); it assigns all the less frequent values to the "Other" bin.Constructor Summary | |
CategoricalDiscretization(CategoryGroup[] groups) Creates a CategoricalDiscretization instance with the specified category groups. | |
CategoricalDiscretization(int topNFrequencies, java.lang.String otherCategoryName) Creates a CategoricalDiscretization instance with topNFrequencies and the "Other" category name. |
Method Summary | |
void |
addCategoryGroup(CategoryGroup group) Adds a category group to this categorical discretization. |
CategoryGroup[] |
getCategoryGroups() Returns the list of categoryGroups in the categorical discretization. |
java.lang.String |
getOtherCategoryName() Returns the name of the "Other" bin. |
int |
getTopNFrequencies() Returns the number of the top most frequent values. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CategoricalDiscretization(CategoryGroup[] groups) throws InvalidArgumentException
CategoricalDiscretization
instance with the specified category groups.
A valid group must have at least one category in it.
groups
- Category groupsInvalidArgumentException
- when the groups specified are not valid.public CategoricalDiscretization(int topNFrequencies, java.lang.String otherCategoryName) throws InvalidArgumentException
CategoricalDiscretization
instance with topNFrequencies
and the "Other" category name.otherCategoryName
- Name of the "Other" binInvalidArgumentException
-
topNFrequencies
has negative value, orotherCategoryName
is null.Method Detail |
public void addCategoryGroup(CategoryGroup group) throws InvalidArgumentException
group
- Category groupInvalidArgumentException
-
group
value is null, orpublic CategoryGroup[] getCategoryGroups()
categoryGroups
in the categorical discretization.public int getTopNFrequencies()
public java.lang.String getOtherCategoryName()
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |