public class DatasetExtractors extends Object
| Modifier and Type | Method and Description |
|---|---|
static <FEATURE,OBJECT,KEY> |
createLazyFeatureDataset(GroupedDataset<KEY,? extends ListDataset<OBJECT>,OBJECT> input,
FeatureExtractor<FEATURE,OBJECT> extractor)
Create a
GroupedDataset of keys to ListDataset of
features from the given GroupedDataset of keys to
ListDatasets of objects by extracting the features from the
objects with the given feature extractor. |
static <FEATURE,OBJECT> |
createLazyFeatureDataset(ListDataset<OBJECT> input,
FeatureExtractor<FEATURE,OBJECT> extractor)
Create a
ListDataset of features from the given
ListDataset of objects by extracting the features from the
objects with the given feature extractor. |
public static <FEATURE,OBJECT> ListDataset<FEATURE> createLazyFeatureDataset(ListDataset<OBJECT> input, FeatureExtractor<FEATURE,OBJECT> extractor)
ListDataset of features from the given
ListDataset of objects by extracting the features from the
objects with the given feature extractor.
This function is produces a lazy ListDataset instance that
extracts features on demand. No caching is performed, so if you
get from the resultant list for the same element many times,
you'll invoke the feature extractor each time.
input - the ListDataset of input objectsextractor - the feature extractorListDataset of featurespublic static <FEATURE,OBJECT,KEY> GroupedDataset<KEY,ListDataset<FEATURE>,FEATURE> createLazyFeatureDataset(GroupedDataset<KEY,? extends ListDataset<OBJECT>,OBJECT> input, FeatureExtractor<FEATURE,OBJECT> extractor)
GroupedDataset of keys to ListDataset of
features from the given GroupedDataset of keys to
ListDatasets of objects by extracting the features from the
objects with the given feature extractor.
This function is produces a lazy GroupedDataset instance that
extracts features on demand. No caching is performed, so if you
get from the resultant list for the same element many times,
you'll invoke the feature extractor each time.
input - the GroupedDataset of input objectsextractor - the feature extractorGroupedDataset of features