enable offline mode
Browse files45 unmodified lines464748495051525354555667 unmodified lines12412512612712812913013145 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"],}# 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 archivefiles = dl_manager.download_and_extract(_URLs)print(files)return [datasets.SplitGenerator(# These kwargs will be passed to _generate_examples45 unmodified lines46474849505152535455565767 unmodified lines12512612712812913013113213313413513645 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/"_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 archivefiles = _file_namestry:files = dl_manager.download_and_extract(_URLs)except:passreturn [datasets.SplitGenerator(# These kwargs will be passed to _generate_examples
binding_affinity.py+12-7