Interface IDataIndexer
Object which compresses events in memory and performs feature selection.
public interface IDataIndexer
Properties
Contexts
Gets the array of predicates seen in each event: a 2-D array whose first dimension is the event index and array this refers to contains the contexts for that event.
int[][] Contexts { get; }
Property Value
- int[][]
NumEvents
Gets the number of total events indexed.
int NumEvents { get; }
Property Value
NumTimesEventsSeen
Gets an array indexed by the event index indicating the number of times a particular event was seen.
int[] NumTimesEventsSeen { get; }
Property Value
- int[]
OutcomeLabels
Gets an array of outcome names indexed by outcome index.
string[] OutcomeLabels { get; }
Property Value
- string[]
OutcomeList
Gets an array indicating the outcome index for each event.
int[] OutcomeList { get; }
Property Value
- int[]
PredCounts
Gets an array of the count of each predicate in the events.
int[] PredCounts { get; }
Property Value
- int[]
PredLabels
Gets an array of predicate/context names indexed by context index. These indices are the value of the array returned by Contexts.
string[] PredLabels { get; }
Property Value
- string[]
Values
Gets the values associated with each event context, or null if
integer values are to be used.
float[][]? Values { get; }
Property Value
- float[][]
Methods
Index(IObjectStream<Event?>)
Performs the data indexing. Make sure the Init(TrainingParameters, IDictionary<string, string>?) method is called first.
void Index(IObjectStream<Event?> eventStream)
Parameters
eventStreamIObjectStream<Event>a stream of events
Exceptions
- IOException
if there is an error during reading
Init(TrainingParameters, IDictionary<string, string>?)
Sets parameters used during the data indexing.
void Init(TrainingParameters trainParams, IDictionary<string, string>? reportMap)
Parameters
trainParamsTrainingParametersreportMapIDictionary<string, string>the map to which report entries are written.