Dataset ViewsAPI described below.
Trueif the labels in a tensor are in the desired
labels_list. If there are inputs to the filtering function other than
sample_in, it must be decorated with
ds.filter()command below, and it returns a
Dataset Viewthat only contains the indices that met the filtering condition (more details below). Just like in the Parallel Computing API, the
sample_inparameter does not need to be passed into the filter function when evaluating it, and multi-processing can be specified using the
Dataset Viewis any subset of a Deep Lake dataset that does not contains all of the samples. It can be an output of a query, filtering function, or regular indexing like
ds_viewcan be accessed just like a regular dataset.
Dataset Viewcan be saved permanently using the method below, which stores its indices without copying the data:
Dataset Viewhas a unique
id, and views can be examined or loaded using: