public class Datum<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
description
Optional detailed description.
|
String |
name
Name of datum.
|
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 String name
public String description
public 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.Copyright © 2015. All rights reserved.