from sklearn_benchmarks.reporting.hpo import HPOReporting
from sklearn_benchmarks.utils import default_results_directory
from pathlib import Path
import pandas as pd
pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
results_dir = default_results_directory()
# Parameters
results_dir = "./results/local/20220313T221146/"
results_dir = Path(results_dir)
reporting_hpo = HPOReporting(config="config.yml", results_dir=results_dir)
reporting_hpo.make_report()
Here, we assume there is no perfect match of hyperparameters between librairies. We perform a randomized hyperparameters search with a fixed time budget for each library.
We boostrap 10 000 times the hyperparameters optimization data points represented on the plot above. Then we compute the average cumulated time to reach a specific validation score by taking the mean across the bootstrapped samples. The shaded areas represent the quartiles of the bootstrap samples. The fastest libraries are therefore the closest to the upper left corner. The specification of the HP grid can be found in the configuration file.
The speed-up threshold is found by taking 95% of the best score of the worst performing library.
/home/runner/work/sklearn_benchmarks/sklearn_benchmarks/sklearn_benchmarks/reporting/hpo.py:508: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. /home/runner/work/sklearn_benchmarks/sklearn_benchmarks/sklearn_benchmarks/reporting/hpo.py:508: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. /home/runner/work/sklearn_benchmarks/sklearn_benchmarks/sklearn_benchmarks/reporting/hpo.py:508: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. /home/runner/work/sklearn_benchmarks/sklearn_benchmarks/sklearn_benchmarks/reporting/hpo.py:508: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. /home/runner/work/sklearn_benchmarks/sklearn_benchmarks/sklearn_benchmarks/reporting/hpo.py:508: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
python | 3.8.12 | packaged by conda-forge | (default, J... |
---|---|
executable | /usr/share/miniconda/envs/sklbench/bin/python |
machine | Linux-5.11.0-1028-azure-x86_64-with-glibc2.10 |
version | |
---|---|
pip | 22.0.4 |
setuptools | 60.9.3 |
sklearn | 1.0.2 |
numpy | 1.22.3 |
scipy | 1.8.0 |
Cython | None |
pandas | 1.4.1 |
matplotlib | 3.5.1 |
joblib | 1.1.0 |
threadpoolctl | 3.1.0 |
user_api | internal_api | prefix | filepath | version | threading_layer | architecture | num_threads | |
---|---|---|---|---|---|---|---|---|
0 | blas | openblas | libopenblas | /usr/share/miniconda/envs/sklbench/lib/libopen... | 0.3.18 | pthreads | SkylakeX | 2 |
1 | openmp | openmp | libgomp | /usr/share/miniconda/envs/sklbench/lib/libgomp... | None | NaN | NaN | 2 |
cpu_count | 2 |
---|---|
physical_cpu_count | 2 |