pardata.dataset.Dataset.is_downloaded
- Dataset.is_downloaded()
Check to see if the dataset was downloaded. We determine this by comparing the extracted file tree with the file list
_file_list_file()
(their existence, types, and sizes). In this way, if the extraction of the archive failed, this should returnFalse
and the user would not be misled. For performance reasons, we do not examine the content of the extracted files.- Returns
True
if the dataset has been downloaded andFalse
otherwise.- Return type
Warning
is_downloaded()
will search for the dataset files inDataset._data_dir
(passed in viadata_dir
in the constructorDataset
). If after downloading, you manipulate the data files outside the control of this library, this method may produce unexpected behavior.