public void Test1() { var epochs = 200; var batchSize = 128; var classes = 10; var hiddenCount = 128; var validationSplit = 0.2; var flatImageSize = 28 * 28; var mnist = MnistDataset.Read(@"C:\Projects\heightmap_upscale\data\mnist"); var x_train = PrepareImage(mnist.TrainingImages); var x_test = PrepareImage(mnist.TestImages); var y_train = PrepareLabels(mnist.TrainingLabels); var model = new Sequential(); model.add(new Dense(classes, activation: new softmax())); //model.Compile("SGD", loss: "categorical_crossentropy", metrics: new[] { "accuracy" }); model.compile("SGD", "categorical_crossentropy"); }
public void TestRead() { var set = MnistDataset.Read(@"C:\Projects\heightmap_upscale\data"); }