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 2.0.3.

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-PY

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. Python translation by Emiliano Peñaloza and Alexander Hemming.

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-2.0.3.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

EMP_PY-2.0.3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for EMP-PY-2.0.3.tar.gz
Algorithm Hash digest
SHA256 47a688a76385cae0903b6833738956801db66509c7d4ab4f0eb096ab06d0d3f4
MD5 d9c93feac2e107b52bade84d6833fa2e
BLAKE2b-256 32c294b8dad59c0a62265967598ebd51156851aa45ae203edbb23612186e12e7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for EMP_PY-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 64d0dcc4879aa4faf431b7431b575dfb5281b8ee256238d6942ab90eb49eeea2
MD5 83fb6305e5a5ded86c42d3b0451ead2f
BLAKE2b-256 79147dd37e8907cca3b37569492662de172f841389f2c3ef6946a3756d341503

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