SparseData

Input layer representing a sparse array SparseF[] of (uint, float) pairs

class SparseData : Data!(LayerT.SPARSE) {}

Examples

auto l = SparseData(100); // 100 is the total dimensionality of the input space,
// which means that the indices of the pairs SparseF are <= 100. For example,
// [(13, 4.7), (2, -0.12), (87, 0.6)]

Meta