public class LabeledPoint extends Object implements Serializable
| Constructor and Description |
|---|
LabeledPoint(float label,
float[] values)
Create Labeled data point from a dense vector.
|
LabeledPoint(float label,
int[] indices,
float[] values)
Create Labeled data point from a sparse vector.
|
public LabeledPoint(float label,
int[] indices,
float[] values)
label - The label of the data point.indices - The indicesvalues - The values.public LabeledPoint(float label,
float[] values)
label - The label of the data point.values - The values.Copyright © 2019. All rights reserved.