public class OnePassDataIndexer extends AbstractDataIndexer
contexts, numTimesEventsSeen, outcomeLabels, outcomeList, predCounts, predLabels
Constructor and Description |
---|
OnePassDataIndexer(EventStream eventStream)
One argument constructor for DataIndexer which calls the two argument
constructor assuming no cutoff.
|
OnePassDataIndexer(EventStream eventStream,
int cutoff) |
OnePassDataIndexer(EventStream eventStream,
int cutoff,
boolean sort)
Two argument constructor for DataIndexer.
|
Modifier and Type | Method and Description |
---|---|
protected List<ComparableEvent> |
index(LinkedList<Event> events,
Map<String,Integer> predicateIndex) |
getContexts, getNumEvents, getNumTimesEventsSeen, getOutcomeLabels, getOutcomeList, getPredCounts, getPredLabels, getValues, sortAndMerge, toIndexedStringArray, update
public OnePassDataIndexer(EventStream eventStream) throws IOException
eventStream
- An Event[] which contains the a list of all the Events seen in the
training data.IOException
public OnePassDataIndexer(EventStream eventStream, int cutoff) throws IOException
IOException
public OnePassDataIndexer(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.IOException
protected List<ComparableEvent> index(LinkedList<Event> events, Map<String,Integer> predicateIndex)
Copyright © 2018 The Apache Software Foundation. All rights reserved.