Package cc.mallet.pipe.iterator
Class RandomFeatureVectorIterator
- java.lang.Object
-
- cc.mallet.pipe.iterator.RandomFeatureVectorIterator
-
-
Constructor Summary
Constructors Constructor Description RandomFeatureVectorIterator(Randoms r, int vocabSize, int numClasses)
RandomFeatureVectorIterator(Randoms r, Alphabet vocab, java.lang.String[] classnames)
RandomFeatureVectorIterator(Randoms r, Dirichlet classCentroidDistribution, double classCentroidAvergeAlphaMean, double classCentroidAvergeAlphaVariance, double featureVectorSizePoissonLambda, double classInstanceCountPoissonLamba, java.lang.String[] classNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Alphabet
getAlphabet()
LabelAlphabet
getLabelAlphabet()
boolean
hasNext()
Instance
next()
void
remove()
void
reset()
-
-
-
Constructor Detail
-
RandomFeatureVectorIterator
public RandomFeatureVectorIterator(Randoms r, Dirichlet classCentroidDistribution, double classCentroidAvergeAlphaMean, double classCentroidAvergeAlphaVariance, double featureVectorSizePoissonLambda, double classInstanceCountPoissonLamba, java.lang.String[] classNames)
-
RandomFeatureVectorIterator
public RandomFeatureVectorIterator(Randoms r, Alphabet vocab, java.lang.String[] classnames)
-
RandomFeatureVectorIterator
public RandomFeatureVectorIterator(Randoms r, int vocabSize, int numClasses)
-
-
Method Detail
-
getAlphabet
public Alphabet getAlphabet()
-
reset
public void reset()
-
getLabelAlphabet
public LabelAlphabet getLabelAlphabet()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<Instance>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Instance>
-
-