public class CanopyBuilder
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CanopyBuilder(weka.core.Instances headerWithSummary,
weka.core.Instances headerNoSummary,
CanopyMapTask canopyMapTask,
java.lang.String csvMapTaskOptions)
Construct a new Canopy builder
|
| Modifier and Type | Method and Description |
|---|---|
void |
finishedInput()
Notify that there is no more input
|
weka.clusterers.Clusterer |
getFinalizedClusterer()
Return the finalized clusterer.
|
void |
process(java.lang.Object current)
Process the current object (instance or string).
|
public CanopyBuilder(weka.core.Instances headerWithSummary,
weka.core.Instances headerNoSummary,
CanopyMapTask canopyMapTask,
java.lang.String csvMapTaskOptions)
headerWithSummary - the header of the data with summary attributesheaderNoSummary - the header of the data without summary attributescanopyMapTask - the configured map task to usecsvMapTaskOptions - options for csv parsingpublic void process(java.lang.Object current)
throws DistributedWekaException,
java.io.IOException
current - either an Instance or a string (assumed CSV)DistributedWekaException - if a problem occursjava.io.IOException - if a problem occurspublic void finishedInput()
public weka.clusterers.Clusterer getFinalizedClusterer()
throws DistributedWekaException
DistributedWekaException - if a problem occurs