poprox_recommender.config#
Access to configuration settings for the POPROX recommender pipeline.
Functions
Whether to allow tests to fail because the DVC-managed data is missing. |
|
|
Get the available amount of CPU parallelism. |
Get the default device for POPROX components. |
- poprox_recommender.config.default_device()#
Get the default device for POPROX components. This is read from the
POPROX_REC_DEVICE
environment variable, and defaults tocpu
if that variable is not set.- Return type:
- poprox_recommender.config.available_cpu_parallelism(max=None)#
Get the available amount of CPU parallelism. If the
POPROX_CPU_COUNT
environment variable is set, that is consulted; otherwise the number of CPUs detected on the system is returned.