public class PS extends LC implements weka.core.Randomizable, weka.core.TechnicalInformationHandler
LC
,
Serialized FormConstructor and Description |
---|
PS() |
Modifier and Type | Method and Description |
---|---|
void |
buildClassifier(weka.core.Instances D) |
int |
getN()
GetN - Get the subsampling value N.
|
java.lang.String[] |
getOptions() |
int |
getP()
GetP - Get the pruning value P.
|
java.lang.String |
getRevision() |
int |
getSeed() |
weka.core.TechnicalInformation |
getTechnicalInformation() |
java.lang.String |
globalInfo()
Description to display in the GUI.
|
java.util.Enumeration |
listOptions() |
static void |
main(java.lang.String[] args) |
void |
setN(int n)
SetN - Sets the subsampling value N, the (maximum) number of frequent labelsets to subsample from the infrequent labelsets.
|
void |
setOptions(java.lang.String[] options) |
void |
setP(int p)
SetP - Sets the pruning value P, defining an infrequent labelset as one which occurs less than P times in the data (P = 0 defaults to LC).
|
void |
setSeed(int s)
SetSeed - Use random P and N values (in this case P and N arguments determine a range of values to select from randomly, e.g., -P 1-5 selects P randomly in {1,2,3,4,5}.
|
distributionForInstance, toString
evaluation, getCapabilities, getTemplate, makeCopies, runClassifier, testCapabilities
classifierTipText, getClassifier, setClassifier
public java.lang.String globalInfo()
globalInfo
in class LC
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public int getP()
public void setP(int p)
public int getN()
public void setN(int n)
public void setSeed(int s)
setSeed
in interface weka.core.Randomizable
public int getSeed()
getSeed
in interface weka.core.Randomizable
public java.util.Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.classifiers.SingleClassifierEnhancer
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.classifiers.SingleClassifierEnhancer
java.lang.Exception
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.classifiers.SingleClassifierEnhancer
public void buildClassifier(weka.core.Instances D) throws java.lang.Exception
buildClassifier
in interface weka.classifiers.Classifier
buildClassifier
in class LC
java.lang.Exception
public java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class LC
public static void main(java.lang.String[] args)