public interface DataIndexer
Modifier and Type | Method and Description |
---|---|
int[][] |
getContexts()
Returns the array of predicates seen in each event.
|
int |
getNumEvents()
Returns the number of total events indexed.
|
int[] |
getNumTimesEventsSeen()
Returns an array indicating the number of times a particular event was seen.
|
String[] |
getOutcomeLabels()
Returns an array of outcome names.
|
int[] |
getOutcomeList()
Returns an array indicating the outcome index for each event.
|
int[] |
getPredCounts()
Returns an array of the count of each predicate in the events.
|
String[] |
getPredLabels()
Returns an array of predicate/context names.
|
float[][] |
getValues()
Returns the values associated with each event context or null if integer values are to be used.
|
void |
index(ObjectStream<Event> eventStream)
Performs the data indexing.
|
void |
init(TrainingParameters trainParams,
Map<String,String> reportMap)
Sets parameters used during the data indexing.
|
int[][] getContexts()
int[] getNumTimesEventsSeen()
int[] getOutcomeList()
String[] getPredLabels()
getContexts
.int[] getPredCounts()
String[] getOutcomeLabels()
float[][] getValues()
int getNumEvents()
void init(TrainingParameters trainParams, Map<String,String> reportMap)
trainParams
- TrainingParameters
void index(ObjectStream<Event> eventStream) throws IOException
eventStream
- a stream of eventsIOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.