shared
Class BaseInducer

java.lang.Object
  |
  +--shared.BaseInducer
Direct Known Subclasses:
Inducer

public abstract class BaseInducer
extends java.lang.Object

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

CONST_INDUCER

public static int CONST_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

TDDT_INDUCER

public static int TDDT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

TABLE_INDUCER

public static int TABLE_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

C45_INDUCER

public static int C45_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

FSS_INDUCER

public static int FSS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

OODG_INDUCER

public static int OODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

NAIVE_BAYES_INDUCER

public static int NAIVE_BAYES_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

NULL_INDUCER

public static int NULL_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

IB_INDUCER

public static int IB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

ONER_INDUCER

public static int ONER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

DISC_TAB_INDUCER

public static int DISC_TAB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

DISC_NB_INDUCER

public static int DISC_NB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

DF_INDUCER

public static int DF_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

LIST_HOODG_INDUCER

public static int LIST_HOODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

WINNOW_INDUCER

public static int WINNOW_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

ID3_INDUCER

public static int ID3_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

PERCEPTRON_INDUCER

public static int PERCEPTRON_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

LAZY_DT_INDUCER

public static int LAZY_DT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

HOODG_INDUCER

public static int HOODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

PERF_EST_INDUCER

public static int PERF_EST_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

BAGGING_INDUCER

public static int BAGGING_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

ENTROPY_ODG_INDUCER

public static int ENTROPY_ODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

LIST_ODG_INDUCER

public static int LIST_ODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

C45R_INDUCER

public static int C45R_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

ORDER_FSS_INDUCER

public static int ORDER_FSS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

DISC_SEARCH_INDUCER

public static int DISC_SEARCH_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

C45AP_INDUCER

public static int C45AP_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

CatDT_INDUCER

public static int CatDT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

CF_INDUCER

public static int CF_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

TABLE_CAS_INDUCER

public static int TABLE_CAS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

WEIGHT_SEARCH_INDUCER

public static int WEIGHT_SEARCH_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

T2_INDUCER

public static int T2_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

PROJECT_INDUCER

public static int PROJECT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

STACKING_INDUCER

public static int STACKING_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

SGI_DT_INDUCER

public static int SGI_DT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

FCF_INDUCER

public static int FCF_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

AM_INDUCER

public static int AM_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

PEBLS_INDUCER

public static int PEBLS_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

RIPPER_INDUCER

public static int RIPPER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

OC1_INDUCER

public static int OC1_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

COODG_INDUCER

public static int COODG_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

CN2_INDUCER

public static int CN2_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

AHA_IB_INDUCER

public static int AHA_IB_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

CART_INDUCER

public static int CART_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

C50_INDUCER

public static int C50_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

ODT_INDUCER

public static int ODT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

CLUSTER_INDUCER

public static int CLUSTER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

BOOSTER_INDUCER

public static int BOOSTER_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

DDT_INDUCER

public static int DDT_INDUCER
Deprecated. The class_id method should be replaced with Java's instanceof operator.

Class identifier used for class_id function.

TS

protected InstanceList TS
Data set used for training this inducer.

logOptions

protected LogOptions logOptions
Logging options for this class.

getEnv

protected GetEnv getEnv
Instance of the GetEnv class used for accessing environment variables and options.
Constructor Detail

BaseInducer

public BaseInducer(java.lang.String description)
Constructs an inducer with the description specified.
Parameters:
description - String describing the BaseInducer instance.

BaseInducer

public BaseInducer(BaseInducer source)
Copy constructor. The new inducer will have the same logging options as the source inducer. The training data set(TS) is set to null.
Parameters:
source - The original inducer that is being copied.
Method Detail

set_log_level

public void set_log_level(int level)
Sets the logging level for this object.
Parameters:
level - The new logging level.

get_log_level

public int get_log_level()
Returns the logging level for this object.
Returns:
The logging level for this object.

set_log_stream

public void set_log_stream(java.io.Writer strm)
Sets the stream to which logging options are displayed.
Parameters:
strm - The stream to which logs will be written.

get_log_stream

public java.io.Writer get_log_stream()
Returns the stream to which logs for this object are written.
Returns:
The stream to which logs for this object are written.

get_log_options

public LogOptions get_log_options()
Returns the LogOptions object for this object.
Returns:
The LogOptions object for this object.

set_log_options

public void set_log_options(LogOptions opt)
Sets the LogOptions object for this object.
Parameters:
opt - The new LogOptions object.

set_log_prefixes

public void set_log_prefixes(java.lang.String file,
                             int line,
                             int lvl1,
                             int lvl2)
Sets the logging message prefix for this object.
Parameters:
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.

read_data

public void read_data(java.lang.String file,
                      java.lang.String namesExtension)
Reads the training set from files. The default file extensions (.data, .names) are used for the data and names files. This method should be called before any other methods that requires the training set. This method also overwrites old data if called more than once. The assign_data method is called so subclasses that alter the assign_data method will also change this method. Inducer.read_data() has the complexity of InstanceList(String, String, String). Uses Globals.DEFAULT_TEST_EXT for the extension of the test file and Globals.DEFAULT_DATA_EXT for the extension of the data file.
Parameters:
file - The name of the names, data, and test files without the the file extensions.
namesExtension - The extension used for the schema file.

read_data

public void read_data(java.lang.String file,
                      java.lang.String namesExtension,
                      java.lang.String dataExtension)
Reads the training set from files. The default file extensions (.data, .names) are used for the data and names files. This method should be called before any other methods that requires the training set. This method also overwrites old data if called more than once. The assign_data method is called so subclasses that alter the assign_data method will also change this method. Inducer.read_data() has the complexity of InstanceList(String, String, String). Uses Globals.DEFAULT_TEST_EXT for the extension of the test file.
Parameters:
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.

read_data

public void read_data(java.lang.String file)
Reads the training set from files. The default file extensions (.data, .names) are used for the data and names files. This method should be called before any other methods that requires the training set. This method also overwrites old data if called more than once. The assign_data method is called so subclasses that alter the assign_data method will also change this method. Inducer.read_data() has the complexity of InstanceList(String, String, String). Uses Globals.DEFAULT_TEST_EXT for the extension of the test file, Globals.DEFAULT_DATA_EXT for the extension of the data file, and Globals.DEFAULT_NAMES_EXT for the extension of the schema file.
Parameters:
file - The name of the names, data, and test files without the the file extensions.

assign_data

public InstanceList assign_data(InstanceList newTS)
Sets the dataset for this inducer to the specified InstanceList. The inducer takes ownership of the new training set, so the reference passed in will be reset to null.
Parameters:
newTS - The InstanceList containing the new training data set.
Returns:
The previous training data set.

instance_list

public InstanceList instance_list()
Returns an instance list corresponding to the training data set.
Returns:
The current training data set.

has_data

public boolean has_data()
Returns true if and only if the class has a valid training data set.
Returns:
True if there is a valid training set, False otherwise.

has_data

public boolean has_data(boolean fatalOnFalse)
Returns true if and only if the inducer has been assigned a data set.
Parameters:
fatalOnFalse - If set to true, this method will display an error message if there is not a valid training data set.
Returns:
True if there is a valid training set, False otherwise.

class_id

public abstract int class_id()
Deprecated. This method should be replaced with Java's instanceof operator.

Returns the class id of this of this inducer.
Returns:
Integer assigned to this inducer.

description

public java.lang.String description()
Returns the description of this inducer.
Returns:
A reference to the String containing the description of this inducer.

release_data

public InstanceList release_data()
Releases and returns the instance list. The training data set will now be set to null.
Returns:
The current training data set.

train_and_test

public abstract double train_and_test(InstanceList trainingSet,
                                      InstanceList testSet)
Trains and tests the inducer on the given data sets. This class is overridden in subclasses to the specific induction algorithm.
Parameters:
trainingSet - The data set used to train this inducer.
testSet - The data set used to test this inducer.
Returns:
The probability of incorrect test responses. Possible values are 0.0 to 1.0.

train_and_perf

public CatTestResult train_and_perf(InstanceList trainingSet,
                                    InstanceList testSet)
Trains and measures performance on the inducer. Can not be done on a BaseInducer. This method first checks if testing can be done before attempting to do so. For a BaseInducer this function always displays an error message.
Parameters:
trainingSet - The data set used to train this inducer.
testSet - The data set used to test this inducer.
Returns:
A CatTestResult class containing the results after perfecting.

supports_full_testing

public boolean supports_full_testing()
Returns a boolean representing wether this inducer can test itself. Always returns false for a BaseInducer.
Returns:
A boolean value. Only possible value is false.

train_and_test_files

public double train_and_test_files(java.lang.String fileStem)
Convenience function that reads the training and test files in. The method assumes the use of the default extensions(.names,.data,.test) for these files.
Parameters:
fileStem - The name of the names, data, and test files without the the file extensions.
Returns:
The probability of incorrect test responses. Possible values are 0.0 to 1.0.

train_and_test_files

public double train_and_test_files(java.lang.String fileStem,
                                   java.lang.String namesExtension)
Convenience function that reads the training and test files in. The data and training files use the default extensions(.data,.test).
Parameters:
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.
Returns:
The probability of incorrect test responses. Possible values are 0.0 to 1.0.

train_and_test_files

public 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. The training file uses the default extension(.test).
Parameters:
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.
Returns:
The probability of incorrect test responses. Possible values are 0.0 to 1.0.

train_and_test_files

public 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.
Parameters:
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.
Returns:
The probability of incorrect test responses. Possible values are 0.0 to 1.0.

can_cast_to_inducer

public boolean can_cast_to_inducer()
Checks if this BaseInducer can be cast to an Inducer class.
Returns:
A boolean representing wether this class can be cast. Always false for BaseInducer.

cast_to_inducer

public Inducer cast_to_inducer()
Casts this BaseInducer to an Inducer class. Can not be done for a BaseInducer. Always displays an error message.
Returns:
A reference to the new Inducer. Always returns null for a BaseInducer class.

can_cast_to_incr_inducer

public boolean can_cast_to_incr_inducer()
Checks if this BaseInducer can be cast to an IncrInducer class.
Returns:
A boolean representing wether this class can be cast. Always false for BaseInducer.

cast_to_incr_inducer

public IncrInducer cast_to_incr_inducer()
Casts this BaseInducer to an IncrInducer class. Can not be done for a BaseInducer. Always displays an error message.
Returns:
A reference to the new IncrInducer. Always returns null for a BaseInducer class.

normalize_weights

public void normalize_weights(double normFactor)
Normalize the instance weights in the training data set. Any subclasses which override this function should call this method.
Parameters:
normFactor - The number by which the weights will be normalized.