maitelizarraga
commited on
Commit
•
5e08d48
1
Parent(s):
7ff4940
Upload folder using huggingface_hub
Browse files- README.md +53 -0
- model.joblib +3 -0
- target_encoders.joblib +3 -0
- training_params.json +1 -0
README.md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- tabular
|
6 |
+
- regression
|
7 |
+
- tabular-regression
|
8 |
+
datasets:
|
9 |
+
- rea-knn/autotrain-data
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Trained Using AutoTrain
|
13 |
+
|
14 |
+
- Problem type: Tabular regression
|
15 |
+
|
16 |
+
## Validation Metrics
|
17 |
+
|
18 |
+
- r2: 0.4161997019836754
|
19 |
+
- mse: 1507403520.3284101
|
20 |
+
- mae: 29120.68408236499
|
21 |
+
- rmse: 38825.29485178973
|
22 |
+
- rmsle: 0.18675257705362744
|
23 |
+
- loss: 38825.29485178973
|
24 |
+
|
25 |
+
## Best Params
|
26 |
+
|
27 |
+
- n_neighbors: 3
|
28 |
+
- weights: distance
|
29 |
+
- algorithm: ball_tree
|
30 |
+
- leaf_size: 77
|
31 |
+
- p: 2
|
32 |
+
- metric: manhattan
|
33 |
+
|
34 |
+
## Usage
|
35 |
+
|
36 |
+
```python
|
37 |
+
import json
|
38 |
+
import joblib
|
39 |
+
import pandas as pd
|
40 |
+
|
41 |
+
model = joblib.load('model.joblib')
|
42 |
+
config = json.load(open('config.json'))
|
43 |
+
|
44 |
+
features = config['features']
|
45 |
+
|
46 |
+
# data = pd.read_csv("data.csv")
|
47 |
+
data = data[features]
|
48 |
+
|
49 |
+
predictions = model.predict(data) # or model.predict_proba(data)
|
50 |
+
|
51 |
+
# predictions can be converted to original labels using label_encoders.pkl
|
52 |
+
|
53 |
+
```
|
model.joblib
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bab3c3ef8b2be46f65137b180abcd5bac410d48617a8cacc54293b1ebf590b7
|
3 |
+
size 86765
|
target_encoders.joblib
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:926248e52d1fa532c317e37da24ed652ae64110f8219cb5e061668bd3091f048
|
3 |
+
size 5
|
training_params.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"data_path": "rea-knn/autotrain-data", "model": "knn", "username": "maitelizarraga", "seed": 42, "train_split": "train", "valid_split": "validation", "project_name": "rea-knn", "push_to_hub": true, "id_column": "autotrain_id", "target_columns": ["autotrain_label"], "categorical_columns": null, "numerical_columns": null, "task": "regression", "num_trials": 10, "time_limit": 600, "categorical_imputer": "most_frequent", "numerical_imputer": "median", "numeric_scaler": "robust"}
|