public class PercentageSplit extends AbstractEvaluator implements weka.core.Randomizable
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_PreserveOrder
whether to preserve the order.
|
protected int |
m_Seed
the seed value.
|
protected String |
m_Threshold
the threshold option.
|
protected double |
m_TrainPercentage
percentage to use for training.
|
protected String |
m_Verbosity
the verbosity option.
|
m_Stopped
m_Debug, m_LogListeners
Constructor and Description |
---|
PercentageSplit() |
Modifier and Type | Method and Description |
---|---|
List<EvaluationStatistics> |
evaluate(MultiLabelClassifier classifier,
weka.core.Instances dataset)
Returns the evaluation statistics generated for the dataset.
|
protected int |
getDefaultSeed()
Gets the default seed for the random number generations
|
protected String |
getDefaultThreshold()
Gets the default threshold option.
|
protected double |
getDefaultTrainPercentage()
Gets the default percentage to use for training.
|
protected String |
getDefaultVerbosity()
Gets the default threshold option.
|
String[] |
getOptions()
Returns the options.
|
boolean |
getPreserveOrder()
Returns whether to preserve the order instead of randomizing the data.
|
int |
getSeed()
Gets the seed for the random number generations
|
String |
getThreshold()
Gets the threshold option.
|
double |
getTrainPercentage()
Gets the percentage to use for training.
|
String |
getVerbosity()
Gets the verbosity option.
|
String |
globalInfo()
Description to be displayed in the GUI.
|
Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration of all the available options..
|
String |
preserveOrderTipText()
Describes this property.
|
String |
seedTipText()
Describes this property.
|
void |
setOptions(String[] options)
Sets the options.
|
void |
setPreserveOrder(boolean value)
Sets whether to preserve the order instead of randomizing the data.
|
void |
setSeed(int value)
Set the seed for random number generation.
|
void |
setThreshold(String value)
Set the threshold option.
|
void |
setTrainPercentage(double value)
Set the percentage to use for training.
|
void |
setVerbosity(String value)
Set the verbosity option.
|
String |
thresholdTipText()
Describes this property.
|
String |
trainPercentageTipText()
Describes this property.
|
String |
verbosityTipText()
Describes this property.
|
initialize, stop
addLogListener, debug, getLogListeners, handleException, log, removeLogListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLogListener, log, removeLogListener
protected double m_TrainPercentage
protected boolean m_PreserveOrder
protected int m_Seed
protected String m_Threshold
protected String m_Verbosity
public String globalInfo()
globalInfo
in class AbstractEvaluator
protected double getDefaultTrainPercentage()
public void setTrainPercentage(double value)
value
- the percentage (0-100)public double getTrainPercentage()
public String trainPercentageTipText()
public void setPreserveOrder(boolean value)
value
- true if to preserve the orderpublic boolean getPreserveOrder()
public String preserveOrderTipText()
protected int getDefaultSeed()
public void setSeed(int value)
setSeed
in interface weka.core.Randomizable
value
- the seedpublic int getSeed()
getSeed
in interface weka.core.Randomizable
public String seedTipText()
protected String getDefaultThreshold()
public void setThreshold(String value)
value
- the optionpublic String getThreshold()
public String thresholdTipText()
protected String getDefaultVerbosity()
public void setVerbosity(String value)
value
- the optionpublic String getVerbosity()
public String verbosityTipText()
public Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class AbstractEvaluator
public void setOptions(String[] options) throws Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class AbstractEvaluator
options
- the options to parseException
- if parsing failspublic String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class AbstractEvaluator
public List<EvaluationStatistics> evaluate(MultiLabelClassifier classifier, weka.core.Instances dataset)
Copyright © 2017. All Rights Reserved.