Uses of Interface
org.tribuo.OutputFactory
Packages that use OutputFactory
Package
Description
Provides the core interfaces and classes for using Tribuo.
Simple data sources for ingesting or aggregating data.
Provides implementations of base classes and interfaces from
org.tribuo.Provides Tribuo specific infrastructure for the
Provenance system which
tracks models and datasets.Provides core classes for working with sequences of
Examples.-
Uses of OutputFactory in org.tribuo
Fields in org.tribuo declared as OutputFactoryModifier and TypeFieldDescriptionprotected final OutputFactory<T> Dataset.outputFactoryA factory for makingOutputInfoandOutputof the appropriate type.Methods in org.tribuo that return OutputFactoryModifier and TypeMethodDescriptionstatic OutputFactory<?> OutputFactory.deserialize(org.tribuo.protos.core.OutputFactoryProto proto) Deserializes aOutputFactoryProtointo aOutputFactorysubclass.Dataset.getOutputFactory()Gets the output factory this dataset contains.DataSource.getOutputFactory()Returns the OutputFactory associated with this Output subclass.Constructors in org.tribuo with parameters of type OutputFactoryModifierConstructorDescriptionprotectedDataset(DataProvenance provenance, OutputFactory<T> outputFactory) Creates a dataset.protectedDataset(DataProvenance provenance, OutputFactory<T> outputFactory, String tribuoVersion) Creates a dataset.ImmutableDataset(Iterable<Example<T>> dataSource, DataProvenance description, OutputFactory<T> outputFactory, FeatureMap featureIDMap, OutputInfo<T> outputIDInfo, boolean dropInvalidExamples) Creates a dataset from a data source.ImmutableDataset(Iterable<Example<T>> dataSource, DataProvenance description, OutputFactory<T> outputFactory, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, boolean dropInvalidExamples) Creates a dataset from a data source.protectedImmutableDataset(DataProvenance description, OutputFactory<T> outputFactory) If you call this it's your job to setup outputMap, featureIDMap and fill it with examples.protectedImmutableDataset(DataProvenance provenance, OutputFactory<T> factory, String tribuoVersion, ImmutableFeatureMap fmap, ImmutableOutputInfo<T> outputInfo, List<Example<T>> examples, boolean dropInvalidExamples) Deserialization constructor.protectedImmutableDataset(DataProvenance description, OutputFactory<T> outputFactory, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo) This is dangerous, and should not be used unless you've overridden everything in ImmutableDataset.MutableDataset(Iterable<Example<T>> dataSource, DataProvenance provenance, OutputFactory<T> outputFactory) Creates a dataset from a data source.MutableDataset(DataProvenance sourceProvenance, OutputFactory<T> outputFactory) Creates an empty dataset. -
Uses of OutputFactory in org.tribuo.datasource
Methods in org.tribuo.datasource that return OutputFactoryModifier and TypeMethodDescriptionAggregateConfigurableDataSource.getOutputFactory()AggregateDataSource.getOutputFactory()IDXDataSource.getOutputFactory()LibSVMDataSource.getOutputFactory()ListDataSource.getOutputFactory()Constructors in org.tribuo.datasource with parameters of type OutputFactoryModifierConstructorDescriptionIDXDataSource(Path featuresPath, Path outputPath, OutputFactory<T> outputFactory) Constructs an IDXDataSource from the supplied paths.LibSVMDataSource(URL url, OutputFactory<T> outputFactory) Constructs a LibSVMDataSource from the supplied URL and output factory.LibSVMDataSource(URL url, OutputFactory<T> outputFactory, boolean zeroIndexed, int maxFeatureID) Constructs a LibSVMDataSource from the supplied URL and output factory.LibSVMDataSource(Path path, OutputFactory<T> outputFactory) Constructs a LibSVMDataSource from the supplied path and output factory.LibSVMDataSource(Path path, OutputFactory<T> outputFactory, boolean zeroIndexed, int maxFeatureID) Constructs a LibSVMDataSource from the supplied path and output factory.ListDataSource(List<Example<T>> list, OutputFactory<T> factory, DataSourceProvenance provenance) Constructs an in-memory data source wrapping the supplied examples. -
Uses of OutputFactory in org.tribuo.impl
Methods in org.tribuo.impl that return OutputFactoryConstructors in org.tribuo.impl with parameters of type OutputFactoryModifierConstructorDescriptionDatasetDataCarrier(DataProvenance provenance, FeatureMap featureDomain, OutputInfo<T> outputDomain, OutputFactory<T> outputFactory, List<com.oracle.labs.mlrg.olcut.provenance.ObjectProvenance> transformProvenances, String tribuoVersion) Constructs a new DatasetDataCarrier. -
Uses of OutputFactory in org.tribuo.provenance
Constructors in org.tribuo.provenance with parameters of type OutputFactoryModifierConstructorDescription<T extends Output<T>>SimpleDataSourceProvenance(String description, OffsetDateTime creationTime, OutputFactory<T> outputFactory) This constructor initialises the provenance using the supplied description, time and output factory.<T extends Output<T>>SimpleDataSourceProvenance(String description, OutputFactory<T> outputFactory) This constructor initialises the provenance using the current time in the system timezone. -
Uses of OutputFactory in org.tribuo.sequence
Fields in org.tribuo.sequence declared as OutputFactoryModifier and TypeFieldDescriptionprotected final OutputFactory<T> SequenceDataset.outputFactoryA factory for makingOutputInfoandOutputof the appropriate type.Methods in org.tribuo.sequence that return OutputFactoryModifier and TypeMethodDescriptionSequenceDataset.getOutputFactory()Gets the output factory.SequenceDataSource.getOutputFactory()Gets the OutputFactory which was used to generate the Outputs in this SequenceDataSource.Methods in org.tribuo.sequence with parameters of type OutputFactoryModifier and TypeMethodDescriptionstatic <T extends Output<T>>
SequenceExample<T> SequenceExample.createWithEmptyOutputs(List<? extends List<? extends Feature>> features, OutputFactory<T> outputFactory) Creates a SequenceExample usinggetUnknownOutput()as the output for each sequence element.Constructors in org.tribuo.sequence with parameters of type OutputFactoryModifierConstructorDescriptionImmutableSequenceDataset(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 sourceProvenance, OutputFactory<T> outputFactory) If you call this it's your job to setup outputIDInfo and featureIDMap.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.MutableSequenceDataset(DataProvenance sourceProvenance, OutputFactory<T> outputFactory) Creates an empty sequence dataset.protectedSequenceDataset(DataProvenance sourceProvenance, OutputFactory<T> outputFactory) Constructs a sequence dataset using the current Tribuo version.protectedSequenceDataset(DataProvenance sourceProvenance, OutputFactory<T> outputFactory, String tribuoVersion) Constructs a sequence dataset.