Introduction
To mimic the py_mob package (https://pypi.org/project/py-mob) for binary outcomes, the freq_mob is a collection of python functions that would generate the monotonic binning and perform the variable transformation for frequency outcomes such that the Pearson correlation between the transformed $X$ and $Log(Y)$ is equal to 1. In case of frequency count models with $Log()$ link function, the transformation is derived as $F(x)_i = Log \frac{\sum_i Y / \sum_i Exposure}{\sum Y / \sum Exposure}$ in the training sample, where $Exposure$ is the number of cases and $i$ refers to the $ith$ bin groupped by $x$ values.
Should you have any question or suggestion about the freq_mob package, please feel free to drop me a line.
Core Functions
freq_mob
|-- qtl_bin() : An iterative discretization based on quantiles of X.
|-- cnt_bin() : A revised iterative discretization for records with Y > 0.
|-- iso_bin() : A discretization algorthm driven by the isotonic regression between X and Y.
|-- rng_bin() : A revised iterative discretization based on the value range of X.
|-- kmn_bin() : A discretization algorthm based on the kmeans clustering of X.
|-- gbm_bin() : A discretization algorthm based on the gradient boosting machine.
|-- view_bin() : Displays the binning outcome in a tabular form.
|-- cal_newx() : Applies the variable transformation to a numeric vector based on the binning outcome.
`-- mi_score() : Calculates the mutual information score between X and Y.
Authors
WenSui Liu is a seasoned data scientist with 15-year experience in the financial service industry.
Joyce Liu is a college student majoring in Mathematics with a strong passion for data science.
Metadata
Release files for freq-mob 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| freq_mob-0.2.2.tar.gz | 6.4 kB | Without provenance | Details for freq_mob-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| freq_mob-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for freq_mob-0.2.2-py3-none-any.whl |
Total release size: 13.3 kB
Release files / freq_mob-0.2.2.tar.gz
| Download URL | freq_mob-0.2.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5005e2deb7731397fad75d4d78d0dc8eb690c7601ffc11dad3ce228765715da
|
|
BLAKE2b-256 checksum How to use checksums |
fa6dc175682e7966f26fe74a75bda7b6553429d6a52579c4eb3ab6983bba275a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / freq_mob-0.2.2-py3-none-any.whl
| Download URL | freq_mob-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a1e398d30b4381aff8bdcca13c2b44f88bce2f29c9c257126558b1f22683e11
|
|
BLAKE2b-256 checksum How to use checksums |
3895ae08f3cf09e4a1d6974b74935c121185d744b10beecd84ce14ddc8aa70a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for freq-mob 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.