public class VenuePaperClusterIterator extends AbstractPipeInputIterator
parentInstance| Constructor and Description |
|---|
VenuePaperClusterIterator(Collection paperClusters,
Collection venueClusters,
Random r,
double positiveInstanceRatio)
Randomly choose nodes and build clusters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Object |
next() |
Instance |
nextInstance() |
void |
remove() |
setParentInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic VenuePaperClusterIterator(Collection paperClusters, Collection venueClusters, Random r, double positiveInstanceRatio)
clusters - true clusteringr - for randomly selecting nodes to clusternegativeInstanceFrequency - include negative instances with frequency 1/negativeInstanceFrequencygenerateSampledInstances - sample positive instances from true clusters by samplingsampleSize - number of training instancespublic boolean hasNext()
hasNext in interface IteratorhasNext in class AbstractPipeInputIteratorpublic Instance nextInstance()
nextInstance in interface PipeInputIteratornextInstance in class AbstractPipeInputIteratorpublic Object next()
next in interface Iteratornext in class AbstractPipeInputIteratorpublic void remove()
remove in interface Iteratorremove in class AbstractPipeInputIteratorCopyright © 2019 JULIE Lab, Germany. All rights reserved.