View source on GitHub |
Split info object.
tfds.core.SplitDict(
split_infos: Iterable[SplitInfo], *, dataset_name: Optional[str] = None
)
Attributes | |
---|---|
total_num_examples
|
Return the total number of examples. |
Methods
from_proto
@classmethod
from_proto( repeated_split_infos: Iterable[proto_lib.SplitInfo], filename_template: naming.ShardedFileTemplate ) -> 'SplitDict'
Returns a new SplitDict initialized from the repeated_split_infos
.
merge_multiple
@classmethod
merge_multiple( split_dicts: List['SplitDict'] ) -> 'SplitDict'
to_proto
to_proto()
Returns a list of SplitInfo protos that we have.
update
update(
other
)
D.update([E, ]**F) -> None. Update D from dict/iterable E and F. If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
__getitem__
__getitem__(
key
)
x.getitem(y) <==> x[y]