final class LabeledPoint extends Serializable
Labeled training data point. TODO(hcho3): Migrate Record class when we upgrade to Java 14+, to reduce boilerplate.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LabeledPoint
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float], weight: Float, group: Int)
- label
Label of this point.
- size
Feature dimensionality
- indices
Feature indices of this point or
nullif 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.
-
new
LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float], weight: Float)
- label
Label of this point.
- size
Feature dimensionality
- indices
Feature indices of this point or
nullif the data is dense.- values
Feature values of this point.
- weight
Weight of this point.
-
new
LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float])
- label
Label of this point.
- size
Feature dimensionality
- indices
Feature indices of this point or
nullif the data is dense.- values
Feature values of this point.
- new LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float], weight: Float, group: Int, baseMargin: Float)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseMargin(): Float
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- LabeledPoint → AnyRef → Any
- Annotations
- @Override()
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def group(): Int
-
def
hashCode(): Int
- Definition Classes
- LabeledPoint → AnyRef → Any
- Annotations
- @Override()
- def indices(): Array[Int]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def label(): Float
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def size(): Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def values(): Array[Float]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def weight(): Float