You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should run a patched version of scikit-learn algorithms. However, if scikit-learn-intelex package is not installed, benchmarks cannot be patched and should print an error or warning.
Before this fix the log isn't displayed in bench.py, because bench.py is
running via subprocess, so the log config set in runner.py has no effect in
bench.py, and the log config in bench.py follows the default strategy
(log_level=WARNING, stream=stderr), so when scikit-learn-intelex is not
installed, the info log can't be displayed, furthermore, all other info logs
in bench.py can't be displayed either.
This fix does the following change:
1. Set a log config in bench.py (log_level=INFO, stream=stderr).
2. Add return_code in the return value of utils.read_output_from_command() to identify if there is any error in subprocess.
3. In runner.py, if no error occured, the log from subprocess in stderr will be printed, otherwise is_success will be set to False and the error message will be displayed through a warning log.
FixesIntelPython#75
Co-authored-by: Wu, Zihan <zihan.wu@intel.com>
Signed-off-by: Deng, Lulin <lulin.deng@intel.com>
Signed-off-by: Zhou, Shuangpeng <shuangpeng.zhou@intel.com>
Signed-off-by: Xu, Yanyue <yanyue.xu@intel.com>
If I try to run benchmarks with the command like
it should run a patched version of scikit-learn algorithms. However, if scikit-learn-intelex package is not installed, benchmarks cannot be patched and should print an error or warning.
I cannot see the message in https://github.com/IntelPython/scikit-learn_bench/blob/master/bench.py#L204 for some reason.
The text was updated successfully, but these errors were encountered: