Skip navigation links

Oracle Data Mining Java API Reference
11g Release 1 (11.1)

B28132-01


oracle.dmt.jdm.transform.binning
Interface OraBinningTransform

All Superinterfaces:
OraTransformation

public interface OraBinningTransform
extends OraTransformation

Binning involves mapping both continuous and discrete values to discrete values of reduced cardinality. For example, the age of persons can be binned into discrete numeric bins: 1-20 to 1, 21-40 to 2, and so on. Popular car manufacturers such as Ford, Chrysler, BMW, Volkswagen can be binned into discrete categorical bins: {Ford, Chrysler} to US_Car_Makers, and {BMW, Volkswagen} to European_Car_Makers. The package supports binning for both categorical and numerical attributes. This interface defines the methods to set bin details of the transformation.


Method Summary
 OraAttributeBins[] getBins()
          Returns the array of attribute bins that are specified or computed.
 OraCategoricalBinningType getCategoricalBinningType()
          Returns the categorical binning type for all categorical attributes.
 java.lang.String getCategoricalBinTable()
          Returns the categorical bin definition table name.
 boolean getLiteralFlag()
          Returns whether data kept in its natural format or as literals
 int getNumberOfBinsForCategorical()
          Returns the number of bins for all categorical atributes.
 int getNumberOfBinsForNumerical()
          Returns the number of bins for all numerical atributes.
 OraNumericalBinningType getNumericalBinningType()
          Get the binning type for all numerical attributes.
 java.lang.String getNumericalBinTable()
          Returns the numerical bin definition table name.
 int getRound()
          Returns the number of significant digits.
 java.lang.String getSettingsTable1()
          Returns the name of numeric bin boundary table
 java.lang.String getSettingsTable2()
          Returns the name of categoric bin boundary table
 java.lang.String getTargetAttributeName()
          Get the target attribute name specified for supervised binning.
 void setCategoricalBinningType(OraCategoricalBinningType type)
          Set the categorical binning type for all categorical attributes.
 void setLiteralFlag(boolean bLiteralFlag)
          Determines whether data kept in its natural format or as literals
 void setNumberOfBinsForCategorical(int binNumber)
          Sets the number of bins for all categorical atributes.
 void setNumberOfBinsForNumerical(int binNumber)
          Sets the number of bins for all numerical atributes.
 void setNumericalBinningType(OraNumericalBinningType type)
          Set the binning type for all numerical attributes.
 void setRound(int round)
          Sets the number of significant digits.
 void setTargetAttributeName(java.lang.String targetAttributename)
          For supervised numerical/categorical binning target attribute must be specified using this method.

 

Methods inherited from interface oracle.dmt.jdm.transform.OraTransformation
getExcludeColumnList, getTransformInputData, getTransformOutputData, isOutputView, setExcludeColumnList, setTransformInputData, setTransformOutputData

 

Method Detail

getNumericalBinningType

public OraNumericalBinningType getNumericalBinningType()
Get the binning type for all numerical attributes. Uses system default (i.e., quantile binning) if not specified.
Returns:
OraNumericalBinningType binning type

setNumericalBinningType

public void setNumericalBinningType(OraNumericalBinningType type)
Set the binning type for all numerical attributes.
Parameters:
type - binning type
Returns:
void

getCategoricalBinningType

public OraCategoricalBinningType getCategoricalBinningType()
Returns the categorical binning type for all categorical attributes.
Returns:
OraCategoricalBinningType categorical binning type

setCategoricalBinningType

public void setCategoricalBinningType(OraCategoricalBinningType type)
Set the categorical binning type for all categorical attributes.
Parameters:
type - categorical binning type
Returns:
void

getNumberOfBinsForNumerical

public int getNumberOfBinsForNumerical()
Returns the number of bins for all numerical atributes.
Returns:
int number of bins for all numerical attributes

setNumberOfBinsForNumerical

public void setNumberOfBinsForNumerical(int binNumber)
Sets the number of bins for all numerical atributes.
Parameters:
binNumber - number of bins for all numerical atributes
Returns:
void

getNumberOfBinsForCategorical

public int getNumberOfBinsForCategorical()
Returns the number of bins for all categorical atributes.
Returns:
int number of bins for all categorical attributes

setNumberOfBinsForCategorical

public void setNumberOfBinsForCategorical(int binNumber)
Sets the number of bins for all categorical atributes.
Parameters:
binNumber - number of bins for all categorical atributes
Returns:
void

getNumericalBinTable

public java.lang.String getNumericalBinTable()
Returns the numerical bin definition table name.
Returns:
String numerical bin table name.

getCategoricalBinTable

public java.lang.String getCategoricalBinTable()
Returns the categorical bin definition table name.
Returns:
String categorical bin table name.

getBins

public OraAttributeBins[] getBins()
Returns the array of attribute bins that are specified or computed.
Returns:
OraAttributeBins[] computed bins

getSettingsTable1

public java.lang.String getSettingsTable1()
Returns the name of numeric bin boundary table
Returns:
String name of numeric bin boundary table

getSettingsTable2

public java.lang.String getSettingsTable2()
Returns the name of categoric bin boundary table
Returns:
String name of categoric bin boundary table

setLiteralFlag

public void setLiteralFlag(boolean bLiteralFlag)
Determines whether data kept in its natural format or as literals
Parameters:
bLiteralFlag - true data kept as literals

getLiteralFlag

public boolean getLiteralFlag()
Returns whether data kept in its natural format or as literals
Returns:
boolean true data kept as literals

setRound

public void setRound(int round)
Sets the number of significant digits.
Parameters:
round - number of significant digits

getRound

public int getRound()
Returns the number of significant digits.
Returns:
round number of significant digits

setTargetAttributeName

public void setTargetAttributeName(java.lang.String targetAttributename)
                            throws javax.datamining.JDMException
For supervised numerical/categorical binning target attribute must be specified using this method. Without target attribute specification supervised binning will fail.
Parameters:
targetAttributename -
Throws:
javax.datamining.JDMException
Since:
Oracle DB 11.1.0

getTargetAttributeName

public java.lang.String getTargetAttributeName()
Get the target attribute name specified for supervised binning.
Since:
Oracle DB 11.1.0

Skip navigation links

Oracle Data Mining Java API Reference
11g Release 1 (11.1)

B28132-01


Copyright © 2005-2007 Oracle. All rights reserved.