|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.machinelearning.GmmDiscretizer
public class GmmDiscretizer
This discretizes values according to a gaussian mixture model (gmm). The result of discretization is the mean of the class that contributed most probability to a point.
| Constructor Summary | |
|---|---|
GmmDiscretizer(GMM model,
boolean extraZeroClass)
This constructs a Discretizer using the specified mixture model. |
|
| Method Summary | |
|---|---|
int |
discretize(int value)
This discretizes a value by returning the mean of that gaussian component that has maximum probability for it. |
int[] |
getPossibleValues()
Returns all poosible discretizations values can be mapped to. |
static GmmDiscretizer |
trainDiscretizer(java.util.List<java.lang.Integer> values,
int nrClasses,
boolean extraZero)
This trains a gaussian mixture model having the specified number of components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GmmDiscretizer(GMM model,
boolean extraZeroClass)
Discretizer using the specified mixture model.
model - GMM to be usedextraZeroClass - specifies if zeros should be treated independently| Method Detail |
|---|
public static GmmDiscretizer trainDiscretizer(java.util.List<java.lang.Integer> values,
int nrClasses,
boolean extraZero)
values - the data the model is trained withnrClasses - number of components the mixture will haveextraZero - specifies if zeroes are to be treated seperately from
mixture model training and application.
public int discretize(int value)
discretize in interface Discretizervalue - the value to be discretized
public int[] getPossibleValues()
getPossibleValues in interface Discretizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||