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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: sklearn
|
| 4 |
+
tags:
|
| 5 |
+
- sklearn
|
| 6 |
+
- skops
|
| 7 |
+
- tabular-classification
|
| 8 |
+
model_format: pickle
|
| 9 |
+
model_file: rf_model.pkl
|
| 10 |
+
widget:
|
| 11 |
+
structuredData:
|
| 12 |
+
x0:
|
| 13 |
+
- 22353.0
|
| 14 |
+
- 18097.0
|
| 15 |
+
- 1893.0
|
| 16 |
+
x1:
|
| 17 |
+
- 300.0
|
| 18 |
+
- 0.0
|
| 19 |
+
- 0.0
|
| 20 |
+
x10:
|
| 21 |
+
- 6.0
|
| 22 |
+
- 6.0
|
| 23 |
+
- 6.0
|
| 24 |
+
x11:
|
| 25 |
+
- 14.300000190734863
|
| 26 |
+
- 18.0
|
| 27 |
+
- 12.5
|
| 28 |
+
x12:
|
| 29 |
+
- 0.0
|
| 30 |
+
- 0.0
|
| 31 |
+
- 0.0
|
| 32 |
+
x13:
|
| 33 |
+
- -0.1458740234375
|
| 34 |
+
- -0.016845703125
|
| 35 |
+
- -0.145751953125
|
| 36 |
+
x14:
|
| 37 |
+
- 2574.0
|
| 38 |
+
- 2243.0
|
| 39 |
+
- 2393.0
|
| 40 |
+
x2:
|
| 41 |
+
- 1376.530029296875
|
| 42 |
+
- 1810.1199951171875
|
| 43 |
+
- 284.42999267578125
|
| 44 |
+
x3:
|
| 45 |
+
- 0.0
|
| 46 |
+
- 0.0
|
| 47 |
+
- 0.0
|
| 48 |
+
x4:
|
| 49 |
+
- 0.0
|
| 50 |
+
- 0.0
|
| 51 |
+
- 0.0
|
| 52 |
+
x5:
|
| 53 |
+
- 0.0
|
| 54 |
+
- 126.66000366210938
|
| 55 |
+
- 19.809999465942383
|
| 56 |
+
x6:
|
| 57 |
+
- 44.311378479003906
|
| 58 |
+
- 40.6067008972168
|
| 59 |
+
- 44.311378479003906
|
| 60 |
+
x7:
|
| 61 |
+
- 0.0
|
| 62 |
+
- 0.0
|
| 63 |
+
- 0.0
|
| 64 |
+
x8:
|
| 65 |
+
- 29.5
|
| 66 |
+
- 27.0
|
| 67 |
+
- 9.399999618530273
|
| 68 |
+
x9:
|
| 69 |
+
- 1.0
|
| 70 |
+
- 1.0
|
| 71 |
+
- 1.0
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
# Model description
|
| 75 |
+
|
| 76 |
+
[More Information Needed]
|
| 77 |
+
|
| 78 |
+
## Intended uses & limitations
|
| 79 |
+
|
| 80 |
+
[More Information Needed]
|
| 81 |
+
|
| 82 |
+
## Training Procedure
|
| 83 |
+
|
| 84 |
+
### Hyperparameters
|
| 85 |
+
|
| 86 |
+
The model is trained with below hyperparameters.
|
| 87 |
+
|
| 88 |
+
<details>
|
| 89 |
+
<summary> Click to expand </summary>
|
| 90 |
+
|
| 91 |
+
| Hyperparameter | Value |
|
| 92 |
+
|--------------------------|---------|
|
| 93 |
+
| bootstrap | True |
|
| 94 |
+
| ccp_alpha | 0.0 |
|
| 95 |
+
| class_weight | |
|
| 96 |
+
| criterion | gini |
|
| 97 |
+
| max_depth | |
|
| 98 |
+
| max_features | sqrt |
|
| 99 |
+
| max_leaf_nodes | |
|
| 100 |
+
| max_samples | |
|
| 101 |
+
| min_impurity_decrease | 0.0 |
|
| 102 |
+
| min_samples_leaf | 1 |
|
| 103 |
+
| min_samples_split | 2 |
|
| 104 |
+
| min_weight_fraction_leaf | 0.0 |
|
| 105 |
+
| n_estimators | 25 |
|
| 106 |
+
| n_jobs | -1 |
|
| 107 |
+
| oob_score | False |
|
| 108 |
+
| random_state | 1 |
|
| 109 |
+
| verbose | 0 |
|
| 110 |
+
| warm_start | False |
|
| 111 |
+
|
| 112 |
+
</details>
|
| 113 |
+
|
| 114 |
+
### Model Plot
|
| 115 |
+
|
| 116 |
+
The model plot is below.
|
| 117 |
+
|
| 118 |
+
<style>#sk-container-id-2 {color: black;background-color: white;}#sk-container-id-2 pre{padding: 0;}#sk-container-id-2 div.sk-toggleable {background-color: white;}#sk-container-id-2 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-2 label.sk-toggleable__label-arrow:before {content: "▸";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-2 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-2 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-2 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-2 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-2 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-2 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: "▾";}#sk-container-id-2 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-2 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-2 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-2 div.sk-parallel-item::after {content: "";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-2 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 div.sk-serial::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-2 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-2 div.sk-item {position: relative;z-index: 1;}#sk-container-id-2 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-2 div.sk-item::before, #sk-container-id-2 div.sk-parallel-item::before {content: "";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-2 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-2 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-2 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-2 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-2 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-2 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-2 div.sk-label-container {text-align: center;}#sk-container-id-2 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-2 div.sk-text-repr-fallback {display: none;}</style><div id="sk-container-id-2" class="sk-top-container" style="overflow: auto;"><div class="sk-text-repr-fallback"><pre>RandomForestClassifier(n_estimators=25, n_jobs=-1, random_state=1)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class="sk-container" hidden><div class="sk-item"><div class="sk-estimator sk-toggleable"><input class="sk-toggleable__control sk-hidden--visually" id="sk-estimator-id-2" type="checkbox" checked><label for="sk-estimator-id-2" class="sk-toggleable__label sk-toggleable__label-arrow">RandomForestClassifier</label><div class="sk-toggleable__content"><pre>RandomForestClassifier(n_estimators=25, n_jobs=-1, random_state=1)</pre></div></div></div></div></div>
|
| 119 |
+
|
| 120 |
+
## Evaluation Results
|
| 121 |
+
|
| 122 |
+
You can find the details about evaluation process and the evaluation results.
|
| 123 |
+
|
| 124 |
+
| Metric | Value |
|
| 125 |
+
|----------|----------|
|
| 126 |
+
| accuracy | 0.988057 |
|
| 127 |
+
| f1 score | 0.988057 |
|
| 128 |
+
|
| 129 |
+
# How to Get Started with the Model
|
| 130 |
+
|
| 131 |
+
[More Information Needed]
|
| 132 |
+
|
| 133 |
+
# Model Card Authors
|
| 134 |
+
|
| 135 |
+
This model card is written by following authors:
|
| 136 |
+
|
| 137 |
+
[More Information Needed]
|
| 138 |
+
|
| 139 |
+
# Model Card Contact
|
| 140 |
+
|
| 141 |
+
You can contact the model card authors through following channels:
|
| 142 |
+
[More Information Needed]
|
| 143 |
+
|
| 144 |
+
# Citation
|
| 145 |
+
|
| 146 |
+
Below you can find information related to citation.
|
| 147 |
+
|
| 148 |
+
**BibTeX:**
|
| 149 |
+
```
|
| 150 |
+
[More Information Needed]
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
# citation_bibtex
|
| 154 |
+
|
| 155 |
+
bibtex
|
| 156 |
+
@inproceedings{...,year={2023}}
|
| 157 |
+
|
| 158 |
+
# get_started_code
|
| 159 |
+
|
| 160 |
+
import pickle
|
| 161 |
+
with open(dtc_pkl_filename, 'rb') as file:
|
| 162 |
+
clf = pickle.load(file)
|
| 163 |
+
|
| 164 |
+
# model_card_authors
|
| 165 |
+
|
| 166 |
+
Marvin Lomo
|
| 167 |
+
|
| 168 |
+
# limitations
|
| 169 |
+
|
| 170 |
+
This model is not ready to be used in production.
|
| 171 |
+
|
| 172 |
+
# model_description
|
| 173 |
+
|
| 174 |
+
This is a RandomForrestClassifier model trained on SME Churn Dataset.
|
| 175 |
+
|
| 176 |
+
# eval_method
|
| 177 |
+
|
| 178 |
+
The model is evaluated using test split, on accuracy and F1 score with macro average.
|
| 179 |
+
|
| 180 |
+
# confusion_matrix
|
| 181 |
+
|
| 182 |
+

|
config.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"sklearn": {
|
| 3 |
+
"columns": [
|
| 4 |
+
"x0",
|
| 5 |
+
"x1",
|
| 6 |
+
"x2",
|
| 7 |
+
"x3",
|
| 8 |
+
"x4",
|
| 9 |
+
"x5",
|
| 10 |
+
"x6",
|
| 11 |
+
"x7",
|
| 12 |
+
"x8",
|
| 13 |
+
"x9",
|
| 14 |
+
"x10",
|
| 15 |
+
"x11",
|
| 16 |
+
"x12",
|
| 17 |
+
"x13",
|
| 18 |
+
"x14"
|
| 19 |
+
],
|
| 20 |
+
"environment": [
|
| 21 |
+
"scikit-learn=1.2.0"
|
| 22 |
+
],
|
| 23 |
+
"example_input": {
|
| 24 |
+
"x0": [
|
| 25 |
+
22353.0,
|
| 26 |
+
18097.0,
|
| 27 |
+
1893.0
|
| 28 |
+
],
|
| 29 |
+
"x1": [
|
| 30 |
+
300.0,
|
| 31 |
+
0.0,
|
| 32 |
+
0.0
|
| 33 |
+
],
|
| 34 |
+
"x10": [
|
| 35 |
+
6.0,
|
| 36 |
+
6.0,
|
| 37 |
+
6.0
|
| 38 |
+
],
|
| 39 |
+
"x11": [
|
| 40 |
+
14.300000190734863,
|
| 41 |
+
18.0,
|
| 42 |
+
12.5
|
| 43 |
+
],
|
| 44 |
+
"x12": [
|
| 45 |
+
0.0,
|
| 46 |
+
0.0,
|
| 47 |
+
0.0
|
| 48 |
+
],
|
| 49 |
+
"x13": [
|
| 50 |
+
-0.1458740234375,
|
| 51 |
+
-0.016845703125,
|
| 52 |
+
-0.145751953125
|
| 53 |
+
],
|
| 54 |
+
"x14": [
|
| 55 |
+
2574.0,
|
| 56 |
+
2243.0,
|
| 57 |
+
2393.0
|
| 58 |
+
],
|
| 59 |
+
"x2": [
|
| 60 |
+
1376.530029296875,
|
| 61 |
+
1810.1199951171875,
|
| 62 |
+
284.42999267578125
|
| 63 |
+
],
|
| 64 |
+
"x3": [
|
| 65 |
+
0.0,
|
| 66 |
+
0.0,
|
| 67 |
+
0.0
|
| 68 |
+
],
|
| 69 |
+
"x4": [
|
| 70 |
+
0.0,
|
| 71 |
+
0.0,
|
| 72 |
+
0.0
|
| 73 |
+
],
|
| 74 |
+
"x5": [
|
| 75 |
+
0.0,
|
| 76 |
+
126.66000366210938,
|
| 77 |
+
19.809999465942383
|
| 78 |
+
],
|
| 79 |
+
"x6": [
|
| 80 |
+
44.311378479003906,
|
| 81 |
+
40.6067008972168,
|
| 82 |
+
44.311378479003906
|
| 83 |
+
],
|
| 84 |
+
"x7": [
|
| 85 |
+
0.0,
|
| 86 |
+
0.0,
|
| 87 |
+
0.0
|
| 88 |
+
],
|
| 89 |
+
"x8": [
|
| 90 |
+
29.5,
|
| 91 |
+
27.0,
|
| 92 |
+
9.399999618530273
|
| 93 |
+
],
|
| 94 |
+
"x9": [
|
| 95 |
+
1.0,
|
| 96 |
+
1.0,
|
| 97 |
+
1.0
|
| 98 |
+
]
|
| 99 |
+
},
|
| 100 |
+
"model": {
|
| 101 |
+
"file": "rf_model.pkl"
|
| 102 |
+
},
|
| 103 |
+
"model_format": "pickle",
|
| 104 |
+
"task": "tabular-classification",
|
| 105 |
+
"use_intelex": false
|
| 106 |
+
}
|
| 107 |
+
}
|
confusion_matrix.png
ADDED
|
rf_model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83839042da9246c59e437ec38aad575ac53c900459acae26058d5de824e30eea
|
| 3 |
+
size 7086447
|