Labeled Data
Loading Data
Data can be loaded from CSV files in the format of (Data Name, Value) using the LabeledDataFromCSV module. For now the rest of the infrastructure assumes that the data is in System.Single format, so for now it is best to use that to fill in the free generic type.
Aggregation
The module AggregateLabeledDataToShape takes in two LabeledData
Integrating into ODMath
ConvertLabeledDataToSparseArray provides the functionality to convert labeled data into a sparse array so that it can be used in ODMath. The labels are sorted in alphabetic order and then ordered in the sparse array from index 0 to index n-1 where n is the size of the data. This guarantees that two LabelData objects with the same labels will always map to the same Sparse Array shape, so math can be done predictably.