class LightGBMDataset extends AutoCloseable
Represents a LightGBM dataset. Wraps the native implementation.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LightGBMDataset
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
LightGBMDataset(datasetPtr: SWIGTYPE_p_void)
- datasetPtr
The native representation of the dataset.
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
- def addDoubleField(field: SWIGTYPE_p_double, fieldName: String, numRows: Int): Unit
- def addDoubleField(field: doubleChunkedArray, fieldName: String, numRows: Int): Unit
- def addDoubleField(field: Array[Double], fieldName: String, numRows: Int): Unit
- def addFloatField(field: SWIGTYPE_p_float, fieldName: String, numRows: Int): Unit
- def addFloatField(field: floatChunkedArray, fieldName: String, numRows: Int): Unit
- def addFloatField(field: Array[Double], fieldName: String, numRows: Int): Unit
- def addGroupColumn[T](rows: Array[T]): Unit
- def addIntField(field: Array[Int], fieldName: String, numRows: Int): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
close(): Unit
- Definition Classes
- LightGBMDataset → AutoCloseable
- val datasetPtr: SWIGTYPE_p_void
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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 getField[T](fieldName: String)(implicit arg0: ClassTag[T]): Array[T]
- def getLabel(): Array[Float]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
numData(): Int
Get the number of rows in the Dataset.
Get the number of rows in the Dataset.
- returns
The number of rows.
-
def
numFeature(): Int
Get the number of features in the Dataset.
Get the number of features in the Dataset.
- returns
The number of features.
- def setFeatureNames(featureNamesOpt: Option[Array[String]], numCols: Int): LightGBMDataset
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def validateDataset(): Unit
-
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()