Uses of Interface
org.tribuo.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
Modifier and TypeFieldDescriptionprotected final OutputFactory<T>
Dataset.outputFactory
A factory for makingOutputInfo
andOutput
of the appropriate type.Modifier and TypeMethodDescriptionDataset.getOutputFactory()
Gets the output factory this dataset contains.DataSource.getOutputFactory()
Returns the OutputFactory associated with this Output subclass.ModifierConstructorDescriptionprotected
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
-
Uses of OutputFactory in org.tribuo.anomaly.example
-
Uses of OutputFactory in org.tribuo.classification
Modifier and TypeClassDescriptionfinal class
A factory for making Label related classes. -
Uses of OutputFactory in org.tribuo.classification.explanations.lime
Modifier and TypeFieldDescriptionprotected static final OutputFactory<Regressor>
LIMEBase.regressionFactory
-
Uses of OutputFactory in org.tribuo.clustering
Modifier and TypeClassDescriptionfinal class
A factory for making ClusterID related classes. -
Uses of OutputFactory in org.tribuo.clustering.example
-
Uses of OutputFactory in org.tribuo.common.xgboost
Modifier 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
Modifier and TypeFieldDescriptionConfigurableTrainTest.ConfigurableTrainTestOptions.outputFactory
The output factory to construct.Modifier 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
Modifier and TypeMethodDescriptionColumnarDataSource.getOutputFactory()
ResponseProcessor.getOutputFactory()
Gets the OutputFactory this ResponseProcessor uses.ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionBinaryResponseProcessor.getOutputFactory()
EmptyResponseProcessor.getOutputFactory()
FieldResponseProcessor.getOutputFactory()
QuartileResponseProcessor.getOutputFactory()
ModifierConstructorDescriptionBinaryResponseProcessor
(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
ModifierConstructorDescriptionCSVLoader
(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
ModifierConstructorDescriptionSQLDataSource
(String sqlString, SQLDBConfig sqlConfig, OutputFactory<T> outputFactory, RowProcessor<T> rowProcessor, boolean outputRequired) Constructs a SQLDataSource. -
Uses of OutputFactory in org.tribuo.data.text
Modifier 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
.Modifier and TypeMethodDescriptionDirectoryFileSource.getOutputFactory()
TextDataSource.getOutputFactory()
Returns the output factory used to convert the text input into anOutput
.ModifierConstructorDescriptionDirectoryFileSource
(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
ModifierConstructorDescriptionSimpleStringDataSource
(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
Modifier and TypeMethodDescriptionAggregateConfigurableDataSource.getOutputFactory()
AggregateDataSource.getOutputFactory()
IDXDataSource.getOutputFactory()
LibSVMDataSource.getOutputFactory()
ListDataSource.getOutputFactory()
ModifierConstructorDescriptionIDXDataSource
(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
Modifier 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.ModifierConstructorDescriptionExternalDatasetProvenance
(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
Modifier 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
Modifier 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
ModifierConstructorDescriptionBERTFeatureExtractor
(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
Modifier 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
Modifier and TypeClassDescriptionfinal class
A factory for generating MultiLabel objects and their associated OutputInfo and Evaluator objects. -
Uses of OutputFactory in org.tribuo.multilabel.example
-
Uses of OutputFactory in org.tribuo.provenance
ModifierConstructorDescriptionSimpleDataSourceProvenance
(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
Modifier and TypeClassDescriptionfinal class
A factory for creatingRegressor
s andRegressionInfo
s. -
Uses of OutputFactory in org.tribuo.regression.example
Modifier and TypeMethodDescriptionGaussianDataSource.getOutputFactory()
NonlinearGaussianDataSource.getOutputFactory()
-
Uses of OutputFactory in org.tribuo.sequence
Modifier and TypeFieldDescriptionprotected final OutputFactory<T>
SequenceDataset.outputFactory
A factory for makingOutputInfo
andOutput
of the appropriate type.Modifier and TypeMethodDescriptionSequenceDataset.getOutputFactory()
Gets the output factory.SequenceDataSource.getOutputFactory()
Gets the OutputFactory which was used to generate the Outputs in this SequenceDataSource.Modifier 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.ModifierConstructorDescriptionImmutableSequenceDataset
(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)