automl / HPOlib1.5

GNU General Public License v3.0
69 stars 27 forks source link

How to handle optional dependencies in benchmarks? #35

Open KEggensperger opened 7 years ago

KEggensperger commented 7 years ago

Right now openml-python is an optional dependency, but it is used in:

https://github.com/automl/HPOlib2/blob/development/hpolib/benchmarks/ml/svm_benchmark.py#L146

Where should we place the import statement?

1) At the top of a file? Then we should make it a required dep. 2) Not at all and then the user will have to do the import. This should then be documented. 2) Import it for each benchmark individually.