AriasMo commited on
Commit
dd2d2ee
·
verified ·
1 Parent(s): 05aefff

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +41 -0
  2. classification_report.txt +9 -0
  3. metrics.json +18 -0
  4. model.joblib +3 -0
  5. requirements.txt +5 -0
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: scikit-learn
3
+ tags:
4
+ - scikit-learn
5
+ - joblib
6
+ - iris
7
+ - random-forest
8
+ - classification
9
+ ---
10
+
11
+ # Iris Random Forest Model
12
+
13
+ Modelo de ejemplo entrenado con el dataset Iris de `scikit-learn` y guardado como `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="AriasMo/iris-rf-joblib-demo", filename="model.joblib")
36
+ model = joblib.load(model_path)
37
+ ```
38
+
39
+ ## Space relacionada
40
+ La interfaz del modelo estará disponible en:
41
+ `https://huggingface.co/spaces/AriasMo/iris-rf-gradio-space`
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,5 @@
 
 
 
 
 
 
1
+ scikit-learn
2
+ joblib
3
+ pandas
4
+ matplotlib
5
+ huggingface_hub