类 Tertius
java.lang.Object
weka.associations.AbstractAssociator
weka.associations.Tertius
- 所有已实现的接口:
Serializable
,Cloneable
,Runnable
,Associator
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
public class Tertius
extends AbstractAssociator
implements OptionHandler, Runnable, TechnicalInformationHandler
Finds rules according to confirmation measure (Tertius-type algorithm).
For more information see:
P. A. Flach, N. Lachiche (1999). Confirmation-Guided Discovery of first-order rules with Tertius. Machine Learning. 42:61-95. BibTeX:
For more information see:
P. A. Flach, N. Lachiche (1999). Confirmation-Guided Discovery of first-order rules with Tertius. Machine Learning. 42:61-95. BibTeX:
@article{Flach1999, author = {P. A. Flach and N. Lachiche}, journal = {Machine Learning}, pages = {61-95}, title = {Confirmation-Guided Discovery of first-order rules with Tertius}, volume = {42}, year = {1999} }Valid options are:
-K <number of values in result> Set maximum number of confirmation values in the result. (default: 10)
-F <frequency threshold> Set frequency threshold for pruning. (default: 0)
-C <confirmation threshold> Set confirmation threshold. (default: 0)
-N <noise threshold> Set noise threshold : maximum frequency of counter-examples. 0 gives only satisfied rules. (default: 1)
-R Allow attributes to be repeated in a same rule.
-L <number of literals> Set maximum number of literals in a rule. (default: 4)
-G <0=no negation | 1=body | 2=head | 3=body and head> Set the negations in the rule. (default: 0)
-S Consider only classification rules.
-c <class index> Set index of class attribute. (default: last).
-H Consider only horn clauses.
-E Keep equivalent rules.
-M Keep same clauses.
-T Keep subsumed rules.
-I <0=always match | 1=never match | 2=significant> Set the way to handle missing values. (default: 0)
-O Use ROC analysis.
-p <name of file> Set the file containing the parts of the individual for individual-based learning.
-P <0=no output | 1=on stdout | 2=in separate window> Set output of current values. (default: 0)
- 版本:
- $Revision: 6368 $
- 作者:
- Amelie Deltour
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final int
Way of handling missing values: min counterinstancesstatic final int
Way of handling missing values: max counterinstancesstatic final int
Way of handling missing values: missing as a particular value -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildAssociations
(Instances instances) Method that launches the search to find the rules with the highest confirmation.Returns the tip text for this property.Returns the tip text for this property.Returns the tip text for this property.Returns the tip text for this property.boolean
Get the value of equivalent.Get the value of partFile.boolean
Get the value of sameClause.boolean
Get the value of subsumption.void
disabled_setEquivalent
(boolean v) Set the value of equivalent.void
Set the value of partFile.void
disabled_setSameClause
(boolean v) Set the value of sameClause.void
disabled_setSubsumption
(boolean v) Set the value of subsumption.Returns the tip text for this property.Returns the tip text for this property.Returns default capabilities of the classifier.boolean
Get the value of classification.int
Get the value of classIndex.double
Get the value of confirmationThreshold.int
Get the value of confirmationValues.double
Get the value of frequencyThreshold.boolean
Get the value of hornClauses.Get the value of missingValues.Get the value of negation.double
Get the value of noiseThreshold.int
Get the value of numberLiterals.String[]
Gets the current settings of the Tertius object.boolean
Get the value of repeatLiterals.returns the resultsReturns the revision string.boolean
Get the value of rocAnalysis.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.Get the value of valuesOutput.Returns a string describing this associator.Returns the tip text for this property.Returns an enumeration describing the available options.static void
Main method.Returns the tip text for this property.Returns the tip text for this property.Returns the tip text for this property.Returns the tip text for this property.Returns the tip text for this property.Returns the tip text for this property.void
Resets the options to the default values.Returns the tip text for this property.void
run()
Run the search.Returns the tip text for this property.void
search()
Search in the space of hypotheses the rules that have the highest confirmation.void
setClassification
(boolean v) Set the value of classification.void
setClassIndex
(int v) Set the value of classIndex.void
setConfirmationThreshold
(double v) Set the value of confirmationThreshold.void
setConfirmationValues
(int v) Set the value of confirmationValues.void
setFrequencyThreshold
(double v) Set the value of frequencyThreshold.void
setHornClauses
(boolean v) Set the value of hornClauses.void
Set the value of missingValues.void
Set the value of negation.void
setNoiseThreshold
(double v) Set the value of noiseThreshold.void
setNumberLiterals
(int v) Set the value of numberLiterals.void
setOptions
(String[] options) Parses a given list of options.void
setRepeatLiterals
(boolean v) Set the value of repeatLiterals.void
setRocAnalysis
(boolean v) Set the value of rocAnalysis.void
Set the value of valuesOutput.Returns the tip text for this property.toString()
Outputs the best rules found with their confirmation value and number of counter-instances.Returns the tip text for this property.从类继承的方法 weka.associations.AbstractAssociator
forName, makeCopies, makeCopy
-
字段详细资料
-
EXPLICIT
public static final int EXPLICITWay of handling missing values: min counterinstances- 另请参阅:
-
IMPLICIT
public static final int IMPLICITWay of handling missing values: max counterinstances- 另请参阅:
-
SIGNIFICANT
public static final int SIGNIFICANTWay of handling missing values: missing as a particular value- 另请参阅:
-
-
构造器详细资料
-
Tertius
public Tertius()Constructor that sets the options to the default values.
-
-
方法详细资料
-
globalInfo
Returns a string describing this associator.- 返回:
- A description of the evaluator suitable for displaying in the explorer/experimenter gui.
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
resetOptions
public void resetOptions()Resets the options to the default values. -
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 返回:
- An enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-K <number of values in result> Set maximum number of confirmation values in the result. (default: 10)
-F <frequency threshold> Set frequency threshold for pruning. (default: 0)
-C <confirmation threshold> Set confirmation threshold. (default: 0)
-N <noise threshold> Set noise threshold : maximum frequency of counter-examples. 0 gives only satisfied rules. (default: 1)
-R Allow attributes to be repeated in a same rule.
-L <number of literals> Set maximum number of literals in a rule. (default: 4)
-G <0=no negation | 1=body | 2=head | 3=body and head> Set the negations in the rule. (default: 0)
-S Consider only classification rules.
-c <class index> Set index of class attribute. (default: last).
-H Consider only horn clauses.
-E Keep equivalent rules.
-M Keep same clauses.
-T Keep subsumed rules.
-I <0=always match | 1=never match | 2=significant> Set the way to handle missing values. (default: 0)
-O Use ROC analysis.
-p <name of file> Set the file containing the parts of the individual for individual-based learning.
-P <0=no output | 1=on stdout | 2=in separate window> Set output of current values. (default: 0)
- 指定者:
setOptions
在接口中OptionHandler
- 参数:
options
- The list of options as an array of strings.- 抛出:
Exception
- if an option is not supported.
-
getOptions
Gets the current settings of the Tertius object.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- An array of strings suitable for passing to setOptions.
-
confirmationValuesTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getConfirmationValues
public int getConfirmationValues()Get the value of confirmationValues.- 返回:
- Value of confirmationValues.
-
setConfirmationValues
public void setConfirmationValues(int v) Set the value of confirmationValues.- 参数:
v
- Value to assign to confirmationValues.
-
frequencyThresholdTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getFrequencyThreshold
public double getFrequencyThreshold()Get the value of frequencyThreshold.- 返回:
- Value of frequencyThreshold.
-
setFrequencyThreshold
public void setFrequencyThreshold(double v) Set the value of frequencyThreshold.- 参数:
v
- Value to assign to frequencyThreshold.
-
confirmationThresholdTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getConfirmationThreshold
public double getConfirmationThreshold()Get the value of confirmationThreshold.- 返回:
- Value of confirmationThreshold.
-
setConfirmationThreshold
public void setConfirmationThreshold(double v) Set the value of confirmationThreshold.- 参数:
v
- Value to assign to confirmationThreshold.
-
noiseThresholdTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getNoiseThreshold
public double getNoiseThreshold()Get the value of noiseThreshold.- 返回:
- Value of noiseThreshold.
-
setNoiseThreshold
public void setNoiseThreshold(double v) Set the value of noiseThreshold.- 参数:
v
- Value to assign to noiseThreshold.
-
repeatLiteralsTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getRepeatLiterals
public boolean getRepeatLiterals()Get the value of repeatLiterals.- 返回:
- Value of repeatLiterals.
-
setRepeatLiterals
public void setRepeatLiterals(boolean v) Set the value of repeatLiterals.- 参数:
v
- Value to assign to repeatLiterals.
-
numberLiteralsTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getNumberLiterals
public int getNumberLiterals()Get the value of numberLiterals.- 返回:
- Value of numberLiterals.
-
setNumberLiterals
public void setNumberLiterals(int v) Set the value of numberLiterals.- 参数:
v
- Value to assign to numberLiterals.
-
negationTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getNegation
Get the value of negation.- 返回:
- Value of negation.
-
setNegation
Set the value of negation.- 参数:
v
- Value to assign to negation.
-
classificationTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getClassification
public boolean getClassification()Get the value of classification.- 返回:
- Value of classification.
-
setClassification
public void setClassification(boolean v) Set the value of classification.- 参数:
v
- Value to assign to classification.
-
classIndexTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getClassIndex
public int getClassIndex()Get the value of classIndex.- 返回:
- Value of classIndex.
-
setClassIndex
public void setClassIndex(int v) Set the value of classIndex.- 参数:
v
- Value to assign to classIndex.
-
hornClausesTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getHornClauses
public boolean getHornClauses()Get the value of hornClauses.- 返回:
- Value of hornClauses.
-
setHornClauses
public void setHornClauses(boolean v) Set the value of hornClauses.- 参数:
v
- Value to assign to hornClauses.
-
equivalentTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
disabled_getEquivalent
public boolean disabled_getEquivalent()Get the value of equivalent.- 返回:
- Value of equivalent.
-
disabled_setEquivalent
public void disabled_setEquivalent(boolean v) Set the value of equivalent.- 参数:
v
- Value to assign to equivalent.
-
sameClauseTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
disabled_getSameClause
public boolean disabled_getSameClause()Get the value of sameClause.- 返回:
- Value of sameClause.
-
disabled_setSameClause
public void disabled_setSameClause(boolean v) Set the value of sameClause.- 参数:
v
- Value to assign to sameClause.
-
subsumptionTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
disabled_getSubsumption
public boolean disabled_getSubsumption()Get the value of subsumption.- 返回:
- Value of subsumption.
-
disabled_setSubsumption
public void disabled_setSubsumption(boolean v) Set the value of subsumption.- 参数:
v
- Value to assign to subsumption.
-
missingValuesTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getMissingValues
Get the value of missingValues.- 返回:
- Value of missingValues.
-
setMissingValues
Set the value of missingValues.- 参数:
v
- Value to assign to missingValues.
-
rocAnalysisTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getRocAnalysis
public boolean getRocAnalysis()Get the value of rocAnalysis.- 返回:
- Value of rocAnalysis.
-
setRocAnalysis
public void setRocAnalysis(boolean v) Set the value of rocAnalysis.- 参数:
v
- Value to assign to rocAnalysis.
-
partFileTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
disabled_getPartFile
Get the value of partFile.- 返回:
- Value of partFile.
-
disabled_setPartFile
Set the value of partFile.- 参数:
v
- Value to assign to partFile.- 抛出:
Exception
- if file cannot be opened
-
valuesOutputTipText
Returns the tip text for this property.- 返回:
- Tip text for this property suitable for displaying in the explorer/experimenter GUI.
-
getValuesOutput
Get the value of valuesOutput.- 返回:
- Value of valuesOutput.
-
setValuesOutput
Set the value of valuesOutput.- 参数:
v
- Value to assign to valuesOutput.
-
getCapabilities
Returns default capabilities of the classifier.- 指定者:
getCapabilities
在接口中Associator
- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中AbstractAssociator
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
buildAssociations
Method that launches the search to find the rules with the highest confirmation.- 指定者:
buildAssociations
在接口中Associator
- 参数:
instances
- The instances to be used for generating the rules.- 抛出:
Exception
- if rules can't be built successfully.
-
run
public void run()Run the search. -
search
public void search()Search in the space of hypotheses the rules that have the highest confirmation. The search starts with the empty rule, other rules are generated by refinement. -
getResults
returns the results- 返回:
- the results
-
toString
Outputs the best rules found with their confirmation value and number of counter-instances. Also gives the number of hypotheses considered and explored, and the time needed. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中AbstractAssociator
- 返回:
- the revision
-
main
Main method.- 参数:
args
- the commandline parameters
-