tfds.core.SplitDict
Stay organized with collections
Save and categorize content based on your preferences.
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
View source
@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
View source
@classmethod
merge_multiple(
split_dicts: List['SplitDict']
) -> 'SplitDict'
to_proto
View source
to_proto()
Returns a list of SplitInfo protos that we have.
update
View source
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__
View source
__getitem__(
key
)
x.getitem(y) <==> x[y]
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-26 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]