T
- The type of the outputs in this SequenceDataset
.public class MinimumCardinalitySequenceDataset<T extends Output<T>> extends ImmutableSequenceDataset<T>
Modifier and Type | Class and Description |
---|---|
static class |
MinimumCardinalitySequenceDataset.MinimumCardinalitySequenceDatasetProvenance
Provenance for
MinimumCardinalitySequenceDataset . |
featureIDMap, outputIDInfo
data, outputFactory, sourceProvenance
Constructor and Description |
---|
MinimumCardinalitySequenceDataset(SequenceDataset<T> sequenceDataset,
int minCardinality) |
Modifier and Type | Method and Description |
---|---|
int |
getMinCardinality()
The minimum cardinality threshold for the features.
|
int |
getNumExamplesRemoved()
The number of examples removed due to a lack of features.
|
DatasetProvenance |
getProvenance() |
Set<String> |
getRemoved()
The feature names that were removed.
|
add, add, copyDataset, copyDataset, copyDataset, getFeatureIDMap, getFeatureMap, getOutputIDInfo, getOutputInfo, getOutputs, toString
getData, getExample, getFlatDataset, getOutputFactory, getSourceDescription, getSourceProvenance, iterator, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public MinimumCardinalitySequenceDataset(SequenceDataset<T> sequenceDataset, int minCardinality)
sequenceDataset
- this dataset is left untouched and is used to populate
the constructed dataset.minCardinality
- features with a frequency less than minCardinality
will be removed.public Set<String> getRemoved()
public int getNumExamplesRemoved()
public int getMinCardinality()
public DatasetProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<DatasetProvenance>
getProvenance
in class ImmutableSequenceDataset<T extends Output<T>>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.