public class CanopyAssigner
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CanopyAssigner(weka.core.Instances headerNoSummary,
java.lang.String csvParsingOpts,
weka.clusterers.Canopy canopy,
weka.filters.Filter preprocess)
Construct a new CanopyAssigner
|
Modifier and Type | Method and Description |
---|---|
InstanceWithCanopyAssignments |
process(java.lang.Object current)
Process an instance
|
public CanopyAssigner(weka.core.Instances headerNoSummary, java.lang.String csvParsingOpts, weka.clusterers.Canopy canopy, weka.filters.Filter preprocess)
headerNoSummary
- the structure of the data without summary attributescsvParsingOpts
- the options for CSV parsingcanopy
- trained canopy clusterer to use for assigning canopies to
instancespreprocess
- an optional preprocessing filter (missing values replacer
+ other filters that might have been used when the canopy
clusterer was constructed).public InstanceWithCanopyAssignments process(java.lang.Object current) throws DistributedWekaException, java.io.IOException
current
- either an instance object or a string (CSV)DistributedWekaException
- if a problem occursjava.io.IOException
- if a problem occurs