Instance
, MultiLabelInstance
, java.io.Serializable
FilteredSparseInstance
public class SparseInstance extends InstanceImpl
instanceData, instanceHeader, weight
Constructor | Description |
---|---|
SparseInstance(double numberAttributes) |
Instantiates a new sparse instance.
|
SparseInstance(double d,
double[] res) |
Instantiates a new sparse instance.
|
SparseInstance(double weight,
double[] attributeValues,
int[] indexValues,
int numberAttributes) |
Instantiates a new sparse instance.
|
SparseInstance(InstanceImpl inst) |
Instantiates a new sparse instance.
|
addSparseValues, attribute, classAttribute, classIndex, classIsMissing, classValue, classValue, copy, dataset, deleteAttributeAt, index, indexOfAttribute, inputAttribute, insertAttributeAt, isMissing, isMissing, isMissingSparse, numAttributes, numberOutputTargets, numClasses, numInputAttributes, numOutputAttributes, numValues, outputAttribute, setClassValue, setClassValue, setDataset, setMissing, setMissing, setValue, setValue, setWeight, stringValue, toDoubleArray, toString, value, value, valueInputAttribute, valueOutputAttribute, valueSparse, weight
public SparseInstance(double d, double[] res)
d
- the dres
- the respublic SparseInstance(InstanceImpl inst)
inst
- the instpublic SparseInstance(double numberAttributes)
numberAttributes
- the number attributespublic SparseInstance(double weight, double[] attributeValues, int[] indexValues, int numberAttributes)
weight
- the weightattributeValues
- the attribute valuesindexValues
- the index valuesnumberAttributes
- the number attributesCopyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.