Skip to main content

description

Project description

特征工程

Install

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ifeature, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size ifeature-0.0.6-py3-none-any.whl (39.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ifeature-0.0.6.tar.gz (25.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page