{ } Raw JSON

bundles / scipy latest / scipy / stats / _qmc / _validate_workers

function

scipy.stats._qmc:_validate_workers

source: /scipy/stats/_qmc.py :2897

Signature

def   _validate_workers ( workers : IntNumber = 1 )  →  IntNumber

Summary

Validate workers based on platform and value.

Parameters

workers : int, optional

Number of workers to use for parallel processing. If -1 is given all CPU threads are used. Default is 1.

Returns

Workers : int

Number of CPU used by the algorithm

Aliases

  • scipy.stats._qmc._validate_workers