public final class LabeledPoint extends Object implements Serializable
| Constructor and Description |
|---|
LabeledPoint(float label,
int size,
int[] indices,
float[] values) |
LabeledPoint(float label,
int size,
int[] indices,
float[] values,
float weight) |
LabeledPoint(float label,
int size,
int[] indices,
float[] values,
float weight,
int group) |
LabeledPoint(float label,
int size,
int[] indices,
float[] values,
float weight,
int group,
float baseMargin) |
| Modifier and Type | Method and Description |
|---|---|
float |
baseMargin() |
boolean |
equals(Object obj) |
int |
group() |
int |
hashCode() |
int[] |
indices() |
float |
label() |
int |
size() |
float[] |
values() |
float |
weight() |
public LabeledPoint(float label,
int size,
int[] indices,
float[] values,
float weight,
int group,
float baseMargin)
label - Label of this point.size - Feature dimensionalityindices - Feature indices of this point or `null` if the data is dense.values - Feature values of this point.weight - Weight of this point.group - Group of this point (used for ranking) or -1.baseMargin - Initial prediction on this point or `Float.NaN`public LabeledPoint(float label,
int size,
int[] indices,
float[] values)
label - Label of this point.size - Feature dimensionalityindices - Feature indices of this point or `null` if the data is dense.values - Feature values of this point.public LabeledPoint(float label,
int size,
int[] indices,
float[] values,
float weight)
label - Label of this point.size - Feature dimensionalityindices - Feature indices of this point or `null` if the data is dense.values - Feature values of this point.weight - Weight of this point.public LabeledPoint(float label,
int size,
int[] indices,
float[] values,
float weight,
int group)
label - Label of this point.size - Feature dimensionalityindices - Feature indices of this point or `null` if the data is dense.values - Feature values of this point.weight - Weight of this point.group - Group of this point (used for ranking) or -1.Copyright © 2026. All rights reserved.