module documentation
Dataset views.
Class |
|
A view into a fiftyone.core.dataset.Dataset . |
Function | make |
Returns a view that selects the provided sample IDs that is optimized to reduce the document list as early as possible in the pipeline. |
Variable | fost |
Undocumented |
Function | _discard |
Undocumented |
Function | _filter |
Undocumented |
Function | _filter |
Undocumented |
Function | _merge |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
def make_optimized_select_view(sample_collection, sample_ids, ordered=False, groups=False, flatten=False):
(source)
¶
Returns a view that selects the provided sample IDs that is optimized to reduce the document list as early as possible in the pipeline.
Warning
This method deletes any other view stages that reorder/select documents, so the returned view may not respect the order of the documents in the input collection.
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
sample | a sample ID or iterable of sample IDs to select |
ordered:False | whether to sort the samples in the returned view to match the order of the provided IDs |
groups:False | whether the IDs are group IDs, not sample IDs |
flatten:False | whether to flatten group datasets before selecting sample ids |
Returns | |
a DatasetView |