|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--shared.Globals
|
+--shared.Categorizer
Abstract base class for Categorizers. Number of categories must be strictly positive (greater than zero). Description cannot be empty or NULL.
| Field Summary | |
static int |
CATEGORIZER_ID_BASE
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_ATTR_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_ATTR_EQ_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_ATTR_SUBSET_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_BAD_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_BAGGING_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_CASCADE_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_CLUSTER_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_CONST_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_CONSTRUCT_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_DISC_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_DISC_NODE_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_DTREE_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_IB_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_LAZYDT_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_LEAF_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_LINDISCR_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_MAJORITY_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_MULTI_SPLIT_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_MULTITHRESH_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_NB_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_ODT_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_ONE_R_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_OPTION_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_PROJECT_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_RDG_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_STACKING_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_TABLE_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
static int |
CLASS_THRESHOLD_CATEGORIZER
Deprecated. The Java instanceof operator should be used instead of the numerical class identity system. |
protected LogOptions |
logOptions
Logging options for this class. |
| Constructor Summary | |
Categorizer(int noCat,
java.lang.String dscr,
Schema sch)
Constructor. |
|
| Method Summary | |
void |
build_distr(InstanceList instList)
Builds a weight distribution based on the given InstanceList. |
abstract AugCategory |
categorize(Instance IRC)
Categorizes the given Instance. |
java.lang.Object |
clone()
Clones this Categorizer. |
java.lang.String |
description()
Returns the description of this Categorizer. |
abstract void |
display_struct(java.io.BufferedWriter stream,
DisplayPref dp)
Displays the structure of the Categorizer. |
double[] |
get_distr()
Returns the weight distribution for this Categorizer. |
int |
get_log_level()
Returns the logging level for this object. |
LogOptions |
get_log_options()
Returns the LogOptions object for this object. |
java.io.Writer |
get_log_stream()
Returns the stream to which logs for this object are written. |
Schema |
get_schema()
Returns the Schema for data to be categorized. |
boolean |
has_distr()
Checks if this Categorizer has a weight distribution. |
int |
num_categories()
Returns the number of categories. |
CatDist |
score(Instance IRC)
Returns the CatDist containing the weighted distribution score for the given Instance. |
void |
set_description(java.lang.String val)
Sets the description of this Categorizer. |
void |
set_distr(double[] val)
Sets the weight distribution to the given distribution. |
void |
set_log_level(int level)
Sets the logging level for this object. |
void |
set_log_options(LogOptions opt)
Sets the LogOptions object for this object. |
void |
set_log_prefixes(java.lang.String file,
int line,
int lvl1,
int lvl2)
Sets the logging message prefix for this object. |
void |
set_log_stream(java.io.Writer strm)
Sets the stream to which logging options are displayed. |
void |
set_original_distr(double[] dist)
Sets the original weight distribution to the given distribution. |
void |
set_used_attr(boolean[] barray)
Sets the attributes used for this Categorizer. |
boolean |
supports_scoring()
Checks if this Categorizer supports scoring. |
double |
total_weight()
Returns the total weight of the Instances categorized. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int CATEGORIZER_ID_BASE
public static final int CLASS_CONST_CATEGORIZER
public static final int CLASS_MULTITHRESH_CATEGORIZER
public static final int CLASS_THRESHOLD_CATEGORIZER
public static final int CLASS_ATTR_CATEGORIZER
public static final int CLASS_RDG_CATEGORIZER
public static final int CLASS_BAD_CATEGORIZER
public static final int CLASS_TABLE_CATEGORIZER
public static final int CLASS_IB_CATEGORIZER
public static final int CLASS_LAZYDT_CATEGORIZER
public static final int CLASS_NB_CATEGORIZER
public static final int CLASS_PROJECT_CATEGORIZER
public static final int CLASS_DISC_CATEGORIZER
public static final int CLASS_ATTR_EQ_CATEGORIZER
public static final int CLASS_DTREE_CATEGORIZER
public static final int CLASS_BAGGING_CATEGORIZER
public static final int CLASS_LINDISCR_CATEGORIZER
public static final int CLASS_CASCADE_CATEGORIZER
public static final int CLASS_STACKING_CATEGORIZER
public static final int CLASS_ATTR_SUBSET_CATEGORIZER
public static final int CLASS_MULTI_SPLIT_CATEGORIZER
public static final int CLASS_ONE_R_CATEGORIZER
public static final int CLASS_CONSTRUCT_CATEGORIZER
public static final int CLASS_LEAF_CATEGORIZER
public static final int CLASS_DISC_NODE_CATEGORIZER
public static final int CLASS_MAJORITY_CATEGORIZER
public static final int CLASS_ODT_CATEGORIZER
public static final int CLASS_CLUSTER_CATEGORIZER
public static final int CLASS_OPTION_CATEGORIZER
protected LogOptions logOptions
| Constructor Detail |
public Categorizer(int noCat,
java.lang.String dscr,
Schema sch)
noCat - The number of categories for labelling.dscr - The description of this Categorizer object.sch - The Schema for the data to be categorized.| Method Detail |
public void set_log_level(int level)
level - The new logging level.public int get_log_level()
public void set_log_stream(java.io.Writer strm)
strm - The stream to which logs will be written.public java.io.Writer get_log_stream()
public LogOptions get_log_options()
public void set_log_options(LogOptions opt)
opt - The new LogOptions object.
public void set_log_prefixes(java.lang.String file,
int line,
int lvl1,
int lvl2)
file - The file name to be displayed in the prefix of log messages.line - The line number to be displayed in the prefix of log messages.lvl1 - The log level of the statement being logged.lvl2 - The level of log messages being displayed.public int num_categories()
public java.lang.String description()
public java.lang.Object clone()
public void set_used_attr(boolean[] barray)
barray - A boolean array representing the attributes. TRUE
indicates the attribute should be included in the
categorization process.public void set_description(java.lang.String val)
val - The new description.public boolean has_distr()
public double[] get_distr()
public double total_weight()
public Schema get_schema()
public void set_original_distr(double[] dist)
dist - The new original weight distribution.
public abstract void display_struct(java.io.BufferedWriter stream,
DisplayPref dp)
stream - The output stream to be written to.dp - The preferences for display.public abstract AugCategory categorize(Instance IRC)
IRC - The Instance to be categorized.public CatDist score(Instance IRC)
IRC - The Instance to be scored.public boolean supports_scoring()
public void build_distr(InstanceList instList)
instList - The InstanceList whose weight distribution is to be
calculated.public void set_distr(double[] val)
val - The new distribution.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||