public class DiscreteObjectChooser<E> extends Object implements Serializable
DiscreteObjectChooser provides an implementation of
discrete choice analysis (DCA) over arbitrary objects using a
feature extractor.
The feature extractor is used to map objects to feature maps, and a feature symbol table is used to convert these feature maps into vectors which may be fed into the contained discrete chooser.
Discrete object choosers created by estimation are serializable.
| Constructor and Description |
|---|
DiscreteObjectChooser(FeatureExtractor<E> featureExtractor,
SymbolTable featureSymbolTable,
DiscreteChooser chooser)
Construct a discrete chooser based on the specified feature
extractor, feature symbol table, and base chooser.
|
| Modifier and Type | Method and Description |
|---|---|
DiscreteChooser |
chooser()
Returns the discrete chooser on which this object chooser is
based.
|
static <F> DiscreteObjectChooser<F> |
estimate(FeatureExtractor<F> featureExtractor,
List<List<F>> alternativeObjectss,
int[] choices,
int minFeatureCount,
RegressionPrior prior,
int priorBlockSize,
AnnealingSchedule annealingSchedule,
double minImprovement,
int minEpochs,
int maxEpochs,
Reporter reporter)
Because intercepts are ignored, they are not added to
feature maps and should not be treated as noninformative in the
prior.
|
FeatureExtractor<E> |
featureExtractor()
Return the feature extractor for this chooser.
|
SymbolTable |
featureSymbolTable()
Returns an unmodifiable view of the feature symbol
table underlying this chooser.
|
public DiscreteObjectChooser(FeatureExtractor<E> featureExtractor, SymbolTable featureSymbolTable, DiscreteChooser chooser)
public FeatureExtractor<E> featureExtractor()
public SymbolTable featureSymbolTable()
public DiscreteChooser chooser()
public static <F> DiscreteObjectChooser<F> estimate(FeatureExtractor<F> featureExtractor, List<List<F>> alternativeObjectss, int[] choices, int minFeatureCount, RegressionPrior prior, int priorBlockSize, AnnealingSchedule annealingSchedule, double minImprovement, int minEpochs, int maxEpochs, Reporter reporter)
Because intercepts are ignored, they are not added to feature maps and should not be treated as noninformative in the prior.
Copyright © 2019 Alias-i, Inc.. All rights reserved.