Uses of Class
org.tribuo.sequence.SequenceExample
Packages that use SequenceExample
-
Uses of SequenceExample in org.tribuo.sequence
Subinterfaces with type arguments of type SequenceExample in org.tribuo.sequenceModifier and TypeInterfaceDescriptioninterfaceSequenceDataSource<T extends Output<T>>A interface for things that can be given to a SequenceDataset's constructor.Classes in org.tribuo.sequence that implement interfaces with type arguments of type SequenceExampleModifier and TypeClassDescriptionclassSequenceDataset<T extends Output<T>>A class for sets of data, which are used to train and evaluate classifiers.Fields in org.tribuo.sequence with type parameters of type SequenceExampleModifier and TypeFieldDescriptionprotected final List<SequenceExample<T>> SequenceDataset.dataThe data in this data set.Methods in org.tribuo.sequence that return SequenceExampleModifier and TypeMethodDescriptionSequenceExample.copy()Returns a deep copy of this SequenceExample.static <T extends Output<T>>
SequenceExample<T> SequenceExample.createWithEmptyOutputs(List<? extends List<? extends Feature>> features, OutputFactory<T> outputFactory) Creates a SequenceExample usingOutputFactory.getUnknownOutput()as the output for each sequence element.static SequenceExample<?> SequenceExample.deserialize(org.tribuo.protos.core.SequenceExampleProto e) Deserialization shortcut, used to firm up the types.static SequenceExample<?> SequenceExample.deserializeFromProto(int version, String className, com.google.protobuf.Any message) Deserialization factory.SequenceDataset.getExample(int index) Gets the example at the specified index, or throws IllegalArgumentException if the index is out of bounds.Methods in org.tribuo.sequence that return types with arguments of type SequenceExampleModifier and TypeMethodDescriptionprotected static List<SequenceExample<?>> SequenceDataset.deserializeExamples(List<org.tribuo.protos.core.SequenceExampleProto> examplesList, Class<?> outputClass, FeatureMap fmap) Deserializes a list of sequence example protos into a list of sequence examples.SequenceDataset.getData()Returns an unmodifiable view on the data.SequenceDataset.iterator()Methods in org.tribuo.sequence with parameters of type SequenceExampleModifier and TypeMethodDescriptionprotected voidImmutableSequenceDataset.add(SequenceExample<T> ex) Adds aSequenceExampleto the dataset, which will insert feature ids, remove unknown features and sort the examples by the feature ids.protected voidImmutableSequenceDataset.add(SequenceExample<T> ex, Merger merger) Adds aSequenceExampleto the dataset, which will insert feature ids, remove unknown features and sort the examples by the feature ids.voidMutableSequenceDataset.add(SequenceExample<T> ex) Adds aSequenceExampleto this dataset.List<Prediction<T>> IndependentSequenceModel.predict(SequenceExample<T> example) abstract List<Prediction<T>> SequenceModel.predict(SequenceExample<T> example) Uses the model to predict the output for a single example.Method parameters in org.tribuo.sequence with type arguments of type SequenceExampleModifier and TypeMethodDescriptionvoidMutableSequenceDataset.addAll(Collection<SequenceExample<T>> collection) Adds all the SequenceExamples in the supplied collection to this dataset.List<List<Prediction<T>>> SequenceModel.predict(Iterable<SequenceExample<T>> examples) Uses the model to predict the output for multiple examples.Constructors in org.tribuo.sequence with parameters of type SequenceExampleModifierConstructorDescriptionSequenceExample(SequenceExample<T> other) Creates a deep copy of the supplied sequence example.Constructor parameters in org.tribuo.sequence with type arguments of type SequenceExampleModifierConstructorDescriptionImmutableSequenceDataset(Iterable<SequenceExample<T>> dataSource, DataProvenance sourceProvenance, FeatureMap featureIDMap, OutputInfo<T> outputIDInfo, OutputFactory<T> outputFactory) Creates a dataset from a data source.ImmutableSequenceDataset(Iterable<SequenceExample<T>> dataSource, DataProvenance sourceProvenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, OutputFactory<T> outputFactory) Creates a dataset from a data source.protectedImmutableSequenceDataset(DataProvenance provenance, OutputFactory<T> factory, String tribuoVersion, ImmutableFeatureMap fmap, ImmutableOutputInfo<T> outputInfo, List<SequenceExample<T>> examples) Deserialization constructor.MutableSequenceDataset(Iterable<SequenceExample<T>> dataSource, DataProvenance sourceProvenance, OutputFactory<T> outputFactory) Creates a dataset from a data source.