|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--shared.Globals
|
+--shared.Categorizer
|
+--shared.BadCategorizer
The BadCategorizer class is used for repeated references to categorizers that either don't exist or are not specified. All methods other than constructor and destructor dispay fatal_error messages. This allows faster comparison using is_bad_categorizer() and prevents some unnecessary waste of memory.
| Constructor Summary | |
BadCategorizer()
Checks if BadCategorizer has not been instantiated and creates one if it has. |
|
| Method Summary | |
AugCategory |
categorize(Instance i)
Categorizes an Instance. |
int |
class_id()
Deprecated. Java's instanceof operator should be used. |
java.lang.Object |
clone()
Clones this BadCategorizer. |
void |
display_struct(java.io.BufferedWriter stream,
DisplayPref dp)
Displays the structure for this categorizer. |
int |
num_categories()
Returns the number of categories in this categorizer. |
void |
set_used_attr(boolean[] usedAttr)
Updates usedAttr to include the attributes used in this categorizer. |
| Methods inherited from class shared.Categorizer |
build_distr,
description,
get_distr,
get_log_level,
get_log_options,
get_log_stream,
get_schema,
has_distr,
score,
set_description,
set_distr,
set_log_level,
set_log_options,
set_log_prefixes,
set_log_stream,
set_original_distr,
supports_scoring,
total_weight |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public BadCategorizer()
| Method Detail |
public int class_id()
public java.lang.Object clone()
public void display_struct(java.io.BufferedWriter stream,
DisplayPref dp)
stream - The output stream to be written to.dp - The preferences for displaying.public void set_used_attr(boolean[] usedAttr)
usedAttr - A boolean array representing attributes. Each element set
to TRUE indicates the attribute is used. It is FALSE
otherwise. This method sets the appropriate attribute
element to true.public int num_categories()
public AugCategory categorize(Instance i)
i - The specified Instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||