oviroger commited on
Commit
b945ecf
·
1 Parent(s): cfe6b01

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +37 -0
  2. classification_report.txt +9 -0
  3. metrics.json +18 -0
  4. model.joblib +3 -0
  5. requirements.txt +6 -0
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: scikit-learn
3
+ tags:
4
+ - scikit-learn
5
+ - joblib
6
+ - gradio
7
+ - iris
8
+ - classification
9
+ ---
10
+
11
+ # Iris Random Forest Joblib Demo
12
+
13
+ Modelo de clasificación entrenado con el dataset Iris de scikit-learn y serializado en formato `.joblib`.
14
+
15
+ ## Variables de entrada
16
+ - sepal length (cm)
17
+ - sepal width (cm)
18
+ - petal length (cm)
19
+ - petal width (cm)
20
+
21
+ ## Clases de salida
22
+ - setosa
23
+ - versicolor
24
+ - virginica
25
+
26
+ ## Métrica principal
27
+ - Accuracy: 0.9667
28
+
29
+ ## Uso rápido
30
+
31
+ ```python
32
+ from huggingface_hub import hf_hub_download
33
+ import joblib
34
+
35
+ model_path = hf_hub_download(repo_id="oviroger/iris-rf-joblib-demo", filename="model.joblib")
36
+ model = joblib.load(model_path)
37
+ ```
classification_report.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ precision recall f1-score support
2
+
3
+ setosa 1.00 1.00 1.00 10
4
+ versicolor 1.00 0.90 0.95 10
5
+ virginica 0.91 1.00 0.95 10
6
+
7
+ accuracy 0.97 30
8
+ macro avg 0.97 0.97 0.97 30
9
+ weighted avg 0.97 0.97 0.97 30
metrics.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy": 0.9666666666666667,
3
+ "train_size": 120,
4
+ "test_size": 30,
5
+ "features": [
6
+ "sepal length (cm)",
7
+ "sepal width (cm)",
8
+ "petal length (cm)",
9
+ "petal width (cm)"
10
+ ],
11
+ "classes": [
12
+ "setosa",
13
+ "versicolor",
14
+ "virginica"
15
+ ],
16
+ "model_type": "RandomForestClassifier",
17
+ "random_state": 42
18
+ }
model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcff64eda03aeccda52d4874dd8ef332e23764182a415ec819c0418e24717852
3
+ size 296874
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ scikit-learn
2
+ joblib
3
+ pandas
4
+ matplotlib
5
+ huggingface_hub
6
+ gradio