How to use from the
Use from the
Scikit-learn library
# Gated model: Login with a HF token with gated access permission
hf auth login
from huggingface_hub import hf_hub_download
import joblib
model = joblib.load(
	hf_hub_download("kalifi/iris-species-classifier", "sklearn_model.joblib")
)
# only load pickle files from sources you trust
# read more about it here https://skops.readthedocs.io/en/stable/persistence.html

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Iris Species Classifier

A lightweight logistic regression model trained on the classic Iris dataset. Classifies flower measurements into three species: Setosa, Versicolor, Virginica.

Usage

import mlflow.pyfunc
import pandas as pd

model = mlflow.pyfunc.load_model("kalifi/iris-species-classifier")

sample = pd.DataFrame(
    [[5.1, 3.5, 1.4, 0.2]],
    columns=["sepal_length", "sepal_width", "petal_length", "petal_width"]
)
print(model.predict(sample))  # ['setosa']

Performance

  • Accuracy: 97.3% on held-out test set
  • Training data: UCI Iris Dataset (150 samples)
  • Framework: scikit-learn LogisticRegression + StandardScaler pipeline
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support