case class LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float], weight: Float = 1f, group: Int = -1, baseMargin: Float = Float.NaN) extends Serializable with Product
Labeled training data point.
- label
Label of this point.
- size
Feature dimensionality
- indices
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
- Source
- LabeledPoint.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LabeledPoint
- Product
- Equals
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float])
-
new
LabeledPoint(label: Float, size: Int, indices: Array[Int], values: Array[Float], weight: Float = 1f, group: Int = -1, baseMargin: Float = Float.NaN)
- label
Label of this point.
- size
Feature dimensionality
- indices
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
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
- val baseMargin: Float
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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()
- val group: Int
- val indices: Array[Int]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val 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()
- val size: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val 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()
- val weight: Float