Pycharm使用tensorflow_Datasetsエラー【Failed to construct dataset...】
1179 ワード
tensorflow-datasetsバージョン:2.1.0
エラー:Failed to construct dataset imdb_reviews
コードを1行追加します.
tfds.load()に追加できるパラメータ:
Some common arguments: をダウンロードしません.
出典公式サイト:https://www.tensorflow.org/datasets/overview
import tensorflow_datasets as tfds
datasets, info = tfds.load('imdb_reviews/subwords8k', with_info=True, as_supervised=True)
エラー:Failed to construct dataset imdb_reviews
コードを1行追加します.
_is_gcs_disabled = False
tfds.load()に追加できるパラメータ:
Some common arguments:
split=
: Which split to read (e.g. 'train'
, ['train', 'test']
, 'train[80%:]'
,...). See our split API guide. shuffle_files=
: Control whether to shuffle the files between each epoch (TFDS store big datasets in multiple smaller files). data_dir=
: Location where the dataset is saved ( defaults to ~/tensorflow_datasets/
)、ダウンロードフォルダを設定し、デフォルトは ~/tensorflow_datasets/
with_info=True
: Returns the tfds.core.DatasetInfo
containing dataset metadata download=False
:Disable download、ローカルに存在する場合、直接読み取ることができ、出典公式サイト:https://www.tensorflow.org/datasets/overview