All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object | +----weka.clusterers.Clusterer | +----weka.clusterers.DistributionClusterer | +----weka.clusterers.EM
EM assigns a probability distribution to each instance which indicates the probability of it belonging to each of the clusters. EM can decide how many clusters to create by cross validation, or you may specify apriori how many clusters to generate.
Valid options are:
-V
Verbose.
-N
-S
Valid options are:
-V
-N
-S
-t training file [-T test file] [-N number of clusters] [-S random seed]
-I
Terminate after this many iterations if EM has not converged.
Specify random number seed.
EM
public EM()
listOptions
public Enumeration listOptions()
setOptions
Verbose.
-I
Terminate after this many iterations if EM has not converged.
Specify random number seed.
public void setOptions(String options[]) throws Exception
setSeed
public void setSeed(int s)
getSeed
public int getSeed()
setNumClusters
public void setNumClusters(int n) throws Exception
getNumClusters
public int getNumClusters()
setMaxIterations
public void setMaxIterations(int i) throws Exception
getMaxIterations
public int getMaxIterations()
setDebug
public void setDebug(boolean v)
getDebug
public boolean getDebug()
getOptions
public String[] getOptions()
toString
public String toString()
numberOfClusters
public int numberOfClusters() throws Exception
buildClusterer
public void buildClusterer(Instances data) throws Exception
distributionForInstance
public double[] distributionForInstance(Instance inst) throws Exception
main
public static void main(String argv[])
All Packages Class Hierarchy This Package Previous Next Index WEKA's home