public abstract class AbstractDataIndexer extends Object implements DataIndexer
| Modifier and Type | Field and Description | 
|---|---|
| static int | CUTOFF_DEFAULT | 
| static String | CUTOFF_PARAM | 
| static boolean | SORT_DEFAULT | 
| static String | SORT_PARAM | 
| Constructor and Description | 
|---|
| AbstractDataIndexer() | 
| 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 | init(TrainingParameters indexingParameters,
    Map<String,String> reportMap)Sets parameters used during the data indexing. | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitindexpublic static final String CUTOFF_PARAM
public static final int CUTOFF_DEFAULT
public static final String SORT_PARAM
public static final boolean SORT_DEFAULT
public void init(TrainingParameters indexingParameters, Map<String,String> reportMap)
DataIndexerinit in interface DataIndexerindexingParameters - TrainingParameterspublic int[][] getContexts()
DataIndexergetContexts in interface DataIndexerpublic int[] getNumTimesEventsSeen()
DataIndexergetNumTimesEventsSeen in interface DataIndexerpublic int[] getOutcomeList()
DataIndexergetOutcomeList in interface DataIndexerpublic String[] getPredLabels()
DataIndexergetPredLabels in interface DataIndexergetContexts.public String[] getOutcomeLabels()
DataIndexergetOutcomeLabels in interface DataIndexerpublic int[] getPredCounts()
DataIndexergetPredCounts in interface DataIndexerpublic int getNumEvents()
DataIndexergetNumEvents in interface DataIndexerpublic float[][] getValues()
DataIndexergetValues in interface DataIndexerCopyright © 2018 The Apache Software Foundation. All rights reserved.