Packages

class LightGBMDataset extends AutoCloseable

Represents a LightGBM dataset. Wraps the native implementation.

Linear Supertypes
AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LightGBMDataset
  2. AutoCloseable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LightGBMDataset(datasetPtr: SWIGTYPE_p_void)

    datasetPtr

    The native representation of the dataset.

Value Members

  1. def addDoubleField(field: SWIGTYPE_p_double, fieldName: String, numRows: Int): Unit
  2. def addDoubleField(field: doubleChunkedArray, fieldName: String, numRows: Int): Unit
  3. def addDoubleField(field: Array[Double], fieldName: String, numRows: Int): Unit
  4. def addFloatField(field: SWIGTYPE_p_float, fieldName: String, numRows: Int): Unit
  5. def addFloatField(field: floatChunkedArray, fieldName: String, numRows: Int): Unit
  6. def addFloatField(field: Array[Double], fieldName: String, numRows: Int): Unit
  7. def addGroupColumn[T](rows: Array[T]): Unit
  8. def addIntField(field: Array[Int], fieldName: String, numRows: Int): Unit
  9. def close(): Unit
    Definition Classes
    LightGBMDataset → AutoCloseable
  10. val datasetPtr: SWIGTYPE_p_void
  11. def getField[T](fieldName: String)(implicit arg0: ClassTag[T]): Array[T]
  12. def getLabel(): Array[Float]
  13. def numData(): Int

    Get the number of rows in the Dataset.

    Get the number of rows in the Dataset.

    returns

    The number of rows.

  14. def numFeature(): Int

    Get the number of features in the Dataset.

    Get the number of features in the Dataset.

    returns

    The number of features.

  15. def setFeatureNames(featureNamesOpt: Option[Array[String]], numCols: Int): LightGBMDataset
  16. def validateDataset(): Unit