module documentation
FiftyOne Server view.
Class |
|
Undocumented |
Function | extend |
Adds the given extended stages to the view. |
Function | get |
Create an extended view with the provided filters. |
Function | get |
Gets the view defined by the given request parameters. |
Function | handle |
Handle a group filter for App view requests. |
Async Function | load |
Undocumented |
Function | _add |
Undocumented |
Function | _add |
Undocumented |
Function | _add |
Undocumented |
Function | _add |
Undocumented |
Function | _add |
Undocumented |
Function | _apply |
Undocumented |
Function | _apply |
Undocumented |
Function | _count |
Undocumented |
Function | _is |
Undocumented |
Function | _is |
Undocumented |
Function | _is |
Undocumented |
Function | _iter |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _make |
Undocumented |
Function | _match |
Undocumented |
Function | _project |
Undocumented |
Constant | _LABEL |
Undocumented |
Constant | _NONFINITES |
Undocumented |
Adds the given extended stages to the view.
Parameters | |
view | a fiftyone.core.collections.SampleCollection |
extended | an extended stages dict |
Returns | |
a fiftyone.core.view.DatasetView |
def get_extended_view(view, filters=None, extended_stages=None, pagination_data=False, media_types=None):
(source)
¶
Create an extended view with the provided filters.
Parameters | |
view | a fiftyone.core.collections.SampleCollection |
filters | an optional dict of App defined filters |
extendedNone | extended view stages |
paginationFalse | filters label data |
mediaNone | the media types to consider |
Returns | |
a fiftyone.core.view.DatasetView |
def get_view(dataset, view_name=None, stages=None, filters=None, pagination_data=False, extended_stages=None, sample_filter=None, reload=True, awaitable=False):
(source)
¶
Gets the view defined by the given request parameters.
Parameters | |
dataset | the dataset name or fiftyone.core.dataset.Dataset
instance |
viewNone | the name of a saved view to load |
stages:None | an optional list of serialized
fiftyone.core.stages.ViewStage instances |
filters:None | an optional dict of App defined filters |
paginationFalse | whether process samples as pagination data
- excludes all fiftyone.core.fields.DictField values
- filters label fields |
extendedNone | extended view stages |
sampleNone | an optional
fiftyone.server.filters.SampleFilter |
reload:True | whether to reload the dataset |
awaitable:False | whether to return an awaitable coroutine |
Returns | |
a fiftyone.core.view.DatasetView |
def handle_group_filter(dataset:
fod.Dataset
, view: foc.SampleCollection
, filter: GroupElementFilter
) -> fov.DatasetView
:
(source)
¶
Handle a group filter for App view requests.
Parameters | |
dataset:fod.Dataset | the fiftyone.core.dataset.Dataset |
view:foc.SampleCollection | the base fiftyone.core.collections.SampleCollection |
filter:GroupElementFilter | the fiftyone.server.aggregations.GroupElementFilter |
Returns | |
fov.DatasetView | a fiftyone.core.view.DatasetView with a group or slice
selection |
async def load_view(dataset_name:
str
, serialized_view: BSONArray
, form: ExtendedViewForm
, view_name: str | None
= None) -> foc.SampleCollection
:
(source)
¶
Undocumented