public class CanopyMapTask
extends java.lang.Object
implements weka.core.OptionHandler, weka.core.EnvironmentHandler, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CanopyMapTask.ECanopy
Subclass of Canopy that gives us access to the distance function
|
Modifier and Type | Field and Description |
---|---|
double |
m_hT1
heuristic value for T1
|
double |
m_hT2
heuristic value for T2
|
Constructor and Description |
---|
CanopyMapTask() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dontReplaceMissingValuesTipText()
Returns the tip text for this property.
|
java.lang.String |
environmentSubstitute(java.lang.String orig)
Substitute environment variables in the supplied string.
|
boolean |
getDontReplaceMissingValues()
Gets whether missing values are to be replaced.
|
weka.filters.Filter[] |
getFiltersToUse()
Get the filters to wrap up with the base classifier
|
weka.clusterers.Clusterer |
getFinalizedClusterer() |
static double |
getHeuristicT2(weka.core.Instances headerWithSummary) |
java.lang.String |
getMaxNumCandidateCanopiesToHoldInMemory()
Get the maximum number of candidate canopies to retain in memory during
training.
|
java.lang.String |
getMaxNumCanopies()
Get the number of clusters to find by this map task.
|
java.lang.String |
getMinimumCanopyDensity()
Get the minimum T2-based density below which a canopy will be pruned during
periodic pruning.
|
java.lang.String[] |
getOptions() |
java.lang.String |
getPeriodicPruningRate()
Get the how often to prune low density canopies during training
|
java.lang.String |
getT1MapPhase()
Get the T1 distance.
|
java.lang.String |
getT2MapPhase()
Get the T2 distance to use.
|
void |
init(weka.core.Instances headerWithSummary) |
java.util.Enumeration<weka.core.Option> |
listOptions() |
java.lang.String |
maxNumCandidateCanopiesToHoldInMemory()
Returns the tip text for this property.
|
java.lang.String |
minimumCanopyDensityTipText()
Returns the tip text for this property.
|
java.lang.String |
periodicPruningRateTipText()
Returns the tip text for this property.
|
void |
setDontReplaceMissingValues(boolean r)
Sets whether missing values are to be replaced.
|
void |
setEnvironment(weka.core.Environment env) |
void |
setFiltersToUse(weka.filters.Filter[] toUse)
Set the filters to wrap up with the base classifier
|
void |
setMaxNumCandidateCanopiesToHoldInMemory(java.lang.String max)
Set the maximum number of candidate canopies to retain in memory during
training.
|
void |
setMaxNumCanopies(java.lang.String c)
Set the maximum number of clusters to find in this map task.
|
void |
setMinimumCanopyDensity(java.lang.String dens)
Set the minimum T2-based density below which a canopy will be pruned during
periodic pruning.
|
void |
setOptions(java.lang.String[] options) |
void |
setPeriodicPruningRate(java.lang.String p)
Set the how often to prune low density canopies during training
|
void |
setT1MapPhase(java.lang.String t1)
Set the T1 distance.
|
void |
setT2MapPhase(java.lang.String t2)
Set the T2 distance to use.
|
java.lang.String |
t1MapPhaseTipText()
Tip text for this property
|
java.lang.String |
t2MapPhaseTipText()
Tip text for this property
|
void |
update(weka.core.Instance inst) |
void |
updateFinished() |
public double m_hT1
public double m_hT2
public java.lang.String environmentSubstitute(java.lang.String orig)
orig
- the string to modifypublic void init(weka.core.Instances headerWithSummary) throws DistributedWekaException
DistributedWekaException
public void update(weka.core.Instance inst) throws DistributedWekaException
DistributedWekaException
public void updateFinished()
public weka.clusterers.Clusterer getFinalizedClusterer() throws DistributedWekaException
DistributedWekaException
public static double getHeuristicT2(weka.core.Instances headerWithSummary) throws DistributedWekaException
DistributedWekaException
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
java.lang.Exception
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public void setMaxNumCanopies(java.lang.String c)
c
- the maximum number of clusters to findpublic java.lang.String getMaxNumCanopies()
public java.lang.String periodicPruningRateTipText()
public void setPeriodicPruningRate(java.lang.String p)
p
- how often (every p instances) to prune low density canopiespublic java.lang.String getPeriodicPruningRate()
public java.lang.String minimumCanopyDensityTipText()
public void setMinimumCanopyDensity(java.lang.String dens)
dens
- the minimum canopy densitypublic java.lang.String getMinimumCanopyDensity()
public java.lang.String maxNumCandidateCanopiesToHoldInMemory()
public void setMaxNumCandidateCanopiesToHoldInMemory(java.lang.String max)
max
- the maximum number of candidate canopies to retain in memory
during trainingpublic java.lang.String getMaxNumCandidateCanopiesToHoldInMemory()
public java.lang.String dontReplaceMissingValuesTipText()
public void setDontReplaceMissingValues(boolean r)
r
- true if missing values are to be replacedpublic boolean getDontReplaceMissingValues()
public java.lang.String t1MapPhaseTipText()
public void setT1MapPhase(java.lang.String t1)
t1
- the T1 distance to usepublic java.lang.String getT1MapPhase()
public java.lang.String t2MapPhaseTipText()
public void setT2MapPhase(java.lang.String t2)
t2
- the T2 distance to usepublic java.lang.String getT2MapPhase()
public weka.filters.Filter[] getFiltersToUse()
public void setFiltersToUse(weka.filters.Filter[] toUse)
toUse
- filters to wrap up with the base classifierpublic void setEnvironment(weka.core.Environment env)
setEnvironment
in interface weka.core.EnvironmentHandler