Uses of Interface
org.tribuo.OutputFactory
Packages that use OutputFactory
Package
Description
Provides the core interfaces and classes for using Tribuo.
Provides classes and infrastructure for anomaly detection problems.
Provides anomaly data generators used for demos and testing implementations.
Provides classes and infrastructure for multiclass classification problems.
Provides an implementation of LIME (Locally Interpretable Model Explanations).
Provides classes and infrastructure for working with clustering problems.
Provides clustering data generators used for demos and testing implementations.
Provides abstract classes for interfacing with XGBoost abstracting away all the
Output
dependent parts.Provides classes for loading in data from disk, processing it into examples, and splitting datasets for
things like cross-validation and train-test splits.
Provides classes for processing columnar data and generating
Example
s.Provides implementations of
ResponseProcessor
.Provides classes which can load columnar data (using a
RowProcessor
)
from a CSV (or other character delimited format) file.Provides classes which can load columnar data (using a
RowProcessor
)
from a SQL source.Provides implementations of text data processors.
Simple data sources for ingesting or aggregating data.
This package contains the abstract implementation of an external model
trained by something outside of Tribuo.
Code for uploading models to Oracle Cloud Infrastructure Data Science, and also for scoring models deployed
in Oracle Cloud Infrastructure Data Science.
This package contains a Tribuo wrapper around the ONNX Runtime.
Provides feature extraction implementations which use ONNX models.
Provides an interface to TensorFlow, allowing the training of non-sequential models using any supported
Tribuo output type.
Provides classes and infrastructure for working with multi-label classification problems.
Provides a multi-label data generator for testing implementations and a
configurable data source suitable for demos and tests.
Provides Tribuo specific infrastructure for the
Provenance
system which
tracks models and datasets.Provides classes and infrastructure for regression problems with single or multiple output dimensions.
Provides some example regression data generators for testing implementations.
Provides core classes for working with sequences of
Example
s.-
Uses of OutputFactory in org.tribuo
Fields in org.tribuo declared as OutputFactoryModifier and TypeFieldDescriptionprotected final OutputFactory<T>
Dataset.outputFactory
A factory for makingOutputInfo
andOutput
of the appropriate type.Methods in org.tribuo that return OutputFactoryModifier and TypeMethodDescriptionDataset.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 OutputFactoryModifierConstructorDescriptionprotected
Dataset
(DataProvenance provenance, OutputFactory<T> outputFactory) 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.protected
ImmutableDataset
(DataProvenance description, OutputFactory<T> outputFactory) If you call this it's your job to setup outputMap, featureIDMap and fill it with examples.protected
ImmutableDataset
(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.anomaly
Classes in org.tribuo.anomaly that implement OutputFactory -
Uses of OutputFactory in org.tribuo.anomaly.example
Methods in org.tribuo.anomaly.example that return OutputFactory -
Uses of OutputFactory in org.tribuo.classification
Classes in org.tribuo.classification that implement OutputFactoryModifier and TypeClassDescriptionfinal class
A factory for making Label related classes. -
Uses of OutputFactory in org.tribuo.classification.explanations.lime
Fields in org.tribuo.classification.explanations.lime declared as OutputFactoryModifier and TypeFieldDescriptionprotected static final OutputFactory<Regressor>
LIMEBase.regressionFactory
-
Uses of OutputFactory in org.tribuo.clustering
Classes in org.tribuo.clustering that implement OutputFactoryModifier and TypeClassDescriptionfinal class
A factory for making ClusterID related classes. -
Uses of OutputFactory in org.tribuo.clustering.example
Methods in org.tribuo.clustering.example that return OutputFactory -
Uses of OutputFactory in org.tribuo.common.xgboost
Methods in org.tribuo.common.xgboost with parameters of type OutputFactoryModifier and TypeMethodDescriptionstatic <T extends Output<T>>
XGBoostExternalModel<T>XGBoostExternalModel.createXGBoostModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, XGBoostOutputConverter<T> outputFunc, String path) Creates anXGBoostExternalModel
from the supplied model on disk.static <T extends Output<T>>
XGBoostExternalModel<T>XGBoostExternalModel.createXGBoostModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, XGBoostOutputConverter<T> outputFunc, Path path) Creates anXGBoostExternalModel
from the supplied model on disk.static <T extends Output<T>>
XGBoostExternalModel<T>XGBoostExternalModel.createXGBoostModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, XGBoostOutputConverter<T> outputFunc, ml.dmlc.xgboost4j.java.Booster model, URL provenanceLocation) Deprecated.As the URL argument must always be valid.static <T extends Output<T>>
XGBoostExternalModel<T>XGBoostExternalModel.createXGBoostModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, XGBoostOutputConverter<T> outputFunc, ml.dmlc.xgboost4j.java.Booster model, Map<String, com.oracle.labs.mlrg.olcut.provenance.Provenance> instanceProvenance) Creates anXGBoostExternalModel
from the supplied in-memory XGBoostBooster
. -
Uses of OutputFactory in org.tribuo.data
Fields in org.tribuo.data declared as OutputFactoryModifier and TypeFieldDescriptionConfigurableTrainTest.ConfigurableTrainTestOptions.outputFactory
The output factory to construct.Methods in org.tribuo.data with parameters of type OutputFactoryModifier and TypeMethodDescriptionDataOptions.load
(OutputFactory<T> outputFactory) Loads the training and testing data fromDataOptions.trainingPath
andDataOptions.testingPath
according to the other parameters specified in this class. -
Uses of OutputFactory in org.tribuo.data.columnar
Methods in org.tribuo.data.columnar that return OutputFactoryModifier and TypeMethodDescriptionColumnarDataSource.getOutputFactory()
ResponseProcessor.getOutputFactory()
Gets the OutputFactory this ResponseProcessor uses.Constructors in org.tribuo.data.columnar with parameters of type OutputFactoryModifierConstructorDescriptionprotected
ColumnarDataSource
(OutputFactory<T> outputFactory, RowProcessor<T> rowProcessor, boolean outputRequired) Constructs a columnar data source with the specified parameters. -
Uses of OutputFactory in org.tribuo.data.columnar.processors.response
Methods in org.tribuo.data.columnar.processors.response that return OutputFactoryModifier and TypeMethodDescriptionBinaryResponseProcessor.getOutputFactory()
EmptyResponseProcessor.getOutputFactory()
FieldResponseProcessor.getOutputFactory()
QuartileResponseProcessor.getOutputFactory()
Constructors in org.tribuo.data.columnar.processors.response with parameters of type OutputFactoryModifierConstructorDescriptionBinaryResponseProcessor
(String fieldName, String positiveResponse, OutputFactory<T> outputFactory) Constructs a binary response processor which emits a positive value for a single string and a negative value for all other field values.BinaryResponseProcessor
(List<String> fieldNames, String positiveResponse, OutputFactory<T> outputFactory) Constructs a binary response processor which emits a positive value for a single string and a negative value for all other field values.BinaryResponseProcessor
(List<String> fieldNames, List<String> positiveResponses, OutputFactory<T> outputFactory) Constructs a binary response processor which emits a positive value for a single string and a negative value for all other field values.BinaryResponseProcessor
(List<String> fieldNames, List<String> positiveResponses, OutputFactory<T> outputFactory, boolean displayField) Constructs a binary response processor which emits a positive value for a single string and a negative value for all other field values.BinaryResponseProcessor
(List<String> fieldNames, List<String> positiveResponses, OutputFactory<T> outputFactory, String positiveName, String negativeName, boolean displayField) Constructs a binary response processor which emits a positive value for a single string and a negative value for all other field values.EmptyResponseProcessor
(OutputFactory<T> outputFactory) Constructs a response processor which never emits a response.FieldResponseProcessor
(String fieldName, String defaultValue, OutputFactory<T> outputFactory) Constructs a response processor which passes the field value through the output factory.FieldResponseProcessor
(List<String> fieldNames, String defaultValue, OutputFactory<T> outputFactory) Constructs a response processor which passes the field value through the output factory.FieldResponseProcessor
(List<String> fieldNames, List<String> defaultValues, OutputFactory<T> outputFactory) Constructs a response processor which passes the field value through the output factory.FieldResponseProcessor
(List<String> fieldNames, List<String> defaultValues, OutputFactory<T> outputFactory, boolean displayField) Constructs a response processor which passes the field value through the output factory.FieldResponseProcessor
(List<String> fieldNames, List<String> defaultValues, OutputFactory<T> outputFactory, boolean displayField, boolean uppercase) Constructs a response processor which passes the field value through the output factory.QuartileResponseProcessor
(String name, String fieldName, Quartile quartile, OutputFactory<T> outputFactory) Constructs a response processor which emits 4 distinct bins for the output factory to process.QuartileResponseProcessor
(List<String> fieldNames, List<Quartile> quartiles, OutputFactory<T> outputFactory) Constructs a response processor which emits 4 distinct bins for the output factory to process. -
Uses of OutputFactory in org.tribuo.data.csv
Constructors in org.tribuo.data.csv with parameters of type OutputFactoryModifierConstructorDescriptionCSVLoader
(char separator, char quote, OutputFactory<T> outputFactory) Creates a CSVLoader using the supplied separator, quote and output factory.CSVLoader
(char separator, OutputFactory<T> outputFactory) Creates a CSVLoader using the supplied separator and output factory.CSVLoader
(OutputFactory<T> outputFactory) Creates a CSVLoader using the supplied output factory. -
Uses of OutputFactory in org.tribuo.data.sql
Constructors in org.tribuo.data.sql with parameters of type OutputFactoryModifierConstructorDescriptionSQLDataSource
(String sqlString, SQLDBConfig sqlConfig, OutputFactory<T> outputFactory, RowProcessor<T> rowProcessor, boolean outputRequired) Constructs a SQLDataSource. -
Uses of OutputFactory in org.tribuo.data.text
Fields in org.tribuo.data.text declared as OutputFactoryModifier and TypeFieldDescriptionprotected OutputFactory<T>
DirectoryFileSource.outputFactory
The factory that converts a String into anOutput
.protected OutputFactory<T>
TextDataSource.outputFactory
The factory that converts a String into anOutput
.Methods in org.tribuo.data.text that return OutputFactoryModifier and TypeMethodDescriptionDirectoryFileSource.getOutputFactory()
TextDataSource.getOutputFactory()
Returns the output factory used to convert the text input into anOutput
.Constructors in org.tribuo.data.text with parameters of type OutputFactoryModifierConstructorDescriptionDirectoryFileSource
(Path dataDir, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor, DocumentPreprocessor... preprocessors) Creates a data source that will use the given feature extractor and document preprocessors on the data read from the files in the directories representing classes.TextDataSource
(File file, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor, DocumentPreprocessor... preprocessors) Creates a text data set by reading it from a file.TextDataSource
(Path path, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor, DocumentPreprocessor... preprocessors) Creates a text data set by reading it from a path. -
Uses of OutputFactory in org.tribuo.data.text.impl
Constructors in org.tribuo.data.text.impl with parameters of type OutputFactoryModifierConstructorDescriptionSimpleStringDataSource
(List<String> rawLines, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) Constructs a simple string data source from the supplied lines.SimpleTextDataSource
(File file, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) Constructs a simple text data source by reading lines from the supplied file.SimpleTextDataSource
(Path path, OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) Constructs a simple text data source by reading lines from the supplied path.protected
SimpleTextDataSource
(OutputFactory<T> outputFactory, TextFeatureExtractor<T> extractor) -
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.interop
Methods in org.tribuo.interop with parameters of type OutputFactoryModifier and TypeMethodDescriptionprotected static <T extends Output<T>>
ImmutableOutputInfo<T>ExternalModel.createOutputInfo
(OutputFactory<T> factory, Map<T, Integer> outputs) Creates an output info from a set of outputs.Constructors in org.tribuo.interop with parameters of type OutputFactoryModifierConstructorDescriptionExternalDatasetProvenance
(String description, OutputFactory<T> factory, boolean isSequence, int numFeatures, int numOutputs) An empty provenance used as a placeholder for externally trained models. -
Uses of OutputFactory in org.tribuo.interop.oci
Methods in org.tribuo.interop.oci with parameters of type OutputFactoryModifier and TypeMethodDescriptionOCIModel.createOCIModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, Path configFile, String profileName, String endpointURL, OCIOutputConverter<T> outputConverter) Creates anOCIModel
by wrapping an OCI DS Model Deployment endpoint.OCIModel.createOCIModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, Path configFile, String endpointURL, OCIOutputConverter<T> outputConverter) Creates anOCIModel
by wrapping an OCI DS Model Deployment endpoint. -
Uses of OutputFactory in org.tribuo.interop.onnx
Methods in org.tribuo.interop.onnx with parameters of type OutputFactoryModifier and TypeMethodDescriptionstatic <T extends Output<T>>
ONNXExternalModel<T>ONNXExternalModel.createOnnxModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, ExampleTransformer featureTransformer, OutputTransformer<T> outputTransformer, ai.onnxruntime.OrtSession.SessionOptions opts, String filename, String inputName) Creates anONNXExternalModel
by loading the model from disk.static <T extends Output<T>>
ONNXExternalModel<T>ONNXExternalModel.createOnnxModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, ExampleTransformer featureTransformer, OutputTransformer<T> outputTransformer, ai.onnxruntime.OrtSession.SessionOptions opts, Path path, String inputName) Creates anONNXExternalModel
by loading the model from disk. -
Uses of OutputFactory in org.tribuo.interop.onnx.extractors
Constructors in org.tribuo.interop.onnx.extractors with parameters of type OutputFactoryModifierConstructorDescriptionBERTFeatureExtractor
(OutputFactory<T> outputFactory, Path modelPath, Path tokenizerPath) Constructs a BERTFeatureExtractor.BERTFeatureExtractor
(OutputFactory<T> outputFactory, Path modelPath, Path tokenizerPath, BERTFeatureExtractor.OutputPooling pooling, int maxLength, boolean useCUDA) Constructs a BERTFeatureExtractor. -
Uses of OutputFactory in org.tribuo.interop.tensorflow
Methods in org.tribuo.interop.tensorflow with parameters of type OutputFactoryModifier and TypeMethodDescriptionstatic <T extends Output<T>>
TensorFlowFrozenExternalModel<T>TensorFlowFrozenExternalModel.createTensorflowModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, String inputName, String outputName, FeatureConverter featureConverter, OutputConverter<T> outputConverter, String filename) Creates a TensorflowFrozenExternalModel by loading in a frozen graph.static <T extends Output<T>>
TensorFlowSavedModelExternalModel<T>TensorFlowSavedModelExternalModel.createTensorflowModel
(OutputFactory<T> factory, Map<String, Integer> featureMapping, Map<T, Integer> outputMapping, String outputName, FeatureConverter featureConverter, OutputConverter<T> outputConverter, String bundleDirectory) Creates a TensorflowSavedModelExternalModel by loading in aSavedModelBundle
. -
Uses of OutputFactory in org.tribuo.multilabel
Classes in org.tribuo.multilabel that implement OutputFactoryModifier and TypeClassDescriptionfinal class
A factory for generating MultiLabel objects and their associated OutputInfo and Evaluator objects. -
Uses of OutputFactory in org.tribuo.multilabel.example
Methods in org.tribuo.multilabel.example that return OutputFactory -
Uses of OutputFactory in org.tribuo.provenance
Constructors in org.tribuo.provenance with parameters of type OutputFactoryModifierConstructorDescriptionSimpleDataSourceProvenance
(String description, OffsetDateTime creationTime, OutputFactory<T> outputFactory) This constructor initialises the provenance using the supplied description, time and output factory.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.regression
Classes in org.tribuo.regression that implement OutputFactoryModifier and TypeClassDescriptionfinal class
A factory for creatingRegressor
s andRegressionInfo
s. -
Uses of OutputFactory in org.tribuo.regression.example
Methods in org.tribuo.regression.example that return OutputFactoryModifier and TypeMethodDescriptionGaussianDataSource.getOutputFactory()
NonlinearGaussianDataSource.getOutputFactory()
-
Uses of OutputFactory in org.tribuo.sequence
Fields in org.tribuo.sequence declared as OutputFactoryModifier and TypeFieldDescriptionprotected final OutputFactory<T>
SequenceDataset.outputFactory
A factory for makingOutputInfo
andOutput
of 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.protected
ImmutableSequenceDataset
(DataProvenance sourceProvenance, OutputFactory<T> outputFactory) If you call this it's your job to setup outputIDInfo and featureIDMap.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.protected
SequenceDataset
(DataProvenance sourceProvenance, OutputFactory<T> outputFactory)