Downloads · 30 days
0
enigmaceo/svm-classification-cat-and-dog
svm-classification-cat-and-dog is a machine learning model from enigmaceo. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for scikit-learn.
This repository contains the trained SVM model and preprocessing artifacts for cat vs dog image classification.
Downloads · 30 days
0
Access
Public
Updated Mar 30, 2026
Repo size
15.5 MB
Likes
0
Public
Click a slice to open those files.
.gz15.3 MB · 99%
From the Hugging Face model README
This repository contains the trained SVM model and preprocessing artifacts for cat vs dog image classification.
svm_best_model.pkl.gz - Compressed SVM model (RBF kernel, ~15MB)scaler.pkl - Feature scaling preprocessing objectlabel_encoder.pkl - Label encoding for classesmetadata.json - Model metadata and training informationfrom huggingface_hub import hf_hub_download
import joblib
import gzip
import pickle
# Download model files
model_path = hf_hub_download("your-username/cat-dog-svm-model", "svm_best_model.pkl.gz")
scaler_path = hf_hub_download("your-username/cat-dog-svm-model", "scaler.pkl")
encoder_path = hf_hub_download("your-username/cat-dog-svm-model", "label_encoder.pkl")
# Load model
with gzip.open(model_path, 'rb') as f:
model = pickle.load(f)
# Load preprocessing objects
scaler = joblib.load(scaler_path)
label_encoder = joblib.load(encoder_path)