public class Datum<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
description
Optional detailed description.
|
java.lang.String |
name
Name of datum.
|
java.sql.Timestamp |
timestamp
Timestamp of datum in case of transactional data.
|
double |
weight
Optional weight of this datum.
|
T |
x
Immutable datum object.
|
double |
y
Class label or real-valued response.
|
public final T x
public double y
public double weight
public java.lang.String name
public java.lang.String description
public java.sql.Timestamp timestamp
public Datum(T x)
x - the datum.public Datum(T x, double y)
x - the datum.y - the class label or real-valued response.public Datum(T 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.