public class AttributeDataset.Row extends Datum<double[]>
| Constructor and Description |
|---|
Row(double[] x)
Constructor.
|
Row(double[] x,
double y)
Constructor.
|
Row(double[] x,
double y,
double weight)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
date(int i)
Returns a date element.
|
java.lang.String |
label()
Returns the class label in string format.
|
java.lang.String |
string(int i)
Returns an element value in string format.
|
java.lang.String |
toString() |
public Row(double[] x)
x - the datum.public Row(double[] x,
double y)
x - the datum.y - the class label or real-valued response.public Row(double[] x,
double y,
double weight)
x - the datum.y - the class label or real-valued response.weight - the weight of datum. The particular meaning of weight
depends on applications and machine learning algorithms. Although there
are on explicit requirements on the weights, in general, they should be
positive.public java.lang.String label()
public java.lang.String string(int i)
i - the element index.public java.util.Date date(int i)
i - the element index.public java.lang.String toString()
toString in class java.lang.Object