public static MnistDataset Create(int numItems, uint[] labels, Image[] images) { MnistDataset d = new MnistDataset(); d.Size = numItems; d.Labels = labels; d.Data = images; return(d); }
public static MnistDataset LoadDataset(string imagesPath, string labelsPath) { uint[] labels = ReadLabels(labelsPath); Image[] images = ReadImages(imagesPath); return(MnistDataset.Create(labels.Length, labels, images)); }