Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

term_rules-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

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

Hashes for term_rules-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d0dae1e96184236bf9c064c6a8d5febe2608b96b9f718a750b3af94e76f5d02
MD5 dc00828d1901e644c9bef66717974ec9
BLAKE2b-256 407a5a33c415be453b5b6467932a25cceb88723fc416a913782b0b82af7d9e92

See more details on using hashes here.

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

Hashes for term_rules-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c22340651a9e7104ba7d031ff6868102a3a17151b6194ab9551aa4b91d2a20e0
MD5 6fed53d7ec0eed2f7b2a9099d597cf26
BLAKE2b-256 b686cc44eaadac9ed66d276295645aeeff6a91836ecdd7c3d73ef7ff28e945f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page