Spaces:
Runtime error
Runtime error
Upload 5 files
Browse files- MLmodel +41 -0
- conda.yaml +28 -0
- python_env.yaml +7 -0
- python_model.pkl +3 -0
- requirements.txt +21 -0
MLmodel
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
artifact_path: train/model
|
2 |
+
flavors:
|
3 |
+
python_function:
|
4 |
+
artifacts:
|
5 |
+
model_path:
|
6 |
+
path: artifacts/sk_model
|
7 |
+
uri: /root/.mlflow/recipes/4c2ae726e39ef14e08ea28562d30aac9ba189acb8d78192ad8e73c4b61e025c2/steps/train/outputs/sk_model
|
8 |
+
cloudpickle_version: 3.1.1
|
9 |
+
code: code
|
10 |
+
env:
|
11 |
+
conda: conda.yaml
|
12 |
+
virtualenv: python_env.yaml
|
13 |
+
loader_module: mlflow.pyfunc.model
|
14 |
+
python_model: python_model.pkl
|
15 |
+
python_version: 3.11.11
|
16 |
+
streamable: false
|
17 |
+
sklearn:
|
18 |
+
code: code
|
19 |
+
pickled_model: artifacts/sk_model/model.pkl
|
20 |
+
serialization_format: cloudpickle
|
21 |
+
sklearn_version: 1.6.1
|
22 |
+
is_signature_from_type_hint: false
|
23 |
+
mlflow_version: 2.20.0
|
24 |
+
model_uuid: 5be7b92373ce4c78b9e3f53e8d969109
|
25 |
+
run_id: 0951b451e9554321adaebc8f9f15ac8c
|
26 |
+
signature:
|
27 |
+
inputs: '[{"type": "long", "name": "id", "required": true}, {"type": "string", "name":
|
28 |
+
"gender", "required": true}, {"type": "double", "name": "age", "required": true},
|
29 |
+
{"type": "long", "name": "hypertension", "required": true}, {"type": "long", "name":
|
30 |
+
"heart_disease", "required": true}, {"type": "string", "name": "ever_married",
|
31 |
+
"required": true}, {"type": "string", "name": "work_type", "required": true},
|
32 |
+
{"type": "string", "name": "Residence_type", "required": true}, {"type": "double",
|
33 |
+
"name": "avg_glucose_level", "required": true}, {"type": "double", "name": "bmi",
|
34 |
+
"required": false}, {"type": "string", "name": "smoking_status", "required": true}]'
|
35 |
+
outputs: '[{"type": "double", "name": "predicted_score_0", "required": true}, {"type":
|
36 |
+
"double", "name": "predicted_score_1", "required": true}, {"type": "double", "name":
|
37 |
+
"predicted_score", "required": true}, {"type": "long", "name": "predicted_label",
|
38 |
+
"required": true}]'
|
39 |
+
params: null
|
40 |
+
type_hint_from_example: false
|
41 |
+
utc_time_created: '2025-01-25 01:10:23.931434'
|
conda.yaml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
channels:
|
2 |
+
- conda-forge
|
3 |
+
dependencies:
|
4 |
+
- python=3.11.11
|
5 |
+
- pip<=24.1.2
|
6 |
+
- pip:
|
7 |
+
- mlflow==2.20.0
|
8 |
+
- cloudpickle==3.1.1
|
9 |
+
- google-cloud-aiplatform==1.74.0
|
10 |
+
- google-cloud-bigquery-connection==1.17.0
|
11 |
+
- google-cloud-bigquery-storage==2.27.0
|
12 |
+
- google-cloud-bigtable==2.28.1
|
13 |
+
- google-cloud-datastore==2.20.2
|
14 |
+
- google-cloud-firestore==2.19.0
|
15 |
+
- google-cloud-functions==1.19.0
|
16 |
+
- google-cloud-iam==2.17.0
|
17 |
+
- google-cloud-language==2.16.0
|
18 |
+
- google-cloud-pubsub==2.25.0
|
19 |
+
- google-cloud-translate==3.19.0
|
20 |
+
- google-colab==1.0.0
|
21 |
+
- google-genai==0.3.0
|
22 |
+
- google-generativeai==0.8.4
|
23 |
+
- numpy==1.26.4
|
24 |
+
- pandas==2.2.2
|
25 |
+
- pathlib==1.0.1
|
26 |
+
- scikit-learn==1.6.1
|
27 |
+
- scipy==1.13.1
|
28 |
+
name: mlflow-env
|
python_env.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
python: 3.11.11
|
2 |
+
build_dependencies:
|
3 |
+
- pip==24.1.2
|
4 |
+
- setuptools==75.1.0
|
5 |
+
- wheel==0.45.1
|
6 |
+
dependencies:
|
7 |
+
- -r requirements.txt
|
python_model.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:71a39d0acc1f478927d986126d68eb6addada954079754da07d5412dcb99780c
|
3 |
+
size 400
|
requirements.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
mlflow==2.20.0
|
2 |
+
cloudpickle==3.1.1
|
3 |
+
google-cloud-aiplatform==1.74.0
|
4 |
+
google-cloud-bigquery-connection==1.17.0
|
5 |
+
google-cloud-bigquery-storage==2.27.0
|
6 |
+
google-cloud-bigtable==2.28.1
|
7 |
+
google-cloud-datastore==2.20.2
|
8 |
+
google-cloud-firestore==2.19.0
|
9 |
+
google-cloud-functions==1.19.0
|
10 |
+
google-cloud-iam==2.17.0
|
11 |
+
google-cloud-language==2.16.0
|
12 |
+
google-cloud-pubsub==2.25.0
|
13 |
+
google-cloud-translate==3.19.0
|
14 |
+
google-colab==1.0.0
|
15 |
+
google-genai==0.3.0
|
16 |
+
google-generativeai==0.8.4
|
17 |
+
numpy==1.26.4
|
18 |
+
pandas==2.2.2
|
19 |
+
pathlib==1.0.1
|
20 |
+
scikit-learn==1.6.1
|
21 |
+
scipy==1.13.1
|