object LightGBMUtils
Helper utilities for LightGBM learners
- Alphabetic
- By Inheritance
- LightGBMUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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 addSocketAndComm(hostAndPorts: ListBuffer[(Socket, String)], log: Logger, comm: String, driverSocket: Socket): Unit
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def closeConnections(log: Logger, hostAndPorts: ListBuffer[(Socket, String)], driverServerSocket: ServerSocket): Unit
-
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 getFeaturizer(dataset: Dataset[_], labelColumn: String, featuresColumn: String, weightColumn: Option[String] = None, groupColumn: Option[String] = None, oneHotEncodeCategoricals: Boolean = true): PipelineModel
- def getNumRowsForChunksArray(numRows: Int, chunkSize: Int): SWIGTYPE_p_int
-
def
getTaskId: Long
Returns a unique task Id for the current task run on the executor.
Returns a unique task Id for the current task run on the executor.
- returns
A unique task id.
-
def
getWorkerId: Int
Returns an integer ID for the current worker.
Returns an integer ID for the current worker.
- returns
In cluster, returns the executor id. In local case, returns the partition id.
-
def
handleConnection(driverServerSocket: ServerSocket, log: Logger, hostAndPorts: ListBuffer[(Socket, String)]): ConnectionState.ConnectionState
Handles the connection to a task from the driver.
Handles the connection to a task from the driver.
- driverServerSocket
The driver socket.
- log
The log4j logger.
- hostAndPorts
A list of host and ports of connected tasks.
- returns
The connection status, can be finished for barrier mode, empty task or connected.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
initializeNativeLibrary(): Unit
Loads the native shared object binaries lib_lightgbm.so and lib_lightgbm_swig.so
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLocalExecution: Boolean
Returns true if spark is run in local mode.
Returns true if spark is run in local mode.
- returns
True if spark is run in local mode.
-
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 sendDataToExecutors(hostAndPorts: ListBuffer[(Socket, String)], allConnections: String): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def validate(result: Int, component: String): Unit
- def validateArray(result: SWIGTYPE_p_void, component: String): 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()