resolve_max_depth
Description:
Calculates the proper max depth.
Parameters:
elements |
an estimate of the number of elements. it is negative if infinite or unknown. |
threads |
the number of threads (always >= 1) |
Returns:
max depth. 0: no split, 1: one split, 2: two split, ... (a split may generate one or more child nodes). unlimited if negative |