MultiTargetArffLoader
public class ArffLoader
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.util.List<Attribute> |
auxAttributes |
|
protected InstanceInformation |
instanceInformation |
The instance information.
|
protected Range |
range |
|
protected InstancesHeader |
streamHeader |
|
protected java.io.StreamTokenizer |
streamTokenizer |
The stream tokenizer.
|
Constructor | Description |
---|---|
ArffLoader(java.io.Reader reader) |
Instantiates a new arff loader.
|
ArffLoader(java.io.Reader reader,
int size,
int classAttribute) |
Instantiates a new arff loader.
|
ArffLoader(java.io.Reader reader,
Range range) |
Instantiates a new arff loader.
|
Modifier and Type | Method | Description |
---|---|---|
InstanceInformation |
getStructure() |
Gets the structure.
|
protected Instance |
newDenseInstance(int numberAttributes) |
|
protected Instance |
newSparseInstance(double d) |
|
protected Instance |
newSparseInstance(double d,
double[] res) |
|
Instance |
readInstance() |
Reads instance.
|
Instance |
readInstanceDense() |
Reads a dense instance from the file.
|
protected void |
setValue(Instance instance,
int numAttribute,
double value,
boolean isNumber) |
protected InstanceInformation instanceInformation
protected InstancesHeader streamHeader
protected java.io.StreamTokenizer streamTokenizer
protected Range range
protected java.util.List<Attribute> auxAttributes
public ArffLoader(java.io.Reader reader, int size, int classAttribute)
reader
- the readersize
- the sizeclassAttribute
- the class attributepublic ArffLoader(java.io.Reader reader)
reader
- the readerrange
- size
- the sizeclassAttribute
- the class attributepublic ArffLoader(java.io.Reader reader, Range range)
reader
- the readerrange
- size
- the sizeclassAttribute
- the class attributepublic InstanceInformation getStructure()
public Instance readInstance()
public Instance readInstanceDense()
protected void setValue(Instance instance, int numAttribute, double value, boolean isNumber)
protected Instance newSparseInstance(double d, double[] res)
protected Instance newSparseInstance(double d)
protected Instance newDenseInstance(int numberAttributes)
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.