|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.meta.generators.Generator
weka.classifiers.meta.generators.RandomizableGenerator
weka.classifiers.meta.generators.EMGenerator
public class EMGenerator
A generator that uses EM as an underlying model.
Valid options are:-D If set, generator is run in debug mode and may output additional info to the console
-S <seed> Sets the seed of the random number generator of the generator (default: 1)
Constructor Summary | |
---|---|
EMGenerator()
|
Method Summary | |
---|---|
void |
buildGenerator(Instances someinstances)
Builds the generator with a given set of instances. |
double |
generate()
Generates a value that falls under this distribution. |
Capabilities |
getCapabilities()
Returns the Capabilities of this object |
double |
getLogProbabilityOf(double valuex)
Gets the (natural) log of the probability of a given value. |
double |
getProbabilityOf(double valuex)
Gets the probability that a value falls under this distribution. |
java.lang.String |
globalInfo()
Returns a string describing this class' ability. |
Methods inherited from class weka.classifiers.meta.generators.RandomizableGenerator |
---|
getOptions, getSeed, listOptions, seedTipText, setOptions, setSeed |
Methods inherited from class weka.classifiers.meta.generators.Generator |
---|
copy, debugTipText, forName, getDebug, setDebug |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EMGenerator()
Method Detail |
---|
public java.lang.String globalInfo()
globalInfo
in class Generator
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
Capabilities
public void buildGenerator(Instances someinstances) throws java.lang.Exception
buildGenerator
in interface InstanceHandler
someinstances
- The instances that will be used to
build up the probabilities for this generator.
java.lang.Exception
- if data cannot be processedpublic double generate()
generate
in class Generator
public double getProbabilityOf(double valuex)
getProbabilityOf
in class Generator
valuex
- The value to get the probability of.
public double getLogProbabilityOf(double valuex)
getLogProbabilityOf
in class Generator
valuex
- The value to get the log probability of.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |