Instructions to use MelioAI/iris-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use MelioAI/iris-classifier with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("MelioAI/iris-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 - Notebooks
- Google Colab
- Kaggle
| { | |
| "sklearn": { | |
| "columns": [ | |
| "sepal length (cm)", | |
| "sepal width (cm)", | |
| "petal length (cm)", | |
| "petal width (cm)" | |
| ], | |
| "environment": [ | |
| "scikit-learn==1.3.0", | |
| "joblib==1.3.2" | |
| ], | |
| "example_input": { | |
| "petal length (cm)": [ | |
| 1.0, | |
| 1.5, | |
| 4.4 | |
| ], | |
| "petal width (cm)": [ | |
| 0.2, | |
| 0.4, | |
| 1.4 | |
| ], | |
| "sepal length (cm)": [ | |
| 4.6, | |
| 5.7, | |
| 6.7 | |
| ], | |
| "sepal width (cm)": [ | |
| 3.6, | |
| 4.4, | |
| 3.1 | |
| ] | |
| }, | |
| "model": { | |
| "file": "model.joblib" | |
| }, | |
| "model_format": "pickle", | |
| "task": "tabular-classification", | |
| "use_intelex": false | |
| } | |
| } |