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
- 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
-
def
close(): Unit
- Definition Classes
- LightGBMDataset → AutoCloseable
- val datasetPtr: SWIGTYPE_p_void
- def getField[T](fieldName: String)(implicit arg0: ClassTag[T]): Array[T]
- def getLabel(): Array[Float]
-
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
- def validateDataset(): Unit