|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.metrics.PairwiseSelector
weka.core.metrics.RandomPairwiseSelector
RandomPairwiseSelector class. Given a metric and training data, create a set of random instance pairs that correspond to metric training data
Field Summary |
Fields inherited from class weka.core.metrics.PairwiseSelector |
m_classInstanceMap, m_classValueList, m_numPotentialNegatives, m_numPotentialPositives |
Constructor Summary | |
RandomPairwiseSelector()
A default constructor |
Method Summary | |
java.util.ArrayList |
createPairList(Instances instances,
int numPosPairs,
int numNegPairs,
Metric metric)
Provide an array of metric pairs metric using given training instances |
java.lang.String[] |
getOptions()
Gets the current settings of WeightedDotP. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
Methods inherited from class weka.core.metrics.PairwiseSelector |
forName, initSelector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomPairwiseSelector()
Method Detail |
public java.util.ArrayList createPairList(Instances instances, int numPosPairs, int numNegPairs, Metric metric) throws java.lang.Exception
createPairList
in class PairwiseSelector
metric
- the metric to traininstances
- data to train the metric on
java.lang.Exception
- if training has gone bad.public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |