syne_tune.blackbox_repository.conversion_scripts.utils module

syne_tune.blackbox_repository.conversion_scripts.utils.get_sub_directory_and_name(name)[source]

Blackboxes are either stored under “{blackbox-repository}/{name}” (such as fcnet, nas201, …) or “{blackbox-repository}/{subdir}/{subname}” for all yahpo benchmark. In the Yahpo case, “yahpo-rbv2_xgboost” is for instance stored on “{blackbox-repository}/yahpo/rbv2_xgboost/”. :type name: str :param name: name of the blackbox, for instance “fcnet”, “lcbench” or “yahpo-rbv2_xgboost”. :return: subdirectory and subname such that the blackbox should be stored on {blackbox_repository}/{subdir}/{name}.

syne_tune.blackbox_repository.conversion_scripts.utils.blackbox_local_path(name)[source]
Return type:

Path

syne_tune.blackbox_repository.conversion_scripts.utils.upload_blackbox(name, custom_repo_id=None)[source]

Uploads a blackbox locally present in repository_path to HuggingFace hub :type name: str :param name: folder must be available in repository_path/name :type custom_repo_id: Optional[str] :param custom_repo_id: hugging face hub where the blackbox should be addded

syne_tune.blackbox_repository.conversion_scripts.utils.download_file(source, destination)[source]