hyperopt / hyperopt-sklearn

Hyper-parameter optimization for sklearn
hyperopt.github.io/hyperopt-sklearn
Other
1.59k stars 272 forks source link

WARN: OMP_NUM_THREADS=None #146

Closed duckquant closed 4 years ago

duckquant commented 4 years ago

when i import hpsklearn, WARN: OMP_NUM_THREADS=None => ... If you are using openblas if you are using

how to set OMP_NUM_THREADS in a python file?

jonatasgrosman commented 4 years ago
import os

os.environ['OMP_NUM_THREADS'] = '1'