Transparent Easy Rule Model (credit scoring rules)
Project description
term-rules
Transparent Easy Rule Model(基于树模型的规则抽取与评估,German Credit 示例)。
安装(包名):
pip install term-rules
导入(代码包):import term(因为源码目录叫term/)
快速开始
from term import Rule
r = Rule("CreditHistory <= 3.5 & Duration > 11.5 & Savings <= 1.5")
mask = r(df) # True 表示命中该规则
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
term_rules-0.1.0.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file term_rules-0.1.0.tar.gz.
File metadata
- Download URL: term_rules-0.1.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d0dae1e96184236bf9c064c6a8d5febe2608b96b9f718a750b3af94e76f5d02
|
|
| MD5 |
dc00828d1901e644c9bef66717974ec9
|
|
| BLAKE2b-256 |
407a5a33c415be453b5b6467932a25cceb88723fc416a913782b0b82af7d9e92
|
File details
Details for the file term_rules-0.1.0-py3-none-any.whl.
File metadata
- Download URL: term_rules-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22340651a9e7104ba7d031ff6868102a3a17151b6194ab9551aa4b91d2a20e0
|
|
| MD5 |
6fed53d7ec0eed2f7b2a9099d597cf26
|
|
| BLAKE2b-256 |
b686cc44eaadac9ed66d276295645aeeff6a91836ecdd7c3d73ef7ff28e945f1
|