java.lang.Cloneable, SimpleClassifierWrapperMonotonicVCdomLEMWrapper, VCdomLEMWrapper, VCdomLEMWrapperOptpublic abstract class RulesGeneratorWrapper extends java.lang.Object implements SimpleClassifierWrapper
| Constructor | Description |
|---|---|
RulesGeneratorWrapper() |
|
RulesGeneratorWrapper(java.lang.String fileName) |
|
RulesGeneratorWrapper(MemoryContainer learningMemoryContainer) |
|
RulesGeneratorWrapper(MemoryContainer learningMemoryContainer,
MemoryContainer testMemoryContainer) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
build(MemoryContainer learningMemoryContainer) |
Generates rules
|
ClassificationResult |
classify(int exampleId) |
Classifies example with index
example_id from the test container that has to be set first. |
ClassificationResult |
classify(Example example) |
Classifies an example
|
java.lang.Object |
clone() |
|
ClassificationResultsFoldValidationContainer |
crossValidate(RulesClassificationMethod method,
int n) |
Cross validates the rule classifier that is bulid on rules from
rulesContainer on a suplemented testContainer. |
ClassificationResultsFoldValidationContainer |
crossValidate(RulesClassificationMethod method,
int n,
int decisionAttributeIndex) |
Cross validates the rule classifier that is bulid on rules from
rulesContainer on a suplemented testContainer. |
ClassificationResultsFoldValidationContainer |
crossValidate(RulesClassificationMethod method,
int n,
long seed) |
Cross validates the rule classifier that is bulid on rules from
rulesContainer on a suplemented testContainer. |
ClassificationResultsFoldValidationContainer |
crossValidate(RulesClassificationMethod method,
int n,
long seed,
int decisionAttributeIndex) |
Cross validates the rule classifier that is bulid on rules from
rulesContainer on a suplemented testContainer. |
abstract RulesContainer |
generateRules() |
Generates rules from
learningMemoryContainer |
abstract RulesContainer |
generateRules(MemoryContainer memoryContainer) |
Generates rules for submmitted memory container.
|
abstract RulesContainer |
generateRules(MemoryContainer memoryContainer,
int foldNumber) |
Generates rules for submmitted memory container and stores them in
file indicated by foldNumber.
|
abstract RulesContainer |
generateRules(MemoryContainer memoryContainer,
java.lang.String fileName) |
Generates rules for submmitted memory container and stores them in
file indicated by file name.
|
int |
getMaxQuantityOfRulesForPositiveExamples() |
|
RulesClassificationMethod |
getMethod() |
|
double |
getMinRateOfCoveredPositiveExamples() |
|
boolean |
isCheckingConfidenceDuringMinimalityTest() |
|
boolean |
isDeletingNotMinimalRules() |
|
boolean |
isDeletingRedundantConditions() |
|
boolean |
isDeletingRedundantRules() |
|
boolean |
isEachRuleMustHavingAtLeastOneCondition() |
|
boolean |
isInducePossibleRules() |
Tests if possible rules should be induced
|
abstract void |
reinitializeAll() |
reinitialization of all of components of a rule generator.
|
void |
setCheckConfidenceDuringMinimalityTest(boolean checkConfidenceDuringMinimalityTest) |
|
void |
setDeleteNotMinimalRules(boolean deleteNotMinimalRules) |
|
void |
setDeleteRedundantConditions(boolean deleteRedundantConditions) |
|
void |
setDeleteRedundantRules(boolean deleteRedundantRules) |
|
void |
setEachRuleMustHaveAtLeastOneCondition(boolean eachRuleMustHaveAtLeastOneCondition) |
|
void |
setInducePossibleRules(boolean inducePossibleRules) |
Sets flag indicating if possible rules should be induced
|
void |
setMaxQuantityOfRulesForPositiveExamples(int maxQuantityOfRulesForPositiveExamples) |
|
void |
setMemoryContainer(MemoryContainer memoryContainer) |
Sets memory container
|
void |
setMethod(RulesClassificationMethod method) |
|
void |
setMinRateOfCoveredPositiveExamples(double minRateOfCoveredPositiveExamples) |
|
void |
setResultsFileName(java.lang.String fileName) |
Sets results file name
|
void |
setTestMemoryContainer(MemoryContainer testMemoryContainer) |
|
ClassificationResultsContainer |
validate() |
Validates the classifer on the test container that has to be set first.
|
ClassificationResultsValidationContainer |
validate(RulesClassificationMethod method) |
Validates the rule classifier that is bulid on rules from
rulesContainer on learning data set. |
ClassificationResultsValidationContainer |
validate(RulesClassificationMethod method,
MemoryContainer testMemoryContainer) |
Validates the rule classifier that is bulid on rules from
rulesContainer on a given test container. |
ClassificationResultsValidationContainer |
validate(RulesClassificationMethod method,
MemoryContainer testMemoryContainer,
int decisionAttributeIndex) |
Validates the rule classifier that is bulid on rules from
rulesContainer on a given test container. |
ClassificationResultsContainer |
validate(MemoryContainer testContainer) |
Validates the classifer on the test container
testContainer. |
public RulesGeneratorWrapper()
public RulesGeneratorWrapper(MemoryContainer learningMemoryContainer)
public RulesGeneratorWrapper(java.lang.String fileName)
public RulesGeneratorWrapper(MemoryContainer learningMemoryContainer, MemoryContainer testMemoryContainer)
public abstract void reinitializeAll()
public abstract RulesContainer generateRules()
learningMemoryContainerpublic abstract RulesContainer generateRules(MemoryContainer memoryContainer)
memoryContainer - container to be generalized by rules.public abstract RulesContainer generateRules(MemoryContainer memoryContainer, int foldNumber)
memoryContainer - container to be generalized by rules.foldNumber - index of the fold.public abstract RulesContainer generateRules(MemoryContainer memoryContainer, java.lang.String fileName)
memoryContainer - container to be generalized by rules.fileName - file name.public void setMemoryContainer(MemoryContainer memoryContainer)
memoryContainer - memory container to setpublic void build(MemoryContainer learningMemoryContainer)
build in interface SimpleClassifierWrapperlearningMemoryContainer - learning datapublic ClassificationResult classify(Example example)
SimpleClassifierWrapperclassify in interface SimpleClassifierWrapperexample - example to be classifiedpublic ClassificationResult classify(int exampleId)
SimpleClassifierWrapperexample_id from the test container that has to be set first.classify in interface SimpleClassifierWrapperexampleId - id of the example from the test set that is intended to be classifiedpublic ClassificationResultsContainer validate()
SimpleClassifierWrappervalidate in interface SimpleClassifierWrapperpublic ClassificationResultsContainer validate(MemoryContainer testContainer)
SimpleClassifierWrappertestContainer.validate in interface SimpleClassifierWrappertestContainer - container with examples to be validatedpublic ClassificationResultsValidationContainer validate(RulesClassificationMethod method)
rulesContainer on learning data set.
The first decision attribute in test memory container is
used in the validation process.method - classification method class; it is not necessary to set
rules container for this class since they are set inside this
method before validation is made.public ClassificationResultsValidationContainer validate(RulesClassificationMethod method, MemoryContainer testMemoryContainer)
rulesContainer on a given test container.
The first decision attribute in test memory container is
used in the validation process.method - classification method class; it is not necessary to set
rules container for this class since they are set inside this
method before validation is made.testMemoryContainer - memory container with test objects to be
validated.public ClassificationResultsValidationContainer validate(RulesClassificationMethod method, MemoryContainer testMemoryContainer, int decisionAttributeIndex)
rulesContainer on a given test container.method - classification method class; it is not necessary to set
rules container for this class since they are set inside this
method before validation is made.testMemoryContainer - memory container with test objects to be
validated.decisionAttributeIndex - index of decision attribute in test.
memory container.public ClassificationResultsFoldValidationContainer crossValidate(RulesClassificationMethod method, int n)
rulesContainer on a suplemented testContainer.
The first decision attribute in the learing memory container is
used in the validation process. Random seed for stratification of
the cross validation process is taken as curent time in milliseconds.method - classification method class; it is not necessary to set
rules container for this class since they are set inside this
method before validation is made.n - numer of cross validation folds.public ClassificationResultsFoldValidationContainer crossValidate(RulesClassificationMethod method, int n, int decisionAttributeIndex)
rulesContainer on a suplemented testContainer.
Random seed for stratification of the cross validation process
is taken as curent time in milliseconds.method - classification method class; it is not necessary to set
rules container for this class since they are set inside this
method before validation is made.n - numer of cross validation folds.decisionAttributeIndex - index of decision attribute in test.
memory container.public ClassificationResultsFoldValidationContainer crossValidate(RulesClassificationMethod method, int n, long seed)
rulesContainer on a suplemented testContainer.
The first decision attribute in the learing memory container is
used in the validation process.method - classification method class; it is not necessary to set
rules container for this class since they are set inside this
method before validation is made.n - numer of cross validation folds.seed - random number generator seed.public ClassificationResultsFoldValidationContainer crossValidate(RulesClassificationMethod method, int n, long seed, int decisionAttributeIndex)
rulesContainer on a suplemented testContainer.method - classification method class; it is not necessary to set
rules container for this class since they are set inside this
method before validation is made.n - numer of cross validation folds.seed - random number generator seed.decisionAttributeIndex - index of decision attribute in test.
memory container.public void setResultsFileName(java.lang.String fileName)
fileName - results file namepublic boolean isInducePossibleRules()
true if possible rules should be induced, false otherwisepublic void setInducePossibleRules(boolean inducePossibleRules)
inducePossibleRules - flag indicating if possible rules should be inducedpublic boolean isCheckingConfidenceDuringMinimalityTest()
public void setCheckConfidenceDuringMinimalityTest(boolean checkConfidenceDuringMinimalityTest)
public boolean isDeletingNotMinimalRules()
public void setDeleteNotMinimalRules(boolean deleteNotMinimalRules)
public boolean isDeletingRedundantConditions()
public void setDeleteRedundantConditions(boolean deleteRedundantConditions)
public boolean isDeletingRedundantRules()
public void setDeleteRedundantRules(boolean deleteRedundantRules)
public boolean isEachRuleMustHavingAtLeastOneCondition()
public void setEachRuleMustHaveAtLeastOneCondition(boolean eachRuleMustHaveAtLeastOneCondition)
public int getMaxQuantityOfRulesForPositiveExamples()
public void setMaxQuantityOfRulesForPositiveExamples(int maxQuantityOfRulesForPositiveExamples)
public double getMinRateOfCoveredPositiveExamples()
public void setMinRateOfCoveredPositiveExamples(double minRateOfCoveredPositiveExamples)
public RulesClassificationMethod getMethod()
public void setMethod(RulesClassificationMethod method)
public void setTestMemoryContainer(MemoryContainer testMemoryContainer)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface SimpleClassifierWrapperclone in class java.lang.Objectjava.lang.CloneNotSupportedException