BOUIDA commited on
Commit
f751e40
·
verified ·
1 Parent(s): 793b01a

Nouveau modèle : accuracy=0.9667

Browse files
Files changed (4) hide show
  1. README.md +49 -0
  2. metrics.json +4 -0
  3. model.joblib +3 -0
  4. params.yaml +8 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: sklearn
3
+ tags:
4
+ - tabular-classification
5
+ - sklearn
6
+ - mlops-tp
7
+ datasets:
8
+ - scikit-learn/iris
9
+ metrics:
10
+ - accuracy
11
+ - f1
12
+ ---
13
+
14
+ # Iris classifier (TP MLOps)
15
+
16
+ Pipeline scikit-learn `StandardScaler` + `LogisticRegression` entraîné sur Iris.
17
+
18
+ ## Résultats (jeu de test, 20% des données)
19
+
20
+ | Métrique | Valeur |
21
+ |----------|--------|
22
+ | accuracy | 0.9667 |
23
+ | f1_macro | 0.9666 |
24
+
25
+ ## Paramètres
26
+
27
+ ```yaml
28
+ # Hyperparamètres et réglages du TP1. On les sort du code pour pouvoir
29
+ # les changer sans toucher au script (et plus tard les suivre avec DVC/MLflow).
30
+ data:
31
+ test_size: 0.2
32
+ random_state: 42
33
+ model:
34
+ C: 1.0
35
+ max_iter: 200```
36
+
37
+ ## Utilisation
38
+
39
+ ```python
40
+ import joblib
41
+ from huggingface_hub import hf_hub_download
42
+
43
+ path = hf_hub_download("BOUIDA/iris-classifier", "model.joblib")
44
+ bundle = joblib.load(path)
45
+ idx = bundle["model"].predict([[5.1, 3.5, 1.4, 0.2]])[0]
46
+ print(bundle["target_names"][idx]) # setosa
47
+ ```
48
+
49
+ Publié le 2026-11-24.
metrics.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "accuracy": 0.9667,
3
+ "f1_macro": 0.9666
4
+ }
model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75cd23c7a82827e967e746b6426f1456793d56d3e9db26d76a0f5761b0c1f79b
3
+ size 1368
params.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Hyperparamètres et réglages du TP1. On les sort du code pour pouvoir
2
+ # les changer sans toucher au script (et plus tard les suivre avec DVC/MLflow).
3
+ data:
4
+ test_size: 0.2
5
+ random_state: 42
6
+ model:
7
+ C: 1.0
8
+ max_iter: 200