|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.boundaryvisualizer.KDDataGenerator
KDDataGenerator. Class that uses kernels to generate new random instances based on a supplied set of instances.
DataGenerator
,
Serializable
,
Serialized FormConstructor Summary | |
KDDataGenerator()
|
Method Summary | |
void |
buildGenerator(Instances inputInstances)
Initialize the generator using the supplied instances |
Instance |
generateInstance()
Generate a new instance. |
Instance |
generateInstanceFast()
Generate a new instance. |
int |
getNumGeneratingModels()
Return the number of kernels (there is one per training instance) |
static void |
main(java.lang.String[] args)
Main method for tesing this class |
void |
setWeightingDimensions(boolean[] dims)
Set which dimensions to use when computing a weight for the next instance to generate |
void |
setWeightingValues(double[] vals)
Set the values for the weighting dimensions to be used when computing the weight for the next instance to be generated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KDDataGenerator()
Method Detail |
public void buildGenerator(Instances inputInstances) throws java.lang.Exception
buildGenerator
in interface DataGenerator
inputInstances
- the instances to use as the basis of the kernels
java.lang.Exception
- if an error occurspublic Instance generateInstance() throws java.lang.Exception
generateInstance
in interface DataGenerator
Instance
value
java.lang.Exception
- if an error occurspublic Instance generateInstanceFast() throws java.lang.Exception
generateInstanceFast
in interface DataGenerator
Instance
value
java.lang.Exception
- if an error occurspublic void setWeightingDimensions(boolean[] dims)
setWeightingDimensions
in interface DataGenerator
dims
- an array of booleans indicating which dimensions to usepublic void setWeightingValues(double[] vals)
setWeightingValues
in interface DataGenerator
vals
- an array of doubles containing the values of the
weighting dimensions (corresponding to the entries that are set to
true throw setWeightingDimensions)public int getNumGeneratingModels()
getNumGeneratingModels
in interface DataGenerator
public static void main(java.lang.String[] args)
args
- a String[]
value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |