Upload folder using huggingface_hub
Browse files- README.md +58 -0
- model.joblib +3 -0
- target_encoders.joblib +3 -0
- training_params.json +1 -0
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
tags:
|
| 4 |
+
- autotrain
|
| 5 |
+
- tabular
|
| 6 |
+
- classification
|
| 7 |
+
- tabular-classification
|
| 8 |
+
datasets:
|
| 9 |
+
- autotrain-vdbyj-hps42/autotrain-data
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Model Trained Using AutoTrain
|
| 13 |
+
|
| 14 |
+
- Problem type: Tabular classification
|
| 15 |
+
|
| 16 |
+
## Validation Metrics
|
| 17 |
+
|
| 18 |
+
- logloss: 0.28027260106321344
|
| 19 |
+
- accuracy: 0.8666666666666667
|
| 20 |
+
- mlogloss: 0.28027260106321344
|
| 21 |
+
- f1_macro: 0.8611111111111112
|
| 22 |
+
- f1_micro: 0.8666666666666667
|
| 23 |
+
- f1_weighted: 0.8611111111111112
|
| 24 |
+
- precision_macro: 0.9047619047619048
|
| 25 |
+
- precision_micro: 0.8666666666666667
|
| 26 |
+
- precision_weighted: 0.9047619047619048
|
| 27 |
+
- recall_macro: 0.8666666666666667
|
| 28 |
+
- recall_micro: 0.8666666666666667
|
| 29 |
+
- recall_weighted: 0.8666666666666667
|
| 30 |
+
- loss: 0.28027260106321344
|
| 31 |
+
|
| 32 |
+
## Best Params
|
| 33 |
+
|
| 34 |
+
- C: 360.26071213844074
|
| 35 |
+
- fit_intercept: False
|
| 36 |
+
- solver: saga
|
| 37 |
+
- penalty: l2
|
| 38 |
+
|
| 39 |
+
## Usage
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
import json
|
| 43 |
+
import joblib
|
| 44 |
+
import pandas as pd
|
| 45 |
+
|
| 46 |
+
model = joblib.load('model.joblib')
|
| 47 |
+
config = json.load(open('config.json'))
|
| 48 |
+
|
| 49 |
+
features = config['features']
|
| 50 |
+
|
| 51 |
+
# data = pd.read_csv("data.csv")
|
| 52 |
+
data = data[features]
|
| 53 |
+
|
| 54 |
+
predictions = model.predict(data) # or model.predict_proba(data)
|
| 55 |
+
|
| 56 |
+
# predictions can be converted to original labels using label_encoders.pkl
|
| 57 |
+
|
| 58 |
+
```
|
model.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea63ebcfaec9046fbea22ce0d1fb4565321038b5587e121a4e4324b9037871b2
|
| 3 |
+
size 3724
|
target_encoders.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e646e6046f34d137c275a22ec08b8e233c6a4dc0ff7ed36442afd2666690006
|
| 3 |
+
size 384
|
training_params.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"data_path": "autotrain-vdbyj-hps42/autotrain-data", "model": "logistic_regression", "username": "AlexVplle", "seed": 42, "train_split": "train", "valid_split": "validation", "project_name": "autotrain-vdbyj-hps42", "push_to_hub": true, "id_column": "autotrain_id", "target_columns": ["autotrain_label"], "categorical_columns": null, "numerical_columns": null, "task": "classification", "num_trials": 10, "time_limit": 600, "categorical_imputer": "most_frequent", "numerical_imputer": "median", "numeric_scaler": "robust"}
|