cc.mallet.pipe.iterator
Class RandomFeatureVectorIterator
java.lang.Object
cc.mallet.pipe.iterator.RandomFeatureVectorIterator
- All Implemented Interfaces:
- java.util.Iterator<Instance>
public class RandomFeatureVectorIterator
- extends java.lang.Object
- implements java.util.Iterator<Instance>
Constructor Summary |
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)
|
RandomFeatureVectorIterator(Randoms r,
int vocabSize,
int numClasses)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
getAlphabet
public Alphabet getAlphabet()
reset
public void reset()
getLabelAlphabet
public LabelAlphabet getLabelAlphabet()
next
public Instance next()
- Specified by:
next
in interface java.util.Iterator<Instance>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<Instance>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<Instance>