HasParallelism

HasParallelism is a Scala trait for Spark MLlib components that allow for specifying the level of parallelism for multi-threaded execution and provide a thread-pool-based execution context.

HasParallelism defines parallelism parameter that controls the number of threads in a cached thread pool.

Table 1. HasParallelism' Parameters
Parameter Default Value Description

parallelism

1

The number of threads to use when running parallel algorithms

Must be at least 1.

getExecutionContext Method

getExecutionContext: ExecutionContext

getExecutionContext…​FIXME

Note
getExecutionContext is used when…​FIXME

results matching ""

    No results matching ""