Skip to content

Instantly share code, notes, and snippets.

@Eshan-Agarwal
Created April 6, 2020 17:24
Show Gist options
  • Save Eshan-Agarwal/20d0694760b971ef3281400455f30f33 to your computer and use it in GitHub Desktop.
Save Eshan-Agarwal/20d0694760b971ef3281400455f30f33 to your computer and use it in GitHub Desktop.
Traceback for subsplit
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-6-ba8aad3a0131> in <module>()
3 s1, s2, s3 = tfds.Split.TRAIN.subsplit(weighted = [2, 1, 1])
4
----> 5 dataset,info= tfds.load('mnist',with_info=True, split=s1)
13 frames
/content/datasets/tensorflow_datasets/core/tfrecords_reader.py in _str_to_relative_instruction(spec)
355 res = _SUB_SPEC_RE.match(spec)
356 if not res:
--> 357 raise AssertionError('Unrecognized instruction format: %s' % spec)
358 unit = '%' if res.group('from_pct') or res.group('to_pct') else 'abs'
359 return ReadInstruction(
AssertionError: Unrecognized instruction format: NamedSplit('train')(tfds.percent[0:50])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment