https://github.com/yuanjie-ai/ifeature
特征工程工具包
https://github.com/yuanjie-ai/ifeature
Last synced: about 2 months ago
JSON representation
特征工程工具包
- Host: GitHub
- URL: https://github.com/yuanjie-ai/ifeature
- Owner: yuanjie-ai
- Created: 2018-07-22T10:11:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-03T08:14:09.000Z (over 6 years ago)
- Last Synced: 2025-03-25T07:36:12.521Z (2 months ago)
- Language: Python
- Size: 93.8 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 特征工程
### Install
```bash
pip install git+https://github.com/Jie-Yuan/iFeature.git
``````
_clf = LGBMClassifier(n_estimators=1)
X = iris.data[:100, :]
y = iris.target[:100]
_clf.fit(X, y)
show_info = ['split_gain', 'internal_value', 'internal_count', 'leaf_count']
lgb.plot_tree(_clf.booster_, figsize=(60, 80), show_info=show_info)model = _clf.booster_.dump_model()
tree_infos = model['tree_info'] # xgb_._Booster.get_dump()
```