Skip to main content
drawing
Credit Scoring
Module
Class: 2022 & 2023

Overview

  • Odds based Grouping (OBG)

    • OBGEncoder

      • pred_var: Name of predictor variable. Values can be either continuous or categorical.
      • target_var: Name of binary target variable.

      .fit

      • df: DataFrame containing pred_var and target_var.
      • max_delta: max difference between odds for merging two levels. default: 0.05
      • min_bins: minimum number of bins. default: 3
      • q: number of quantiles when converting continuous variable to categorical. default: 10

      .transform

      • df: Transform pred_var based on fitted bins.
      • impute: Boolean indicating whether to impute missing values. default: False
      • impute_value: Category level to impute missing values with. default: 'Missing' or 'nan'

      .fit_transform

      • df: DataFrame containing pred_var and target_var. Transform pred_var based on fitted bins.

      fit_dict: dictionary containing the matched category levels and fitted bins.

      lookup: dictionary containing cutoff values for continuous variable (empty if pred_var is categorical).

  • Weight of Evidence (WOE)

    • WOEEncoder

      • pred_var: Name of predictor variable.Values can be either continuous or categorical.
      • target_var: Name of binary target variable.
      • target_value: Value indicating event. default: 1.

      .fit

      • df: DataFrame containing pred_var and target_var.
      • stop_limit: Stops WOE based merging of the predictor's classes/levels in case the resulting information value (IV) decreases more than (e.g. 0.05 = 5%) compared to the preceding binning step. stop_limit=0 will skip any WOE based merging. Increasing the stop_limit will simplify the binning solution and may avoid overfitting. Accepted value range: 0 to 0.5. default: 0.1.
      • q: number of quantiles when converting continuous variable to categorical. default: 10

      .transform

      • df: Transform pred_var based on fitted bins
      • impute: Boolean indicating whether to impute missing values. default: False
      • impute_value: Category level to impute missing values with. default: 'Missing' or 'nan'

      .fit_transform

      • df: DataFrame containing pred_var and target_var. Transform pred_var based on fitted bins.

      .test_limit

      • df: DataFrame containing pred_var and target_var to test stop limits at 1%, 2.5%, 5% and 10%.

      fit_dict: dictionary containing the matched category levels and fitted bins.

      lookup: dictionary containing cutoff values for continuous variable (empty if pred_var is categorical).


Metadata

Release files for ieseg-credscore 0.23.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ieseg-credscore 0.23.12
File Size Uploaded
ieseg_credscore-0.23.12.tar.gz 12.2 kB Details

Release files / ieseg_credscore-0.23.12.tar.gz

Download URL ieseg_credscore-0.23.12.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e5267a48aa9837634558d977c6bd130745e2dcd0c8319eae78a4f478ac673a1d
BLAKE2b-256 checksum
How to use checksums
f45f1aea2549175421123f37a37777ed2d28c5592ae1ce04150f3efeb4bda9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.23.12 This release

1 release file

0.23.11

1 release file

0.23.10

1 release file

0.23.9

1 release file

0.23.8

1 release file

0.23.7

1 release file

0.23.6

1 release file

0.23.5

1 release file

0.23.4

1 release file

0.23.2

1 release file

0.23.1

1 release file

0.23.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page