Skip to main content

Functions for estimating EMP (Expected Maximum Profit Measure) in Credit Risk Scoring and Customer Churn Prediction, according to Verbraken et al (2013, 2014) <DOI:10.1109/TKDE.2012.50>, <DOI:10.1016/j.ejor.2014.04.001>.

Project description

EMP-Py

EMP Python Package repository, currently at version 0.0.1.

Functions for estimating EMP (Expected Maximum Profit Measure) in Credit Risk Scoring and Customer Churn Prediction, according to Verbraken et al (2013, 2014).

Installation

pip install EMP

Usage

from EMP.metrics import empCreditScoring

scores = [0.34, 0.44, 0.67, 0.83]
classes = [0, 0, 1, 0]
k = 2

# By default will print and return output (no rounding)
empCreditScoring(scores, classes)

# Will only return output (no rounding)
empCreditScoring(scores, classes, print_output=False)

# Will only print output (no rounding)
empCreditScoring(scores, classes, return_output=False)

# Will print and return output with k decimal points
empCreditScoring(scores, classes, rounding=k)

The functions have been co-authored by Thomas Verbraken, Seppe van den Brucke and Cristián Bravo.

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

EMP-PY-1.1.1.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

EMP_PY-1.1.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file EMP-PY-1.1.1.tar.gz.

File metadata

  • Download URL: EMP-PY-1.1.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 CPython/3.10.0

File hashes

Hashes for EMP-PY-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f5f81b78745e6cd51e25b980b7ef4b33b93e441ba93dc42f01f5fcd64437aa15
MD5 9d8ec8e8d9e444035b73a8a7eb7eb622
BLAKE2b-256 577059dad82690ef3f886cecf3735b8554d0bdc4d36bdb348ee87475f38547a5

See more details on using hashes here.

File details

Details for the file EMP_PY-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: EMP_PY-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 CPython/3.10.0

File hashes

Hashes for EMP_PY-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26ae719671136b98f99c544c781cccdfb7c485e33912d78d58e404ea2f9452d5
MD5 f07a803c3b9c5832d0c7ce0a9c878f50
BLAKE2b-256 8805e6acbbb8f31bf1a80d9e3e33110117e2398f1c7ef66ecc5301afde33c3ae

See more details on using hashes here.

Supported by

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