Instructions to use gusdelact/flores-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use gusdelact/flores-classifier with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("gusdelact/flores-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
| { | |
| "accuracy": 0.9666666666666667, | |
| "f1_weighted": 0.9665831244778613, | |
| "f1_macro": 0.9665831244778612, | |
| "classification_report": { | |
| "Iris-setosa": { | |
| "precision": 1.0, | |
| "recall": 1.0, | |
| "f1-score": 1.0, | |
| "support": 10.0 | |
| }, | |
| "Iris-versicolor": { | |
| "precision": 1.0, | |
| "recall": 0.9, | |
| "f1-score": 0.9473684210526315, | |
| "support": 10.0 | |
| }, | |
| "Iris-virginica": { | |
| "precision": 0.9090909090909091, | |
| "recall": 1.0, | |
| "f1-score": 0.9523809523809523, | |
| "support": 10.0 | |
| }, | |
| "accuracy": 0.9666666666666667, | |
| "macro avg": { | |
| "precision": 0.9696969696969697, | |
| "recall": 0.9666666666666667, | |
| "f1-score": 0.9665831244778612, | |
| "support": 30.0 | |
| }, | |
| "weighted avg": { | |
| "precision": 0.9696969696969696, | |
| "recall": 0.9666666666666667, | |
| "f1-score": 0.9665831244778613, | |
| "support": 30.0 | |
| } | |
| }, | |
| "confusion_matrix": [ | |
| [ | |
| 10, | |
| 0, | |
| 0 | |
| ], | |
| [ | |
| 0, | |
| 9, | |
| 1 | |
| ], | |
| [ | |
| 0, | |
| 0, | |
| 10 | |
| ] | |
| ], | |
| "feature_importance_gini": { | |
| "SepalWidthCm": 0.014631894141298908, | |
| "SepalLengthCm": 0.11691019699542601, | |
| "PetalWidthCm": 0.4139554292227643, | |
| "PetalLengthCm": 0.4545024796405107 | |
| }, | |
| "feature_importance_permutation": { | |
| "SepalLengthCm": 0.0, | |
| "SepalWidthCm": 0.0, | |
| "PetalWidthCm": 0.16666666666666666, | |
| "PetalLengthCm": 0.2733333333333334 | |
| } | |
| } |