Downloads · 30 days
6
17% of all-time downloads
apembere/mnist-classifier-hf
mnist-classifier-hf is a machine learning model from apembere. 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
6
17% of all-time downloads
All-time downloads
36
Public
Parameters
567K
2.3 MB on disk
Likes
0
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("apembere/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.