|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--shared.BaseInducer
A base class for inducers. The main reason for this base class, which we don't expect users to use much, is that ExternalInducers do not build a data structure in memory, and thus we must provide a composite operation train_and_test. The two derived classes that will actually be used by users are Inducer and ExternalInducer.
| Field Summary | |
static int |
AHA_IB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
AM_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
BAGGING_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
BOOSTER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
C45_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
C45AP_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
C45R_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
C50_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
CART_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
CatDT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
CF_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
CLUSTER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
CN2_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
CONST_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
COODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
DDT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
DF_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
DISC_NB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
DISC_SEARCH_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
DISC_TAB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
ENTROPY_ODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
FCF_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
FSS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
protected GetEnv |
getEnv
Instance of the GetEnv class used for accessing environment variables and options. |
static int |
HOODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
IB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
ID3_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
LAZY_DT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
LIST_HOODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
LIST_ODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
protected LogOptions |
logOptions
Logging options for this class. |
static int |
NAIVE_BAYES_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
NULL_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
OC1_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
ODT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
ONER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
OODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
ORDER_FSS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
PEBLS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
PERCEPTRON_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
PERF_EST_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
PROJECT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
RIPPER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
SGI_DT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
STACKING_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
T2_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
TABLE_CAS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
TABLE_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
TDDT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
protected InstanceList |
TS
Data set used for training this inducer. |
static int |
WEIGHT_SEARCH_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
static int |
WINNOW_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator. |
| Constructor Summary | |
BaseInducer(BaseInducer source)
Copy constructor. |
|
BaseInducer(java.lang.String description)
Constructs an inducer with the description specified. |
|
| Method Summary | |
InstanceList |
assign_data(InstanceList newTS)
Sets the dataset for this inducer to the specified InstanceList. |
boolean |
can_cast_to_incr_inducer()
Checks if this BaseInducer can be cast to an IncrInducer class. |
boolean |
can_cast_to_inducer()
Checks if this BaseInducer can be cast to an Inducer class. |
IncrInducer |
cast_to_incr_inducer()
Casts this BaseInducer to an IncrInducer class. |
Inducer |
cast_to_inducer()
Casts this BaseInducer to an Inducer class. |
abstract int |
class_id()
Deprecated. This method should be replaced with Java's instanceof operator. |
java.lang.String |
description()
Returns the description of this inducer. |
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. |
boolean |
has_data()
Returns true if and only if the class has a valid training data set. |
boolean |
has_data(boolean fatalOnFalse)
Returns true if and only if the inducer has been assigned a data set. |
InstanceList |
instance_list()
Returns an instance list corresponding to the training data set. |
void |
normalize_weights(double normFactor)
Normalize the instance weights in the training data set. |
void |
read_data(java.lang.String file)
Reads the training set from files. |
void |
read_data(java.lang.String file,
java.lang.String namesExtension)
Reads the training set from files. |
void |
read_data(java.lang.String file,
java.lang.String namesExtension,
java.lang.String dataExtension)
Reads the training set from files. |
InstanceList |
release_data()
Releases and returns the instance list. |
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. |
boolean |
supports_full_testing()
Returns a boolean representing wether this inducer can test itself. |
CatTestResult |
train_and_perf(InstanceList trainingSet,
InstanceList testSet)
Trains and measures performance on the inducer. |
double |
train_and_test_files(java.lang.String fileStem)
Convenience function that reads the training and test files in. |
double |
train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension)
Convenience function that reads the training and test files in. |
double |
train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension)
Convenience function that reads the training and test files in. |
double |
train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
java.lang.String testExtension)
Convenience function that reads the training and test files in. |
abstract double |
train_and_test(InstanceList trainingSet,
InstanceList testSet)
Trains and tests the inducer on the given data sets. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static int CONST_INDUCER
public static int TDDT_INDUCER
public static int TABLE_INDUCER
public static int C45_INDUCER
public static int FSS_INDUCER
public static int OODG_INDUCER
public static int NAIVE_BAYES_INDUCER
public static int NULL_INDUCER
public static int IB_INDUCER
public static int ONER_INDUCER
public static int DISC_TAB_INDUCER
public static int DISC_NB_INDUCER
public static int DF_INDUCER
public static int LIST_HOODG_INDUCER
public static int WINNOW_INDUCER
public static int ID3_INDUCER
public static int PERCEPTRON_INDUCER
public static int LAZY_DT_INDUCER
public static int HOODG_INDUCER
public static int PERF_EST_INDUCER
public static int BAGGING_INDUCER
public static int ENTROPY_ODG_INDUCER
public static int LIST_ODG_INDUCER
public static int C45R_INDUCER
public static int ORDER_FSS_INDUCER
public static int DISC_SEARCH_INDUCER
public static int C45AP_INDUCER
public static int CatDT_INDUCER
public static int CF_INDUCER
public static int TABLE_CAS_INDUCER
public static int WEIGHT_SEARCH_INDUCER
public static int T2_INDUCER
public static int PROJECT_INDUCER
public static int STACKING_INDUCER
public static int SGI_DT_INDUCER
public static int FCF_INDUCER
public static int AM_INDUCER
public static int PEBLS_INDUCER
public static int RIPPER_INDUCER
public static int OC1_INDUCER
public static int COODG_INDUCER
public static int CN2_INDUCER
public static int AHA_IB_INDUCER
public static int CART_INDUCER
public static int C50_INDUCER
public static int ODT_INDUCER
public static int CLUSTER_INDUCER
public static int BOOSTER_INDUCER
public static int DDT_INDUCER
protected InstanceList TS
protected LogOptions logOptions
protected GetEnv getEnv
| Constructor Detail |
public BaseInducer(java.lang.String description)
description - String describing the BaseInducer instance.public BaseInducer(BaseInducer source)
source - The original inducer that is being copied.| 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 void read_data(java.lang.String file,
java.lang.String namesExtension)
file - The name of the names, data, and test files without the
the file extensions.namesExtension - The extension used for the schema file.
public void read_data(java.lang.String file,
java.lang.String namesExtension,
java.lang.String dataExtension)
file - The name of the names, data, and test files without the
the file extensions.namesExtension - The extension used for the schema file.dataExtension - The extension used for the data file.public void read_data(java.lang.String file)
file - The name of the names, data, and test files without the
the file extensions.public InstanceList assign_data(InstanceList newTS)
newTS - The InstanceList containing the new training data set.public InstanceList instance_list()
public boolean has_data()
public boolean has_data(boolean fatalOnFalse)
fatalOnFalse - If set to true, this method will display an error
message if there is not a valid training data set.public abstract int class_id()
public java.lang.String description()
public InstanceList release_data()
public abstract double train_and_test(InstanceList trainingSet,
InstanceList testSet)
trainingSet - The data set used to train this inducer.testSet - The data set used to test this inducer.
public CatTestResult train_and_perf(InstanceList trainingSet,
InstanceList testSet)
trainingSet - The data set used to train this inducer.testSet - The data set used to test this inducer.public boolean supports_full_testing()
public double train_and_test_files(java.lang.String fileStem)
fileStem - The name of the names, data, and test files without the
the file extensions.
public double train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension)
fileStem - The name of the names, data, and test files without the
the file extensions.namesExtension - The extension used for the names file. Should
begin with a period.
public double train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension)
fileStem - The name of the names, data, and test files without the
the file extensions.namesExtension - The extension used for the names file. Should
begin with a period.dataExtension - The extension used for the data file. Should
begin with a period.
public double train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
java.lang.String testExtension)
fileStem - The name of the names, data, and test files without the
the file extensions.namesExtension - The extension used for the names file. Should
begin with a period.dataExtension - The extension used for the data file. Should
begin with a period.testExtension - The extension used for the test file. Should
begin with a period.public boolean can_cast_to_inducer()
public Inducer cast_to_inducer()
public boolean can_cast_to_incr_inducer()
public IncrInducer cast_to_incr_inducer()
public void normalize_weights(double normFactor)
normFactor - The number by which the weights will be normalized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||