Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +46 -0
- config.json +1 -0
- model.joblib +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
38 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- tabular
|
5 |
+
- classification
|
6 |
+
- tabular-classification
|
7 |
+
datasets:
|
8 |
+
- reachosen/autotrain-data-palv1
|
9 |
+
co2_eq_emissions:
|
10 |
+
emissions: 1.2993450618764815
|
11 |
+
---
|
12 |
+
|
13 |
+
# Model Trained Using AutoTrain
|
14 |
+
|
15 |
+
- Problem type: Binary Classification
|
16 |
+
- Model ID: 76806140361
|
17 |
+
- CO2 Emissions (in grams): 1.2993
|
18 |
+
|
19 |
+
## Validation Metrics
|
20 |
+
|
21 |
+
- Loss: 0.192
|
22 |
+
- Accuracy: 0.919
|
23 |
+
- Precision: 1.000
|
24 |
+
- Recall: 0.667
|
25 |
+
- AUC: 0.978
|
26 |
+
- F1: 0.800
|
27 |
+
|
28 |
+
## Usage
|
29 |
+
|
30 |
+
```python
|
31 |
+
import json
|
32 |
+
import joblib
|
33 |
+
import pandas as pd
|
34 |
+
|
35 |
+
model = joblib.load('model.joblib')
|
36 |
+
config = json.load(open('config.json'))
|
37 |
+
|
38 |
+
features = config['features']
|
39 |
+
|
40 |
+
# data = pd.read_csv("data.csv")
|
41 |
+
data = data[features]
|
42 |
+
data.columns = ["feat_" + str(col) for col in data.columns]
|
43 |
+
|
44 |
+
predictions = model.predict(data) # or model.predict_proba(data)
|
45 |
+
|
46 |
+
```
|
config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"features": ["Age", "Comorbidities", "ICU Admission", "ICU Stay Duration", "Cardiac Arrest Event", "ICH Intubation", "Acute on Chronic Exacerbations", "HCPOA Status", "Family Disagreement", "Non-Beneficial Care Perception", "Surprise Question Outcome", "ICU Stay >1 Month", "MSOF >3 Systems", "Hospital Death Expected", "Advanced Dementia", "Palliative Care Outpatient", "Active Metastatic Disease", "Unnamed: 18", "Unnamed: 19", "Unnamed: 20", "Unnamed: 21", "Unnamed: 22"], "targets": ["target"], "model_type": "xgboost", "target_mapping": {"N": 0, "Y": 1}}
|
model.joblib
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da91706f3e54b1f935280e7a34c3a8ce53d83b8432a1c0d4e9a77018a97ee027
|
3 |
+
size 600750
|