|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--shared.BaseInducer
|
+--shared.Inducer
The Inducer class "induces" a concept from a labelled training set (supervised learning). An Inducer is really an "Internal inducer," that is, one that we have a categorizer for (as opposed to the BaseInducer which may be external. The main routines added to BaseInducer are train() predict() (for a single instance), and get_categorizer(). Train_and_test() is implemented here in terms of the above.
| Constructor Summary | |
Inducer(Inducer source)
Copy constructor. |
|
Inducer(java.lang.String description)
Constructor. |
|
| Method Summary | |
boolean |
can_cast_to_inducer()
Checks if this Inducer object can be cast to an Inducer. |
Inducer |
cast_to_inducer()
Casts this object to an Inducer class. |
void |
display_struct()
Displays the structure of the categorizer that is produced by the induction algorithm. |
void |
display_struct(java.io.BufferedWriter stream,
DisplayPref dp)
Displays the structure of the categorizer that is produced by the induction algorithm. |
abstract Categorizer |
get_categorizer()
Returns the categorizer created by this inducer. |
CatTestResult |
project_train_and_perf_files(java.lang.String fileStem,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
CatTestResult |
project_train_and_perf_files(java.lang.String fileStem,
java.lang.String namesExtension,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
CatTestResult |
project_train_and_perf_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
CatTestResult |
project_train_and_perf_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
java.lang.String testExtension,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
CatTestResult |
project_train_and_perf(InstanceList trainingSet,
InstanceList testSet,
boolean[] bitString)
Train and tests this inducer on the attributes specified. |
double |
project_train_and_test_files(java.lang.String fileStem,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
double |
project_train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
double |
project_train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
double |
project_train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
java.lang.String testExtension,
boolean[] bitString)
Reads the training and test files in, trains the inducer, and tests the inducer on the attributes specified by the bit string input. |
double |
project_train_and_test(InstanceList trainingSet,
InstanceList testSet,
boolean[] bitString)
Train and tests this inducer on the attributes specified. |
abstract Categorizer |
release_categorizer()
Returns the Categorizer trained and removes ownership by this Inducer object. |
boolean |
supports_full_testing()
Checks if this inducer can test itself. |
CatTestResult |
train_and_perf(InstanceList trainingSet,
InstanceList testSet)
Train and measures performance on the inducer. |
double |
train_and_test(InstanceList trainingSet,
InstanceList testSet)
Train and tests this inducer. |
abstract void |
train()
Trains this inducer on the data set. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Inducer(java.lang.String description)
description - A String representing the description of the inducer.public Inducer(Inducer source)
source - The original inducer that is being copied.| Method Detail |
public abstract void train()
public abstract Categorizer get_categorizer()
public void display_struct()
public void display_struct(java.io.BufferedWriter stream,
DisplayPref dp)
stream - The output writer used to display the categorizer.dp - The display preferences specified by caller.
public 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 project_train_and_test(InstanceList trainingSet,
InstanceList testSet,
boolean[] bitString)
trainingSet - The data set used to train this inducer.testSet - The data set used to test this inducer.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public double project_train_and_test_files(java.lang.String fileStem,
boolean[] bitString)
fileStem - The name of the names, data, and test files without the
the file extensions.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public double project_train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
boolean[] bitString)
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.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public double project_train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
boolean[] bitString)
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.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public double project_train_and_test_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
java.lang.String testExtension,
boolean[] bitString)
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.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public CatTestResult project_train_and_perf(InstanceList trainingSet,
InstanceList testSet,
boolean[] bitString)
trainingSet - The data set used to train this inducer.testSet - The data set used to test this inducer.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public CatTestResult project_train_and_perf_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
java.lang.String testExtension,
boolean[] bitString)
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.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public CatTestResult project_train_and_perf_files(java.lang.String fileStem,
boolean[] bitString)
fileStem - The name of the names, data, and test files without the
the file extensions.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public CatTestResult project_train_and_perf_files(java.lang.String fileStem,
java.lang.String namesExtension,
boolean[] bitString)
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.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.
public CatTestResult project_train_and_perf_files(java.lang.String fileStem,
java.lang.String namesExtension,
java.lang.String dataExtension,
boolean[] bitString)
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.bitString - A boolean array with the same number of values as
there are attributes. Each boolean element
corresponds to an attribute in the order they
were input. True values represent attributes
that are used.public abstract Categorizer release_categorizer()
public boolean can_cast_to_inducer()
public Inducer cast_to_inducer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||