Downloads · 30 days
16
11% of all-time downloads
foxnat/mnist-classifier-hf
mnist-classifier-hf is a machine learning model from foxnat. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains a simple feed-forward neural network trained to classify MNIST handwritten digits (0–9).
Downloads · 30 days
16
11% of all-time downloads
All-time downloads
141
Public
Parameters
567K
4.5 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors2.3 MB · 100%
From the Hugging Face model README
This repository contains a simple feed-forward neural network trained to classify MNIST handwritten digits (0–9).
import torch
loaded = ClassifierHF.from_pretrained("foxnat/mnist-classifier-hf")
loaded.eval()
with torch.no_grad():
logits = loaded(x)
preds = torch.argmax(logits, dim=1)
MNIST handwritten digits loaded via torchvision in the tutorial notebook.
Test accuracy is printed in the notebook after training and after reloading from the Hub.