enable offline mode
Browse files45 unmodified lines464748495051525349505152535455565767 unmodified lines12512612712712812812913013113213313413513645 unmodified lines# TODO: Add link to the official dataset URLs here# The HuggingFace dataset library don't host the datasets but only point to the original files# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)_URL = "https://huggingface.co/datasets/jglaser/binding_affinity/resolve/main/data/"_URLs = { "default": [_URL + "all.parquet"], "no_kras": [_URL + "all_nokras.parquet"],}_URL = "https://huggingface.co/datasets/jglaser/binding_affinity/resolve/main/"
_file_names = {'default': 'data/all.parquet', 'no_kras': 'data/all_nokras.parquet'}
_URLs = {name: _URL+_file_names[name] for name in _file_names}
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case67 unmodified lines # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files. # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive files = dl_manager.download_and_extract(_URLs) print(files) files = _file_names try: files = dl_manager.download_and_extract(_URLs) except: pass
return [ datasets.SplitGenerator( # These kwargs will be passed to _generate_examplesbinding_affinity.py+12-7