|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.datagenerators.DataGenerator
weka.datagenerators.ClusterGenerator
public abstract class ClusterGenerator
Abstract class for cluster data generators.
Example usage as the main of a datagenerator called RandomGenerator:
public static void main(String[] args) {
try {
DataGenerator.makeData(new RandomGenerator(), args);
}
catch (Exception e) {
e.printStackTrace();
System.err.println(e.getMessage());
}
}
| Constructor Summary | |
|---|---|
ClusterGenerator()
initializes the generator |
|
| Method Summary | |
|---|---|
String |
booleanColsTipText()
Returns the tip text for this property |
String |
classFlagTipText()
Returns the tip text for this property |
Range |
getBooleanCols()
returns the range of boolean attributes. |
boolean |
getClassFlag()
Gets the class flag. |
Range |
getNominalCols()
returns the range of nominal attributes |
int |
getNumAttributes()
Gets the number of attributes that should be produced. |
String[] |
getOptions()
Gets the current settings of the classifier. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
String |
nominalColsTipText()
Returns the tip text for this property |
String |
numAttributesTipText()
Returns the tip text for this property |
void |
setBooleanCols(Range value)
Sets which attributes are boolean. |
void |
setBooleanIndices(String rangeList)
Sets which attributes are boolean |
void |
setClassFlag(boolean classFlag)
Sets the class flag, if class flag is set, the cluster is listed as class atrribute in an extra attribute. |
void |
setNominalCols(Range value)
Sets which attributes are nominal. |
void |
setNominalIndices(String rangeList)
Sets which attributes are nominal |
void |
setNumAttributes(int numAttributes)
Sets the number of attributes the dataset should have. |
void |
setOptions(String[] options)
Sets the options. |
| Methods inherited from class weka.datagenerators.DataGenerator |
|---|
debugTipText, defaultOutput, defineDataFormat, formatTipText, generateExample, generateExamples, generateFinished, generateStart, getDatasetFormat, getDebug, getNumExamplesAct, getOutput, getRandom, getRelationName, getSeed, getSingleModeFlag, makeData, outputTipText, randomTipText, relationNameTipText, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface weka.core.RevisionHandler |
|---|
getRevision |
| Constructor Detail |
|---|
public ClusterGenerator()
| Method Detail |
|---|
public Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class DataGenerator
public void setOptions(String[] options)
throws Exception
setOptions in interface OptionHandlersetOptions in class DataGeneratoroptions - the options
Exception - if invalid optionpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class DataGeneratorDataGenerator.removeBlacklist(String[])public void setNumAttributes(int numAttributes)
numAttributes - the new number of attributespublic int getNumAttributes()
public String numAttributesTipText()
public void setClassFlag(boolean classFlag)
classFlag - the new class flagpublic boolean getClassFlag()
public String classFlagTipText()
public void setBooleanIndices(String rangeList)
rangeList - a string representing the list of attributes. Since
the string will typically come from a user, attributes are indexed from
1. IllegalArgumentException - if an invalid range list is suppliedpublic void setBooleanCols(Range value)
value - the range to usepublic Range getBooleanCols()
public String booleanColsTipText()
public void setNominalIndices(String rangeList)
rangeList - a string representing the list of attributes. Since
the string will typically come from a user, attributes are indexed from
1. IllegalArgumentException - if an invalid range list is suppliedpublic void setNominalCols(Range value)
value - the range to usepublic Range getNominalCols()
public String nominalColsTipText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||