Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +45 -0
- config.json +1 -0
- model.joblib +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- tabular
|
5 |
+
- regression
|
6 |
+
- tabular-regression
|
7 |
+
datasets:
|
8 |
+
- wangdy/autotrain-data-godaddy2
|
9 |
+
co2_eq_emissions:
|
10 |
+
emissions: 0.0013755411915266891
|
11 |
+
---
|
12 |
+
|
13 |
+
# Model Trained Using AutoTrain
|
14 |
+
|
15 |
+
- Problem type: Single Column Regression
|
16 |
+
- Model ID: 38507101578
|
17 |
+
- CO2 Emissions (in grams): 0.0014
|
18 |
+
|
19 |
+
## Validation Metrics
|
20 |
+
|
21 |
+
- Loss: 0.206
|
22 |
+
- R2: 0.997
|
23 |
+
- MSE: 0.042
|
24 |
+
- MAE: 0.081
|
25 |
+
- RMSLE: 0.052
|
26 |
+
|
27 |
+
## Usage
|
28 |
+
|
29 |
+
```python
|
30 |
+
import json
|
31 |
+
import joblib
|
32 |
+
import pandas as pd
|
33 |
+
|
34 |
+
model = joblib.load('model.joblib')
|
35 |
+
config = json.load(open('config.json'))
|
36 |
+
|
37 |
+
features = config['features']
|
38 |
+
|
39 |
+
# data = pd.read_csv("data.csv")
|
40 |
+
data = data[features]
|
41 |
+
data.columns = ["feat_" + str(col) for col in data.columns]
|
42 |
+
|
43 |
+
predictions = model.predict(data) # or model.predict_proba(data)
|
44 |
+
|
45 |
+
```
|
config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"features": ["active", "pct_bb-2", "pct_bb-1", "pct_bb", "pct_college-2", "pct_college-1", "pct_college", "pct_foreign_born-2", "pct_foreign_bor-1", "pct_foreign_born", "pct_it_workers-2", "pct_it_workers-1", "pct_it_workers", "median_hh_inc-2", "median_hh_inc-1", "median_hh_inc", "first_day_of_month"], "targets": ["target"], "model_type": "knn", "target_mapping": {}}
|
model.joblib
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8b5c754418964c0fbe81feee5252f2b2cde8d946fec6e36f1bb4c96270a70ae
|
3 |
+
size 3496015
|