github-actions commited on
Commit
f2ae856
·
1 Parent(s): a582b69

Deploy from GitHub Actions: 5ee50547b645fd2d6fee62fbf508118db7abbb72

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. .gitignore +0 -1
  3. models/metadata.json +43 -0
  4. models/model.joblib +3 -0
  5. src/utils.py +2 -0
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ models/*.joblib filter=lfs diff=lfs merge=lfs -text
.gitignore CHANGED
@@ -3,7 +3,6 @@ venv/
3
  __pycache__/
4
  *.pyc
5
  .pytest_cache/
6
- models/
7
  mlruns/
8
  .streamlit/
9
  "hf_space/"
 
3
  __pycache__/
4
  *.pyc
5
  .pytest_cache/
 
6
  mlruns/
7
  .streamlit/
8
  "hf_space/"
models/metadata.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_params": {
3
+ "rf__n_estimators": 50
4
+ },
5
+ "cv": 2,
6
+ "recall_test": 0.9722222222222222,
7
+ "feature_names": [
8
+ "mean radius",
9
+ "mean texture",
10
+ "mean perimeter",
11
+ "mean area",
12
+ "mean smoothness",
13
+ "mean compactness",
14
+ "mean concavity",
15
+ "mean concave points",
16
+ "mean symmetry",
17
+ "mean fractal dimension",
18
+ "radius error",
19
+ "texture error",
20
+ "perimeter error",
21
+ "area error",
22
+ "smoothness error",
23
+ "compactness error",
24
+ "concavity error",
25
+ "concave points error",
26
+ "symmetry error",
27
+ "fractal dimension error",
28
+ "worst radius",
29
+ "worst texture",
30
+ "worst perimeter",
31
+ "worst area",
32
+ "worst smoothness",
33
+ "worst compactness",
34
+ "worst concavity",
35
+ "worst concave points",
36
+ "worst symmetry",
37
+ "worst fractal dimension"
38
+ ],
39
+ "target_names": [
40
+ "malignant",
41
+ "benign"
42
+ ]
43
+ }
models/model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dfb5edfc48112e97c68a16ddf4d4011c4b50db33e82c267a244a685e6d2fda2
3
+ size 164146
src/utils.py CHANGED
@@ -1,5 +1,7 @@
1
  from pathlib import Path
2
 
 
 
3
  MODELS_DIR = Path("models")
4
  MODELS_DIR.mkdir(parents=True, exist_ok=True)
5
 
 
1
  from pathlib import Path
2
 
3
+
4
+ ROOT = Path(__file__).resolve().parents[1]
5
  MODELS_DIR = Path("models")
6
  MODELS_DIR.mkdir(parents=True, exist_ok=True)
7