You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 1.17.1 / 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