NASLib icon indicating copy to clipboard operation
NASLib copied to clipboard

Simplify package dependencies by removing unnecessary imports

Open NeoChaos12 opened this issue 4 years ago • 1 comments

I currently use NASLib as a backend for defining my own search space for a benchmark. I noticed while sharing my code that the following imports introduce a number of dependencies that are not strictly necessary in use cases where only a subset of all the search spaces defined by NASLib are to be used. Auto-importing these search spaces enforces the constraint that the dependencies of each and every search space must be satisfied in order to use any single one of the search spaces. Is this truly necessary? For reference, I am currently using only the NASBench-201 search space.

https://github.com/automl/NASLib/blob/afa98c3ffa623aabe8d38bfe243e51b93a845de4/naslib/search_spaces/init.py#L1-L10

NeoChaos12 avatar Dec 02 '21 19:12 NeoChaos12

Great issue. Have you had any success removing the packages and running without excess dependencies?

georgiachanning avatar Jul 07 '22 19:07 georgiachanning