public class NodeClusterPairIterator extends AbstractPipeInputIterator
parentInstance| Constructor and Description |
|---|
NodeClusterPairIterator(Collection clusters,
Random r,
double positiveInstanceRatio,
boolean generateSampledInstances) |
NodeClusterPairIterator(Collection clusters,
Random r,
double positiveInstanceRatio,
boolean generateSampledInstances,
int sampleSize)
Randomly choose nodes and build clusters.
|
NodeClusterPairIterator(List data) |
| 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 NodeClusterPairIterator(Collection clusters, Random r, double positiveInstanceRatio, boolean generateSampledInstances, int sampleSize)
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 NodeClusterPairIterator(Collection clusters, Random r, double positiveInstanceRatio, boolean generateSampledInstances)
public NodeClusterPairIterator(List data)
public 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.