Uses of Interface
org.tribuo.protos.ProtoSerializable
Packages that use ProtoSerializable
Package
Description
Provides the core interfaces and classes for using Tribuo.
Provides utility datasets which subsample or otherwise
transform the wrapped dataset.
Provides an interface for model prediction combinations,
two base classes for ensemble models, a base class for
ensemble excuses, and a Bagging implementation.
Provides the base interface and implementations of the
Model hashing
which obscures the feature names stored in a model.Provides implementations of base classes and interfaces from
org.tribuo.Classes which control the serialization of Tribuo objects to and from protocol buffers.
Provides core classes for working with sequences of
Examples.Provides infrastructure for applying transformations to a
Dataset.Provides implementations of standard transformations like binning, scaling, taking logs and exponents.
-
Uses of ProtoSerializable in org.tribuo
Subinterfaces of ProtoSerializable in org.tribuoModifier and TypeInterfaceDescriptioninterfaceImmutableOutputInfo<T extends Output<T>>AnOutputInfothat is fixed, and contains an id number for each valid output.interfaceMutableOutputInfo<T extends Output<T>>A mutable OutputInfo that can record observed output values.interfaceOutput is the root interface for the supported prediction types.interfaceOutputFactory<T extends Output<T>>An interface associated with a specificOutput, which can generate the appropriate Output subclass, andOutputInfosubclass.interfaceOutputInfo<T extends Output<T>>Tracks relevant properties of the appropriateOutputsubclass.interfaceAdds an id number to aVariableInfo.interfaceA VariableInfo subclass contains information about a feature and its observed values.Classes in org.tribuo that implement ProtoSerializableModifier and TypeClassDescriptionclassSame as aCategoricalInfo, but with an additional int id field.classStores information about Categorical features.classA class for sets of data, which are used to train and evaluate classifiers.classAn example used for training and evaluation.classA map from Strings toVariableInfoobjects storing information about a feature.classImmutableDataset<T extends Output<T>>This is aDatasetwhich has anImmutableFeatureMapto store the feature information.classImmutableFeatureMap is used when unknown features should not be added to the FeatureMap.classA prediction model, which is used to predict outputs for unseen instances.classMutableDataset<T extends Output<T>>A MutableDataset is aDatasetwith aMutableFeatureMapwhich grows over time.classA feature map that can record new feature value observations.classPrediction<T extends Output<T>>A prediction made by aModel.classSame as aRealInfo, but with an additional int id field.classStores information about real valued features.final classA record-like class for a selected feature set.classContains information about a feature and can be stored in the feature map in aDataset.classSparseModel<T extends Output<T>>A model which uses a subset of the features it knows about to make predictions. -
Uses of ProtoSerializable in org.tribuo.dataset
Classes in org.tribuo.dataset that implement ProtoSerializableModifier and TypeClassDescriptionfinal classDatasetView<T extends Output<T>>DatasetView provides an immutable view on anotherDatasetthat only exposes selected examples.classMinimumCardinalityDataset<T extends Output<T>>This class creates a pruned dataset in which low frequency features that occur less than the provided minimum cardinality have been removed.final classSelectedFeatureDataset<T extends Output<T>>This class creates a pruned dataset which only contains the selected features. -
Uses of ProtoSerializable in org.tribuo.ensemble
Subinterfaces of ProtoSerializable in org.tribuo.ensembleModifier and TypeInterfaceDescriptioninterfaceEnsembleCombiner<T extends Output<T>>An interface for combining predictions.Classes in org.tribuo.ensemble that implement ProtoSerializableModifier and TypeClassDescriptionclassEnsembleModel<T extends Output<T>>A model which contains a list of otherModels.final classWeightedEnsembleModel<T extends Output<T>>An ensemble model that uses weights to combine the ensemble member predictions. -
Uses of ProtoSerializable in org.tribuo.hash
Classes in org.tribuo.hash that implement ProtoSerializableModifier and TypeClassDescriptionfinal classHashes names using String.hashCode().final classAFeatureMapused by theHashingTrainerto provide feature name hashing and guarantee that theModeldoes not contain feature name information, but still works with unhashed features names.classAn abstract base class for hash functions used to hash the names of features.final classHashes Strings using the supplied MessageDigest type.final classHashes names using String.hashCode(), then reduces the dimension. -
Uses of ProtoSerializable in org.tribuo.impl
Classes in org.tribuo.impl that implement ProtoSerializableModifier and TypeClassDescriptionclassArrayExample<T extends Output<T>>AnExamplebacked by two arrays, one of String and one of double.final classBinaryFeaturesExample<T extends Output<T>>AnExamplebacked by a single array of feature names.classIndexedArrayExample<T extends Output<T>>A version of ArrayExample which also has the id numbers.classListExample<T extends Output<T>>This class will not be performant until value types are available in Java. -
Uses of ProtoSerializable in org.tribuo.protos
Methods in org.tribuo.protos with type parameters of type ProtoSerializableModifier and TypeMethodDescriptionstatic <SERIALIZED extends com.google.protobuf.Message, PROTO_SERIALIZABLE extends ProtoSerializable<SERIALIZED>>
PROTO_SERIALIZABLEProtoUtil.deserialize(SERIALIZED serialized) Instantiates the class from the supplied protobuf fields.static <SERIALIZED_CLASS extends com.google.protobuf.Message, SERIALIZED_DATA extends com.google.protobuf.Message, PROTO_SERIALIZABLE extends ProtoSerializable<SERIALIZED_CLASS>>
SERIALIZED_CLASSProtoUtil.serialize(PROTO_SERIALIZABLE protoSerializable) Serializes aProtoSerializableclass which has the appropriateProtoSerializableClassannotations.Method parameters in org.tribuo.protos with type arguments of type ProtoSerializableModifier and TypeMethodDescriptionstatic intProtoUtil.getCurrentVersion(Class<? extends ProtoSerializable<?>> clazz) If this class is annotated withProtoSerializableClassreturns the version number, otherwise returns -1. -
Uses of ProtoSerializable in org.tribuo.sequence
Classes in org.tribuo.sequence that implement ProtoSerializableModifier and TypeClassDescriptionclassImmutableSequenceDataset<T extends Output<T>>This is aSequenceDatasetwhich has anImmutableFeatureMapto store the feature information.classIndependentSequenceModel<T extends Output<T>>A SequenceModel which independently predicts each element of the sequence.classMinimumCardinalitySequenceDataset<T extends Output<T>>This class creates a pruned dataset in which low frequency features that occur less than the provided minimum cardinality have been removed.classMutableSequenceDataset<T extends Output<T>>A MutableSequenceDataset is aSequenceDatasetwith aMutableFeatureMapwhich grows over time.classSequenceDataset<T extends Output<T>>A class for sets of data, which are used to train and evaluate classifiers.classSequenceExample<T extends Output<T>>A sequence of examples, used for sequence classification.classSequenceModel<T extends Output<T>>A prediction model, which is used to predict outputs for unseen instances. -
Uses of ProtoSerializable in org.tribuo.transform
Subinterfaces of ProtoSerializable in org.tribuo.transformModifier and TypeInterfaceDescriptioninterfaceA fittedTransformationwhich can apply a transform to the input value.Classes in org.tribuo.transform that implement ProtoSerializableModifier and TypeClassDescriptionclassTransformedModel<T extends Output<T>>Wraps aModelwith it'sTransformerMapso allExamples are transformed appropriately before the model makes predictions.final class -
Uses of ProtoSerializable in org.tribuo.transform.transformations
Classes in org.tribuo.transform.transformations that implement ProtoSerializableModifier and TypeClassDescriptionstatic final classThe implementation of aTransformerwhich splits the input into n bins.final classThis is used for stateless functions such as exp, log, addition or multiplication by a constant.