public class TwoPassDataIndexer extends AbstractDataIndexer
contexts, numTimesEventsSeen, outcomeLabels, outcomeList, predCounts, predLabels| Constructor and Description |
|---|
TwoPassDataIndexer(EventStream eventStream)
One argument constructor for DataIndexer which calls the two argument
constructor assuming no cutoff.
|
TwoPassDataIndexer(EventStream eventStream,
int cutoff) |
TwoPassDataIndexer(EventStream eventStream,
int cutoff,
boolean sort)
Two argument constructor for DataIndexer.
|
getContexts, getNumEvents, getNumTimesEventsSeen, getOutcomeLabels, getOutcomeList, getPredCounts, getPredLabels, getValues, sortAndMerge, toIndexedStringArray, updatepublic TwoPassDataIndexer(EventStream eventStream) throws IOException
eventStream - An Event[] which contains the a list of all the Events
seen in the training data.IOExceptionpublic TwoPassDataIndexer(EventStream eventStream, int cutoff) throws IOException
IOExceptionpublic TwoPassDataIndexer(EventStream eventStream, int cutoff, boolean sort) throws IOException
eventStream - An Event[] which contains the a list of all the Events
seen in the training data.cutoff - The minimum number of times a predicate must have been
observed in order to be included in the model.IOExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.