Class MultilabelArffFileStream
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.streams.ArffFileStream
-
- moa.streams.generators.multilabel.MultilabelArffFileStream
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,MOAObject
,OptionHandler
,ExampleStream<Example<Instance>>
,ConceptDriftGenerator
,InstanceStream
,MultiTargetInstanceStream
public class MultilabelArffFileStream extends ArffFileStream implements MultiTargetInstanceStream
Stream reader for ARFF files of multilabel data.- Version:
- $Revision: 7 $
- Author:
- Jesse Read (jmr30@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description IntOption
numLabelsOption
-
Fields inherited from class moa.streams.ArffFileStream
arffFileOption, classIndexOption, clusterEvents, fileProgressMonitor, fileReader, hitEndOfFile, instances, lastInstanceRead, numInstancesRead
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description MultilabelArffFileStream()
MultilabelArffFileStream(String arffFileName, int numLabels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancesHeader
getHeader()
Gets the header of this stream.String
getPurposeString()
Dictionary with option texts and objects-
Methods inherited from class moa.streams.ArffFileStream
defineImmutableCapabilities, estimatedRemainingInstances, getDescription, getEventsList, hasMoreInstances, isRestartable, nextInstance, prepareForUseImpl, readNextInstanceFromFile, restart
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.streams.ExampleStream
defineImmutableCapabilities, estimatedRemainingInstances, hasMoreInstances, isRestartable, nextInstance, restart
-
Methods inherited from interface moa.MOAObject
getDescription, measureByteSize
-
-
-
-
Field Detail
-
numLabelsOption
public IntOption numLabelsOption
-
-
Constructor Detail
-
MultilabelArffFileStream
public MultilabelArffFileStream()
-
MultilabelArffFileStream
public MultilabelArffFileStream(String arffFileName, int numLabels)
-
-
Method Detail
-
getPurposeString
public String getPurposeString()
Description copied from class:AbstractOptionHandler
Dictionary with option texts and objects- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classArffFileStream
- Returns:
- the string with the purpose of this object
-
getHeader
public InstancesHeader getHeader()
Description copied from interface:ExampleStream
Gets the header of this stream. This is useful to know attributes and classes. InstancesHeader is an extension of weka.Instances.- Specified by:
getHeader
in interfaceExampleStream<Example<Instance>>
- Overrides:
getHeader
in classArffFileStream
- Returns:
- the header of this stream
-
-