gbmParallel: Control parallelization options

View source: R/gbm-parallel.r

gbmParallelR Documentation

Control parallelization options

Description

gbmt uses openmp to parallelize its core algorithm, and the details are controlled by this object. As guidance, set num_threads to the number of cores on your computer, and set array_chunk_size to a reasonable - not necessarily small - size.

Usage

gbmParallel(num_threads = 1, array_chunk_size = 1024)

Arguments

num_threads

the number of threads to use (a positive integer). The number of cores on your computer is a reasonable default.

array_chunk_size

the size of chunks to use in array scans. Values that are too small result in a great deal of overhead; The default of 1024 appears reasonable, but do experiment.

Value

an object of type gbmParallel


gbm-developers/gbm3 documentation built on March 8, 2024, 4:48 p.m.