text_classification_with_hub error #713
Unanswered
KylinskyChen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
text_classification_with_hub.ipynb
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[6], line 8 1 # Split the training set into 60% and 40% to end up with 15,000 examples 2 # for training, 10,000 examples for validation and 25,000 examples for testing. 3 # train_data, validation_data, test_data = tfds.load( 4 # name="imdb_reviews", 5 # split=('train[:60%]', 'train[60%:]', 'test'), 6 # as_supervised=True) ----> 8 (train_data, validation_data, test_data), info = tfds.load( 9 name="imdb_reviews", 10 split=('train[:60%]', 'train[60%:]', 'test'), 11 as_supervised=True, 12 with_info=True 13 ) File [c:\Users\Administrator\tsTrain\lib\site-packages\tensorflow_datasets\core\logging\__init__.py:169](file:///C:/Users/Administrator/tsTrain/lib/site-packages/tensorflow_datasets/core/logging/__init__.py:169), in _FunctionDecorator.__call__(self, function, instance, args, kwargs) 167 metadata = self._start_call() 168 try: --> 169 return function(*args, **kwargs) 170 except Exception: 171 metadata.mark_error() File [c:\Users\Administrator\tsTrain\lib\site-packages\tensorflow_datasets\core\load.py:640](file:///C:/Users/Administrator/tsTrain/lib/site-packages/tensorflow_datasets/core/load.py:640), in load(name, split, data_dir, batch_size, shuffle_files, download, as_supervised, decoders, read_config, with_info, builder_kwargs, download_and_prepare_kwargs, as_dataset_kwargs, try_gcs) 521 """Loads the named dataset into a `tf.data.Dataset`. ... TypeError: __init__(): incompatible constructor arguments. The following argument types are supported: 1. tensorflow.python._pywrap_file_io.BufferedInputStream(arg0: str, arg1: int) Invoked with: WindowsGPath('C:\\Users\\Administrator\\tensorflow_datasets\\downloads\\ai.stanfor.edu_amaas_sentime_aclImdb_v1xA90oY07YfkP66HhdzDg046Ll8Bf3nAIlC6Rkj0WWP4.tar.gz'), 524288 Output is truncated. View as a [scrollable element](command:cellOutput.enableScrolling?62a367da-07c2-4161-8f3b-ad46dccc51a3) or open in a [text editor](command:workbench.action.openLargeOutput?62a367da-07c2-4161-8f3b-ad46dccc51a3). Adjust cell output [settings](command:workbench.action.openSettings?%5B%22%40tag%3AnotebookOutputLayout%22%5D)...How do we fix this?
Beta Was this translation helpful? Give feedback.
All reactions