MNIST as a check, not a framework

If the library cannot learn MNIST in a way you can compare, the rest of the README is fiction. The 23rd adds httpGet: a std.http.Client on 0.16’s Io, GET, fail on a bad status, return owned bytes. The test hits Kaggle’s MNIST download URL. src/data/mnist.zig is a stub named getMnistData that does not yet get anything. sigmoid.zig is an empty file with the right name.

The 24th checks in the raw MNIST idx files and a Python script. SimpleNet is 784–128–128–10, ReLU, tanh on the last layer, CrossEntropy, Adam, ten epochs, batch 128. It prints a device, a loss, five predictions. The point is not to depend on PyTorch. The point is a number you can argue with when ZigTensor has a net of its own.

d9cb425 · 70073f2

Previous · Next