Skip to content

Commit

Permalink
Updated 'documents/Aggregator.md' via CloudCannon
Browse files Browse the repository at this point in the history
  • Loading branch information
firmai authored and CloudCannon committed Feb 28, 2019
1 parent cbfc967 commit 65b3ac0
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions documents/Aggregator.md
Expand Up @@ -4525,6 +4525,7 @@ params = {
'num_class': 1,
'metric': 'auc'}
```
```python
## Someones

params["max_depth"]=5
Expand All @@ -4538,6 +4539,7 @@ params["colsample_bytree"]=1
# params["reg_lambda"] = 2
# params["feature_fraction and"] = 2
# params["seed"] = 5
```

```python
#### Scripus/First Olivier
Expand Down Expand Up @@ -4931,13 +4933,6 @@ shap_new = shap_fram.sum().sort_values().to_frame()

shap_new.columns = ["SHAP"]
```
low = shap_new[shap_new["SHAP"]<shap_new.quantile(.20).values[0]].reset_index()

playdata[low[low["index"].str.contains("AMT")]["index"].values].head().columns

high = shap_new[shap_new["SHAP"]>shap_new.quantile(.80).values[0]].reset_index()

playdata[high[high["index"].str.contains("AMT")]["index"].values].head().columns

```python
list(shap_new.head(20).index.values)
Expand Down Expand Up @@ -5558,10 +5553,5 @@ feature_importances.groupby("feature").mean().sort_values("importance", ascendin
</div>


print(len(feat_imp))

new = feat_imp[feat_imp["importance"]<2]

new.to_csv("imp_feats2.csv")
print(len(feat_imp[feat_imp["importance"]<2]))

0 comments on commit 65b3ac0

Please sign in to comment.