public class HotSpot
extends java.lang.Object
implements weka.associations.Associator, weka.core.OptionHandler, weka.core.RevisionHandler, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.Drawable, weka.associations.AssociationRulesProducer, java.io.Serializable
-c <num | first | last> The target index. (default = last)
-V <num | first | last> The target value (nominal target only, default = first)
-L Minimize rather than maximize.
-S <num> Minimum value count (nominal target)/segment size (numeric target). Values between 0 and 1 are interpreted as a percentage of the total population; values > 1 are interpreted as an absolute number of instances (default = 0.3)
-M <num> Maximum branching factor (default = 2)
-I <num> Minimum improvement in target value in order to add a new branch/test (default = 0.01 (1%))
-D Output debugging info (duplicate rule lookup hash table stats)
Constructor and Description |
---|
HotSpot()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildAssociations(weka.core.Instances instances)
Build the tree
|
boolean |
canProduceRules()
Returns true if this AssociationRulesProducer can actually produce rules.
|
java.lang.String |
debugTipText()
Returns the tip text for this property
|
java.lang.String |
doNotCheckCapabilitiesTipText()
Returns the tip text for this property
|
weka.associations.AssociationRules |
getAssociationRules()
Gets the list of mined association rules.
|
weka.core.Capabilities |
getCapabilities()
Returns default capabilities of HotSpot
|
boolean |
getDebug()
Get whether debugging info is output
|
boolean |
getDoNotCheckCapabilities()
Get whether capabilities checking is turned off.
|
int |
getMaxBranchingFactor()
Get the maximum branching factor
|
int |
getMaxRuleLength()
Get the maximum rule length
|
boolean |
getMinimizeTarget()
Get whether to minimize the target rather than maximize
|
double |
getMinImprovement()
Get the minimum improvement in the target necessary to add a test
|
java.lang.String[] |
getOptions()
Gets the current settings of HotSpot.
|
boolean |
getOutputRules() |
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String[] |
getRuleMetricNames()
Gets a list of the names of the metrics output for each rule.
|
java.lang.String |
getSupport()
Get the minimum support
|
java.lang.String |
getTarget()
Get the target index as a string
|
java.lang.String |
getTargetIndex()
For a nominal target, get the index of the value of interest (1-based)
|
boolean |
getTreatZeroAsMissing()
Get whether to treat zero as missing.
|
java.lang.String |
globalInfo()
Returns a string describing this classifier
|
java.lang.String |
graph() |
int |
graphType()
Returns the type of graph this scheme represents.
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Main method for testing this class.
|
java.lang.String |
maxBranchingFactorTipText()
Returns the tip text for this property
|
java.lang.String |
maxRuleLengthTipText()
Returns the tip text for this property
|
java.lang.String |
minimizeTargetTipText()
Returns the tip text for this property
|
java.lang.String |
minImprovementTipText()
Returns the tip text for this property
|
java.lang.String |
outputRulesTipText()
Returns the tip text for this property
|
void |
resetOptions()
Reset options to their defaults
|
void |
setDebug(boolean d)
Set whether debugging info is output
|
void |
setDoNotCheckCapabilities(boolean doNotCheck)
Set whether capabilities checking is turned off.
|
void |
setMaxBranchingFactor(int b)
Set the maximum branching factor
|
void |
setMaxRuleLength(int l)
Set the maximum rule length
|
void |
setMinimizeTarget(boolean m)
Set whether to minimize the target rather than maximize
|
void |
setMinImprovement(double i)
Set the minimum improvement in the target necessary to add a test
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setOutputRules(boolean r) |
void |
setSupport(java.lang.String s)
Set the minimum support
|
void |
setTarget(java.lang.String target)
Set the target index
|
void |
setTargetIndex(java.lang.String index)
For a nominal target, set the index of the value of interest (1-based)
|
void |
setTreatZeroAsMissing(boolean t)
Set whether to treat zero as missing.
|
java.lang.String |
supportTipText()
Returns the tip text for this property
|
java.lang.String |
targetIndexTipText()
Returns the tip text for this property
|
java.lang.String |
targetTipText()
Returns the tip text for this property
|
java.lang.String |
toString()
Return the tree as a string
|
java.lang.String |
treatZeroAsMissingTipText()
Returns the tip text for this property
|
public java.lang.String globalInfo()
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.associations.Associator
getCapabilities
in interface weka.core.CapabilitiesHandler
public void buildAssociations(weka.core.Instances instances) throws java.lang.Exception
buildAssociations
in interface weka.associations.Associator
instances
- the training instancesjava.lang.Exception
- if something goes wrongpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String graph() throws java.lang.Exception
graph
in interface weka.core.Drawable
java.lang.Exception
public java.lang.String targetTipText()
public void setTarget(java.lang.String target)
target
- the target index as a string (1-based)public java.lang.String getTarget()
public java.lang.String targetIndexTipText()
public void setTargetIndex(java.lang.String index)
index
- the index of the nominal value of interestpublic java.lang.String getTargetIndex()
public java.lang.String minimizeTargetTipText()
public void setMinimizeTarget(boolean m)
m
- true if target is to be minimizedpublic boolean getMinimizeTarget()
public java.lang.String supportTipText()
public java.lang.String getSupport()
public void setSupport(java.lang.String s)
s
- the minimum supportpublic java.lang.String maxBranchingFactorTipText()
public void setMaxBranchingFactor(int b)
b
- the maximum branching factorpublic int getMaxBranchingFactor()
public java.lang.String maxRuleLengthTipText()
public void setMaxRuleLength(int l)
l
- the maximum rule lengthpublic int getMaxRuleLength()
public java.lang.String treatZeroAsMissingTipText()
public void setTreatZeroAsMissing(boolean t)
t
- true if zero (first value) for nominal attributes is to be treated
like missing value.public boolean getTreatZeroAsMissing()
public java.lang.String minImprovementTipText()
public void setMinImprovement(double i)
i
- the minimum improvementpublic double getMinImprovement()
public java.lang.String debugTipText()
public void setDebug(boolean d)
d
- true to output debugging infopublic boolean getDebug()
public void setOutputRules(boolean r)
public boolean getOutputRules()
public java.lang.String outputRulesTipText()
public java.lang.String doNotCheckCapabilitiesTipText()
public void setDoNotCheckCapabilities(boolean doNotCheck)
setDoNotCheckCapabilities
in interface weka.core.CapabilitiesIgnorer
doNotCheck
- true if capabilities checking is turned off.public boolean getDoNotCheckCapabilities()
getDoNotCheckCapabilities
in interface weka.core.CapabilitiesIgnorer
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public void resetOptions()
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-c <num | first | last> The target index. (default = last)
-V <num | first | last> The target value (nominal target only, default = first)
-L Minimize rather than maximize.
-S <num> Minimum value count (nominal target)/segment size (numeric target). Values between 0 and 1 are interpreted as a percentage of the total population; values > 1 are interpreted as an absolute number of instances (default = 0.3)
-M <num> Maximum branching factor (default = 2)
-I <num> Minimum improvement in target value in order to add a new branch/test (default = 0.01 (1%))
-D Output debugging info (duplicate rule lookup hash table stats)
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
public int graphType()
graphType
in interface weka.core.Drawable
public weka.associations.AssociationRules getAssociationRules()
getAssociationRules
in interface weka.associations.AssociationRulesProducer
public boolean canProduceRules()
canProduceRules
in interface weka.associations.AssociationRulesProducer
public java.lang.String[] getRuleMetricNames()
getRuleMetricNames
in interface weka.associations.AssociationRulesProducer
public static void main(java.lang.String[] args)
args
- the options